-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathcaptchalist.php
More file actions
29 lines (28 loc) · 1.17 KB
/
captchalist.php
File metadata and controls
29 lines (28 loc) · 1.17 KB
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
<?php
require_once("header.php");
if (empty($_SESSION['username'])) {
echo "Log in to access the captchalogue list.</br>";
} else {
echo '<a href="howmanyweapons.php">Check the number of weapons available for an abstratus</a></br>';
echo '<a href="artcredits.php">View a list of items with existing art only (with credits)</a></br>';
if ($userrow['modlevel'] < 4) {
$result = mysql_query("SELECT * FROM Captchalogue ORDER BY name");
while ($row = mysql_fetch_array($result)) {
$realname = str_replace("\\", "", $row['name']);
echo "$realname</br>";
}
} else {
$result = mysql_query("SELECT * FROM Captchalogue ORDER BY name");
while ($row = mysql_fetch_array($result)) {
$realname = str_replace("\\", "", $row['name']);
echo "$realname - $row[captchalogue_code] - $row[abstratus]</br>";
}
$sresult = mysql_query("SELECT * FROM System");
$srow = mysql_fetch_array($sresult);
$newaddlog = $srow['debuglog'] . "<br />Dev Captchalist accessed by " . $username;
$newaddlog = mysql_real_escape_string($newaddlog);
mysql_query("UPDATE `System` SET `debuglog` = '$newaddlog' WHERE 1");
}
}
require_once("footer.php");
?>