]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blame - settings/general.php
Make user record badge update too :D
[irc/unrealircd/unrealircd-webpanel.git] / settings / general.php
CommitLineData
ee8927ad
VP
1<?php
2require_once "../inc/common.php";
3require_once "../inc/header.php";
4
5$canEdit = current_user_can(PERMISSION_MANAGE_USERS);
6function _ce($can){
7 echo ($can) ? "" : "disabled";
8}
9
10?>
11<h4>General Settings</h4>
12<br>
13<h6>Debug Mode</h6>
14<div class="form-group form-check">
15 <input type="checkbox" class="form-check-input" id="debug_mode" <?php _ce($canEdit) ?>>
16 <label class="form-check-label" for="debug_mode">Enable Debug Mode (Developers Only)</label>
17</div>
18
19
20<?php $a = []; Hook::run(HOOKTYPE_GENERAL_SETTINGS, $a); ?>
21<br><br>
22<div class="btn btn-primary">Save</div>
23<?php
24require_once "../inc/footer.php";