summaryrefslogtreecommitdiffstats
path: root/sections/tools/development/site_options.php
diff options
context:
space:
mode:
Diffstat (limited to 'sections/tools/development/site_options.php')
-rw-r--r--sections/tools/development/site_options.php34
1 files changed, 33 insertions, 1 deletions
diff --git a/sections/tools/development/site_options.php b/sections/tools/development/site_options.php
index da46c6f..f35f3b6 100644
--- a/sections/tools/development/site_options.php
+++ b/sections/tools/development/site_options.php
@@ -1,8 +1,40 @@
<?
-if (!check_perms('admin_manage_permissions')) {
+if (!check_perms('admin_manage_permissions') && !check_perms('users_mod')) {
error(403);
}
+if (!check_perms('admin_manage_permissions')) {
+ View::show_header('Site Options');
+ $DB->query("SELECT Name, Value, Comment FROM site_options");
+?>
+ <div class="header">
+ <h1>Site Options</h1>
+ </div>
+ <table width="100%">
+ <tr class="colhead">
+ <td>Name</td>
+ <td>Value</td>
+ <td>Comment</td>
+ </tr>
+<?
+ $Row = 'a';
+ while (list($Name, $Value, $Comment) = $DB->next_record()) {
+ $Row = $Row === 'a' ? 'b' : 'a';
+?>
+ <tr class="row<?=$Row?>">
+ <td><?=$Name?></td>
+ <td><?=$Value?></td>
+ <td><?=$Comment?></td>
+ </tr>
+<?
+ }
+?>
+ </table>
+<?
+ View::show_footer();
+ die();
+}
+
if (isset($_POST['submit'])) {
authorize();