-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin.php
80 lines (67 loc) · 1.9 KB
/
admin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
// AcmlmBoard XD - Administration hub page
// Access: administrators
include("lib/common.php");
AssertForbidden("viewAdminRoom");
if($loguser['powerlevel'] < 3)
Kill(__("You're not an administrator. There is nothing for you here."));
$title = __("Administration");
$key = hash('sha256', "{$loguserid},{$loguser['pss']},{$salt}");
$cell = 1;
function cell($content) {
global $cell;
$cell = ($cell == 1 ? 0 : 1);
Write("
<tr class=\"cell{0}\">
<td>
{1}
</td>
</tr>
", $cell, $content);
}
Write("
<table class=\"outline margin width50\" style=\"float: right;\">
<tr class=\"header1\">
<th colspan=\"2\">
".__("Information")."
</th>
</tr>
");
cell(Format("
".__("Last viewcount milestone")."
</td>
<td style=\"width: 60%;\">
{0}
", $misc['milestone']));
$bucket = "adminright"; include("./lib/pluginloader.php");
write(
"
</table>
");
$cell = 1;
Write("
<table class=\"outline margin width25\">
<tr class=\"header1\">
<th>
".__("Admin tools")."
</th>
</tr>
");
cell("<a href=\"recalc.php\">".__("Recalculate statistics")."</a>");
cell("<a href=\"lastknownbrowsers.php\">".__("Last Known Browsers")."</a> ".__("(not admin-only)"));
cell("<a href=\"editpora.php\">".__("Edit Points of Required Attention")."</a>");
cell("<a href=\"ipbans.php\">".__("Manage IP bans")."</a>");
cell("<a href=\"managemods.php\">".__("Manage local moderator assignments")."</a>");
cell("<a href=\"editfora.php?key=".$key."\">".__("Edit forum list")."</a>");
cell("<a href=\"editcats.php\">".__("Edit category list")."</a>");
cell("<a href=\"editsettings.php\">".__("Edit settings")."</a>");
cell("<a href=\"optimize.php\">".__("Optimize tables")."</a>");
cell("<a href=\"log.php\">".__("View log")."</a>");
//if($loguser['powerlevel'] == 4)
// cell("<a href=\"sql.php\">".__("SQL Console")."</a>");
$bucket = "adminleft"; include("./lib/pluginloader.php");
write(
"
</table>
");
?>