-
Notifications
You must be signed in to change notification settings - Fork 0
/
mod.php
40 lines (40 loc) · 1.43 KB
/
mod.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
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html>
<head>
<title>Storybot Mod</title>
<link rel="stylesheet" type="text/css" href="media/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
</head>
<body>
<center>
<a href='index.php'><img src="media/logo.png" /></a>
<br />
<?php
define("IN_STORYBOT", 1);
require_once("config/config.php");
if(!is_mod(mod_id())) {
die("Registration is required! Please visit <a href='index.php'>this link</a>.");
}
$admin = is_admin(mod_id());
$sid = oldestImage();
if($sid != "") {
echo displayImage($sid);
echo "<br />";
echo "<a href='action.php?type=0&sid=".$sid."' class='accept'>ACCEPT</a>";
echo "<a href='action.php?type=1&sid=".$sid."' class='reject'>REJECT</a>";
echo "<a href='action.php?type=2&sid=".$sid."' class='report'>REPORT</a>";
} else {
echo "No images needing moderation! Refresh this page in a few minutes and there may be more images. Thanks for your hard work!";
}
if($admin) {
echo "<br /><br /><br /><table><tr><td><a href='admin.php' class='settings'>Admin panel</a></td>";
if($sid != "") {
echo "<td><a href='action.php?type=-1&sid=".$sid."' class='ban'>Ban sender</a></td>";
}
echo "<td><a href='reports.php' class='reports'>Report log</a></td></tr></table>";
}
echo "<iframe style='height: 0px; width: 0px; border: none;' src='bot.php' />";
?>
</center>
</body>
</html>