forked from sicalpath/tjupt
-
Notifications
You must be signed in to change notification settings - Fork 2
/
staffpanel.php
80 lines (75 loc) · 2.76 KB
/
staffpanel.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
ob_start();
require_once("include/bittorrent.php");
dbconn();
loggedinorreturn();
stdhead("Administration");
print("<h1 align=center>Administration</h1>");
if (get_user_class() < UC_MODERATOR) {
stdmsg("Error", "Access denied!!!");
stdfoot();
exit;
}
begin_main_frame();
///////////////////// SysOp Only \\\\\\\\\\\\\\\\\\\\\\\\\\\\
if (get_user_class() >= UC_SYSOP) {
echo("<h1 align=center>..:: For SysOp Only ::..</h1>");
print("<br />");
print("<br />");
print("<table width=80% border=1 cellspacing=0 cellpadding=5 align=center>");
echo("<td class=colhead align=left>Option Name</td><td class=colhead align=left>Info</td>");
$query = "SELECT * FROM sysoppanel";
$sql = sql_query($query);
while ($row = mysql_fetch_array($sql)) {
$id = $row['id'];
$name = $row['name'];
$url = $row['url'];
$info = $row['info'];
echo("<tr><td class=rowfollow align=left><strong><a href=$url>$name</a></strong></td> <td class=rowfollow align=left>$info</td></tr>");
}
print("</table>");
print("<br />");
print("<br />");
}
///////////////////// Admin Only \\\\\\\\\\\\\\\\\\\\\\\\\\\\
if (get_user_class() >= UC_ADMINISTRATOR) {
echo("<h1 align=center>..:: For Administrator Only :..</h1>");
print("<br />");
print("<br />");
print("<table width=80% border=1 cellspacing=0 cellpadding=5 align=center>");
echo("<td class=colhead align=left>Option Name</td><td class=colhead align=left>Info</td>");
$query = "SELECT * FROM adminpanel";
$sql = sql_query($query);
while ($row = mysql_fetch_array($sql)) {
$id = $row['id'];
$name = $row['name'];
$url = $row['url'];
$info = $row['info'];
echo("<tr><td class=rowfollow align=left><strong><a href=$url>$name</a></strong></td> <td class=rowfollow align=left>$info</td></tr>");
}
print("</table>");
print("<br />");
print("<br />");
}
///////////////////// Moderator Only \\\\\\\\\\\\\\\\\\\\\\\\\\\\
if (get_user_class() >= UC_MODERATOR) {
echo("<h1 align=center>..:: For Moderator Only ::..</h1>");
print("<br />");
print("<br />");
print("<table width=80% border=1 cellspacing=0 cellpadding=5 align=center>");
echo("<td class=colhead align=left>Option Name</td><td class=colhead align=left>Info</td>");
$query = "SELECT * FROM modpanel";
$sql = sql_query($query);
while ($row = mysql_fetch_array($sql)) {
$id = $row['id'];
$name = $row['name'];
$url = $row['url'];
$info = $row['info'];
echo("<tr><td class=rowfollow align=left><strong><a href=$url>$name</a></strong></td> <td class=rowfollow align=left>$info</td></tr>");
}
print("</table>");
print("<br />");
print("<br />");
}
end_main_frame();
stdfoot();