2011-03-28 14:21:28 +00:00
|
|
|
<?
|
2013-05-21 08:01:09 +00:00
|
|
|
if (!check_perms('users_mod')) {
|
2011-08-22 08:00:05 +00:00
|
|
|
error(403);
|
|
|
|
}
|
2012-10-11 08:00:15 +00:00
|
|
|
View::show_header('Staff Tools');
|
2011-03-28 14:21:28 +00:00
|
|
|
?>
|
|
|
|
<div class="permissions">
|
|
|
|
<div class="permission_container">
|
2012-09-01 08:00:24 +00:00
|
|
|
<table class="layout">
|
|
|
|
<tr class="colhead"><td>Managers</td></tr>
|
2013-04-17 08:00:58 +00:00
|
|
|
<? if (check_perms('admin_manage_permissions')) { ?>
|
2011-03-28 14:21:28 +00:00
|
|
|
<tr><td><a href="tools.php?action=permissions">Permissions</a></td></tr>
|
2013-04-17 08:00:58 +00:00
|
|
|
<? } if (check_perms('admin_whitelist')) { ?>
|
2013-04-23 08:01:29 +00:00
|
|
|
<tr><td><a href="tools.php?action=whitelist">Client whitelist</a></td></tr>
|
2013-04-17 08:00:58 +00:00
|
|
|
<? } if (check_perms('admin_manage_ipbans')) { ?>
|
2013-03-02 08:00:34 +00:00
|
|
|
<tr><td><a href="tools.php?action=ip_ban">IP address bans</a></td></tr>
|
2013-04-17 08:00:58 +00:00
|
|
|
<? } if (check_perms('admin_login_watch')) { ?>
|
2013-03-02 08:00:34 +00:00
|
|
|
<tr><td><a href="tools.php?action=login_watch">Login watch</a></td></tr>
|
2013-04-17 08:00:58 +00:00
|
|
|
<? } if (check_perms('admin_manage_forums')) { ?>
|
2011-03-28 14:21:28 +00:00
|
|
|
<tr><td><a href="tools.php?action=forum">Forums</a></td></tr>
|
2013-04-17 08:00:58 +00:00
|
|
|
<? } if (check_perms('admin_manage_news')) { ?>
|
2011-03-28 14:21:28 +00:00
|
|
|
<tr><td><a href="tools.php?action=news">News</a></td></tr>
|
2013-04-17 08:00:58 +00:00
|
|
|
<? } if (check_perms('admin_dnu')) { ?>
|
2013-05-16 08:00:10 +00:00
|
|
|
<tr><td><a href="tools.php?action=dnu">"Do Not Upload" list</a></td></tr>
|
2013-04-17 08:00:58 +00:00
|
|
|
<? } if (check_perms('site_recommend_own') || check_perms('site_manage_recommendations')) { ?>
|
2011-03-28 14:21:28 +00:00
|
|
|
<tr><td><a href="tools.php?action=recommend">Vanity House additions</a></td></tr>
|
2013-04-17 08:00:58 +00:00
|
|
|
<? } if (check_perms('users_view_email')) { ?>
|
2013-03-02 08:00:34 +00:00
|
|
|
<tr><td><a href="tools.php?action=email_blacklist">Email blacklist</a></td></tr>
|
2013-04-17 08:00:58 +00:00
|
|
|
<? } if (check_perms('users_mod')) { ?>
|
2011-10-27 08:00:15 +00:00
|
|
|
<tr><td><a href="tools.php?action=tokens">Manage freeleech tokens</a></td></tr>
|
2013-03-02 08:00:34 +00:00
|
|
|
<tr><td><a href="tools.php?action=official_tags">Official tags manager</a></td></tr>
|
|
|
|
<tr><td><a href="tools.php?action=tag_aliases">Tag aliases</a></td></tr>
|
2013-06-09 08:01:21 +00:00
|
|
|
<? } if (check_perms('users_mod') || $LoggedUser['ExtraClasses'][DELTA_TEAM]) { ?>
|
|
|
|
<tr><td><a href="tools.php?action=label_aliases">Label aliases</a></td></tr>
|
2013-06-15 08:00:45 +00:00
|
|
|
<? } if (check_perms('users_mod')) { ?>
|
2013-06-16 08:01:11 +00:00
|
|
|
<tr><td><a href="tools.php?action=change_log">Change log</a></td></tr>
|
2013-04-17 08:00:58 +00:00
|
|
|
<? } ?>
|
2011-03-28 14:21:28 +00:00
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="permission_container">
|
2012-09-01 08:00:24 +00:00
|
|
|
<table class="layout">
|
|
|
|
<tr class="colhead"><td>Data</td></tr>
|
2013-05-21 08:01:09 +00:00
|
|
|
<? if (check_perms('admin_donor_log')) { ?>
|
2013-03-02 08:00:34 +00:00
|
|
|
<tr><td><a href="tools.php?action=donation_log">Donation log</a></td></tr>
|
2011-08-09 21:03:28 +00:00
|
|
|
<tr><td><a href="tools.php?action=bitcoin_balance">Bitcoin donation balance</a></td></tr>
|
2013-04-17 08:00:58 +00:00
|
|
|
<? } if (check_perms('users_view_ips') && check_perms('users_view_email')) { ?>
|
2013-03-02 08:00:34 +00:00
|
|
|
<tr><td><a href="tools.php?action=registration_log">Registration log</a></td></tr>
|
2013-04-17 08:00:58 +00:00
|
|
|
<? } if (check_perms('users_view_invites')) { ?>
|
2013-03-02 08:00:34 +00:00
|
|
|
<tr><td><a href="tools.php?action=invite_pool">Invite pool</a></td></tr>
|
2013-04-17 08:00:58 +00:00
|
|
|
<? } if (check_perms('site_view_flow')) { ?>
|
2013-03-02 08:00:34 +00:00
|
|
|
<tr><td><a href="tools.php?action=upscale_pool">Upscale pool</a></td></tr>
|
|
|
|
<tr><td><a href="tools.php?action=user_flow">User flow</a></td></tr>
|
|
|
|
<tr><td><a href="tools.php?action=torrent_stats">Torrent stats</a></td></tr>
|
|
|
|
<tr><td><a href="tools.php?action=economic_stats">Economic stats</a></td></tr>
|
2013-04-17 08:00:58 +00:00
|
|
|
<? } if (check_perms('site_debug')) { ?>
|
2013-03-02 08:00:34 +00:00
|
|
|
<tr><td><a href="tools.php?action=opcode_stats">Opcode stats</a></td></tr>
|
|
|
|
<tr><td><a href="tools.php?action=service_stats">Service stats</a></td></tr>
|
2013-04-17 08:00:58 +00:00
|
|
|
<? } if (check_perms('admin_manage_permissions')) { ?>
|
2013-03-02 08:00:34 +00:00
|
|
|
<tr><td><a href="tools.php?action=special_users">Special users</a></td></tr>
|
2013-04-17 08:00:58 +00:00
|
|
|
<? } ?>
|
2011-03-28 14:21:28 +00:00
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="permission_container">
|
2012-09-01 08:00:24 +00:00
|
|
|
<table class="layout">
|
|
|
|
<tr class="colhead"><td>Misc</td></tr>
|
2013-04-17 08:00:58 +00:00
|
|
|
<? if (check_perms('users_mod')) { ?>
|
2013-04-19 08:00:55 +00:00
|
|
|
<tr><td><a href="tools.php?action=edit_tags">Batch tag editor</a></td></tr>
|
2013-05-21 08:01:09 +00:00
|
|
|
<? } if (check_perms('users_mod')) { ?>
|
2013-03-02 08:00:34 +00:00
|
|
|
<tr><td><a href="tools.php?action=manipulate_tree">Manipulate tree</a></td></tr>
|
2013-05-22 08:01:02 +00:00
|
|
|
<? } if (check_perms('admin_update_geoip')) { ?>
|
2011-03-28 14:21:28 +00:00
|
|
|
<tr><td><a href="tools.php?action=update_geoip">Update GeoIP </a></td></tr>
|
2013-04-17 08:00:58 +00:00
|
|
|
<? } if (check_perms('admin_create_users')) { ?>
|
2013-03-02 08:00:34 +00:00
|
|
|
<tr><td><a href="tools.php?action=create_user">Create user</a></td></tr>
|
2013-04-17 08:00:58 +00:00
|
|
|
<? } if (check_perms('users_mod')) { ?>
|
2011-03-28 14:21:28 +00:00
|
|
|
<tr><td><a href="tools.php?action=clear_cache">Clear/view a cache key</a></td></tr>
|
2013-04-17 08:00:58 +00:00
|
|
|
<? } if (check_perms('users_view_ips')) { ?>
|
2013-03-02 08:00:34 +00:00
|
|
|
<tr><td><a href="tools.php?action=dupe_ips">Duplicate IP addresses</a></td></tr>
|
2013-04-17 08:00:58 +00:00
|
|
|
<? } if (check_perms('site_debug')) { ?>
|
2011-03-28 14:21:28 +00:00
|
|
|
<tr><td><a href="tools.php?action=sandbox1">Sandbox (1)</a></td></tr>
|
|
|
|
<tr><td><a href="tools.php?action=sandbox2">Sandbox (2)</a></td></tr>
|
|
|
|
<tr><td><a href="tools.php?action=sandbox3">Sandbox (3)</a></td></tr>
|
|
|
|
<tr><td><a href="tools.php?action=sandbox4">Sandbox (4)</a></td></tr>
|
|
|
|
<tr><td><a href="tools.php?action=sandbox5">Sandbox (5)</a></td></tr>
|
|
|
|
<tr><td><a href="tools.php?action=sandbox6">Sandbox (6)</a></td></tr>
|
|
|
|
<tr><td><a href="tools.php?action=sandbox7">Sandbox (7)</a></td></tr>
|
|
|
|
<tr><td><a href="tools.php?action=sandbox8">Sandbox (8)</a></td></tr>
|
|
|
|
<tr><td><a href="schedule.php?auth=<?=$LoggedUser['AuthKey']?>">Schedule</a></td></tr>
|
2013-04-26 08:00:25 +00:00
|
|
|
<? } if (check_perms('admin_clear_cache') || check_perms('users_mod')) { ?>
|
|
|
|
<tr><td><a href="tools.php?action=rerender_gallery">Rerender stylesheet gallery images</a></td></tr>
|
|
|
|
<? } if (check_perms('users_mod')) { ?>
|
2013-03-02 08:00:34 +00:00
|
|
|
<tr><td><strong><a href="tools.php?action=public_sandbox">Public sandbox</a></strong></td></tr>
|
2013-04-26 08:00:25 +00:00
|
|
|
<? } if (check_perms('users_mod')) { ?>
|
2013-03-02 08:00:34 +00:00
|
|
|
<tr><td><strong><a href="tools.php?action=mod_sandbox">Mod-level sandbox</a></strong></td></tr>
|
2013-04-17 08:00:58 +00:00
|
|
|
<? } ?>
|
2011-03-28 14:21:28 +00:00
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2012-10-11 08:00:15 +00:00
|
|
|
<? View::show_footer(); ?>
|