mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-05 22:10:11 +00:00
89aa3f46e3
Finished adding [code] tag Merging groups no longer wipes comments Group comments are no longer lost on merge Fixing incorrect equality Added the freeleech_torrents() and freeleech_groups() functions, testing on vanity house addition Implementing new freeleech functions for torrent and group editing Implementing better.php filter for seeding Separating staff and forum staff within staff functions
148 lines
4.6 KiB
PHP
148 lines
4.6 KiB
PHP
<?
|
|
enforce_login();
|
|
show_header('Staff');
|
|
|
|
include(SERVER_ROOT.'/sections/staff/functions.php');
|
|
$SupportStaff = get_support();
|
|
|
|
list($FrontLineSupport, $ForumStaff, $Staff) = $SupportStaff;
|
|
|
|
?>
|
|
<div class="thin">
|
|
<h2><?=SITE_NAME?> Staff</h2>
|
|
<div class="box pad" style="padding:0px 10px 10px 10px;">
|
|
<br />
|
|
<h3>Contact Staff</h3>
|
|
<div id="staff_inbox" class="hidden">
|
|
<form action="staffpm.php" method="post">
|
|
<input type="hidden" name="action" value="takepost" />
|
|
<label for="subject"><h3>Subject</h3></label>
|
|
<input size="95" type="text" name="subject" id="subject" />
|
|
<br />
|
|
|
|
<label for="message"><h3>Message</h3></label>
|
|
<textarea rows="10" cols="95" name="message" id="message"></textarea>
|
|
<br />
|
|
|
|
<strong>Send to: </strong>
|
|
<select name="level">
|
|
<option value="0" selected="selected">First Line Support</option>
|
|
<option value="650">Forum Moderators</option>
|
|
<option value="700">Staff</option>
|
|
</select>
|
|
|
|
<input type="submit" value="Send message" />
|
|
<input type="button" value="Hide" onClick="$('#staff_inbox').toggle();$('#below_box').toggle();return false;" />
|
|
</form>
|
|
</div>
|
|
<div id="below_box">
|
|
<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="$('#staff_inbox').toggle();$('#below_box').toggle();return false;">sending a message to the Staff Inbox</a></strong>.</p>
|
|
</div>
|
|
<h3>First-line Support</h3>
|
|
<p><strong>These users are not official staff members</strong> - they're 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>
|
|
<table class="staff" width="100%">
|
|
<tr class="colhead">
|
|
<td style="width:130px;">Username</td>
|
|
<td style="width:130px;">Last seen</td>
|
|
<td><strong>Support for</strong></td>
|
|
</tr>
|
|
<?
|
|
$Row = 'a';
|
|
foreach($FrontLineSupport as $Support) {
|
|
list($ID, $Class, $Username, $Paranoia, $LastAccess, $SupportFor) = $Support;
|
|
$Row = ($Row == 'a') ? 'b' : 'a';
|
|
?>
|
|
<tr class="row<?=$Row?>">
|
|
<td class="nobr">
|
|
<?=format_username($ID, $Username)?>
|
|
</td>
|
|
<td class="nobr">
|
|
<? if (check_paranoia('lastseen', $Paranoia, $Class)) { echo time_diff($LastAccess); } else { echo 'Hidden by user'; }?>
|
|
</td>
|
|
<td class="nobr">
|
|
<?=$SupportFor?>
|
|
</td>
|
|
</tr>
|
|
<? } ?>
|
|
</table>
|
|
</div>
|
|
<br />
|
|
<div class="box pad" style="padding:0px 10px 10px 10px;">
|
|
<h3>Forum moderators</h3>
|
|
<p>Forum Mods are users who have been promoted to help moderate the forums. They can only help with forum oriented questions</p>
|
|
<table class="staff" width="100%">
|
|
<tr class="colhead">
|
|
<td style="width:130px;">Username</td>
|
|
<td style="width:130px;">Last seen</td>
|
|
<td><strong>Remark</strong></td>
|
|
</tr>
|
|
<?
|
|
$Row = 'a';
|
|
foreach($ForumStaff as $Support) {
|
|
list($ID, $Class, $Username, $Paranoia, $LastAccess, $SupportFor) = $Support;
|
|
$Row = ($Row == 'a') ? 'b' : 'a';
|
|
?>
|
|
<tr class="row<?=$Row?>">
|
|
<td class="nobr">
|
|
<?=format_username($ID, $Username)?>
|
|
</td>
|
|
<td class="nobr">
|
|
<? if (check_paranoia('lastseen', $Paranoia, $Class)) { echo time_diff($LastAccess); } else { echo 'Hidden by user'; }?>
|
|
</td>
|
|
<td class="nobr">
|
|
<?=$SupportFor?>
|
|
</td>
|
|
</tr>
|
|
<? } ?>
|
|
</table>
|
|
</div>
|
|
<br />
|
|
<div class="box pad" style="padding:0px 10px 10px 10px;">
|
|
<?
|
|
$CurClass = 0;
|
|
$CloseTable = false;
|
|
foreach ($Staff as $StaffMember) {
|
|
list($ID, $Class, $ClassName, $Username, $Paranoia, $LastAccess, $Remark) = $StaffMember;
|
|
if($Class!=$CurClass) { // Start new class of staff members
|
|
$Row = 'a';
|
|
if($CloseTable) {
|
|
$CloseTable = false;
|
|
echo "\t</table>";
|
|
}
|
|
$CurClass = $Class;
|
|
$CloseTable = true;
|
|
echo '<br /><h3>'.$ClassName.'s</h3>';
|
|
?>
|
|
<table class="staff" width="100%">
|
|
<tr class="colhead">
|
|
<td style="width:130px;">Username</td>
|
|
<td style="width:130px;">Last seen</td>
|
|
<td><strong>Remark</strong></td>
|
|
</tr>
|
|
<?
|
|
} // End new class header
|
|
|
|
// Display staff members for this class
|
|
$Row = ($Row == 'a') ? 'b' : 'a';
|
|
?>
|
|
<tr class="row<?=$Row?>">
|
|
<td class="nobr">
|
|
<?=format_username($ID, $Username)?>
|
|
</td>
|
|
<td class="nobr">
|
|
<? if (check_paranoia('lastseen', $Paranoia, $Class)) { echo time_diff($LastAccess); } else { echo 'Hidden by staff member'; }?>
|
|
</td>
|
|
<td class="nobr">
|
|
<?=$Remark?>
|
|
</td>
|
|
</tr>
|
|
<? } ?>
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
<?
|
|
show_footer();
|
|
?>
|