diff options
author | Git <git@what.cd> | 2015-10-31 08:00:29 +0000 |
---|---|---|
committer | Git <git@what.cd> | 2015-10-31 08:00:29 +0000 |
commit | 58558082d411cd8149ef45c6d467cf75897d72cc (patch) | |
tree | 32c34eb8eeca2d8734177de02861d7a44631474d | |
parent | bc3c3df65a07463aeb31e90faf790070618cf3b9 (diff) | |
download | Gazelle-58558082d411cd8149ef45c6d467cf75897d72cc.zip Gazelle-58558082d411cd8149ef45c6d467cf75897d72cc.tar.gz Gazelle-58558082d411cd8149ef45c6d467cf75897d72cc.tar.bz2 |
Empty commit
-rw-r--r-- | docs/CHANGES.txt | 6 | ||||
-rw-r--r-- | sections/staff/functions.php | 8 | ||||
-rw-r--r-- | sections/staff/index.php | 33 | ||||
-rw-r--r-- | sections/tools/development/site_options.php | 34 | ||||
-rw-r--r-- | sections/tools/tools.php | 2 | ||||
-rw-r--r-- | sections/user/take_invite.php | 2 |
6 files changed, 75 insertions, 10 deletions
diff --git a/docs/CHANGES.txt b/docs/CHANGES.txt index 74e92d0..4b299d0 100644 --- a/docs/CHANGES.txt +++ b/docs/CHANGES.txt @@ -1,5 +1,11 @@ CHANGE LOG +2015-10-31 by newman +Add read-only version of site options for mods + +2015-10-30 by newman +Update staff.php layout + 2015-10-27 by newman Paginate ask the staff diff --git a/sections/staff/functions.php b/sections/staff/functions.php index 04f1aca..7e71f1e 100644 --- a/sections/staff/functions.php +++ b/sections/staff/functions.php @@ -159,3 +159,11 @@ function get_support() { 'staff' => get_staff() ); } + +function printSectionDiv($ClassName) { +?> + </div><br /> + <div class='box pad' style='padding: 10px 10px 10px 10px;'> + <h2 style='text-align: left;'><?=$ClassName?></h2> +<? +} diff --git a/sections/staff/index.php b/sections/staff/index.php index b55075d..b78fe6a 100644 --- a/sections/staff/index.php +++ b/sections/staff/index.php @@ -20,10 +20,13 @@ list($FrontLineSupport, $ForumStaff, $Staff) = $SupportStaff; <p>If you are looking for help with a general question, we appreciate it if you would only message through the staff inbox, where we can all help you.</p> <p>You can do that by <strong><a href="#" onclick="$('#compose').gtoggle(); return false;">sending a message to the Staff Inbox</a></strong>.</p> </div> + </div> + <div class="box pad" style="padding: 0px 10px 10px 10px;"> <? View::parse('generic/reply/staffpm.php', array('Hidden' => true)); ?> <br /> - <h3 id="fls">First-Line Support</h3> - <p><strong>These users are not official staff members.</strong> They are users who have volunteered their time to help people in need. Please treat them with respect, and read <a href="wiki.php?action=article&id=260">this</a> before contacting them.</p> + <h2 style="text-align: left;">Community Help</h2> + <h3 style="font-size: 17px;" id="fls"><i>First-Line Support</i></h3> + <p><strong>These users are not official staff members.</strong> They are users who have volunteered their time to help people in need. Please treat them with respect, and read <a href="wiki.php?action=article&id=260">this</a> before contacting them.</p><br /> <table class="staff" width="100%"> <tr class="colhead"> <td style="width: 130px;">Username</td> @@ -39,12 +42,10 @@ list($FrontLineSupport, $ForumStaff, $Staff) = $SupportStaff; } ?> </table> - </div> <br /> - <div class="box pad" style="padding: 0px 10px 10px 10px;"> <br /> - <h3 id="forum_mods">Forum Moderators</h3> - <p>Forum Moderators are users who have been promoted to help moderate the forums. They can only help with forum-oriented questions.</p> + <h3 style="font-size: 17px;" id="forum_mods"><i>Forum Moderators</i></h3> + <p>Forum Moderators are users who have been promoted to help moderate the forums. They can only help with forum-oriented questions.</p><br /> <table class="staff" width="100%"> <tr class="colhead"> <td style="width: 130px;">Username</td> @@ -67,6 +68,8 @@ list($FrontLineSupport, $ForumStaff, $Staff) = $SupportStaff; <? $CurClass = 0; $CloseTable = false; + $DevDiv = false; + $AdminDiv = false; foreach ($Staff as $StaffMember) { list($ID, $Class, $ClassName, $Username, $Paranoia, $LastAccess, $Remark) = $StaffMember; if ($Class != $CurClass) { // Start new class of staff members @@ -85,21 +88,37 @@ list($FrontLineSupport, $ForumStaff, $Staff) = $SupportStaff; $HTMLID = 'mods'; break; case 'Developer': + printSectionDiv("Development"); + $DevDiv = true; $HTMLID = 'devs'; break; case 'Lead Developer': + if (!$DevDiv) { + printSectionDiv("Development"); + $DevDiv = true; + } $HTMLID = 'lead_devs'; break; case 'Administrator': + printSectionDiv("Administration"); + $AdminDiv = true; $HTMLID = 'admins'; break; + case 'System Administrator': case 'Sysop': + if (!$AdminDiv) { + printSectionDiv("Administration"); + } $HTMLID = 'sysops'; break; default: $HTMLID = ''; } - echo "\t\t<h3 id=\"$HTMLID\">".$ClassName."s</h3>\n"; + if ($HTMLID != 'mods') { + echo "\t\t<h3 style=\"font-size: 17px;\" id=\"$HTMLID\"><i>".$ClassName."s</i></h3>\n"; + } else { + echo "\t\t<h2 style='text-align: left'>" . $ClassName . "s</h2>\n"; + } ?> <table class="staff" width="100%"> <tr class="colhead"> 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(); diff --git a/sections/tools/tools.php b/sections/tools/tools.php index ee6a6bc..16dd013 100644 --- a/sections/tools/tools.php +++ b/sections/tools/tools.php @@ -224,7 +224,7 @@ View::show_header('Staff Tools'); create_row("Rerender stylesheet gallery images", "tools.php?action=rerender_gallery", check_perms("site_debug") || check_perms("users_mod")); create_row("Schedule", "schedule.php?auth=$LoggedUser[AuthKey]", check_perms("site_debug")); create_row("Service stats", "tools.php?action=service_stats", check_perms("site_debug")); - create_row("Site options", "tools.php?action=site_options", check_perms('admin_manage_permissions')); + create_row("Site options", "tools.php?action=site_options", check_perms('users_mod')); create_row("Tracker info", "tools.php?action=ocelot_info", check_perms("users_mod")); create_row("Update GeoIP", "tools.php?action=update_geoip", check_perms("admin_update_geoip")); diff --git a/sections/user/take_invite.php b/sections/user/take_invite.php index e4f0788..66a15a8 100644 --- a/sections/user/take_invite.php +++ b/sections/user/take_invite.php @@ -32,7 +32,7 @@ if ($LoggedUser['RatioWatch'] ) ) { error(403); -} +} $Email = $_POST['email']; $Username = $LoggedUser['Username']; |