$pagetitle="KOS";
require_once("../head.php");
echo $headerstr;
$topic = round($_GET["topic"]);
$board = round($_GET["board"]);
$alias = htmlentities($_POST["alias"]);
$ip = htmlentities($_POST["ip"]);
$isp = htmlentities($_POST["isp"]);
$type = round($_POST["type"]);
?>
if (!auth2($uname,$pword)) {
echo "\nYou must be logged in to view this page. |
\n
";
require_once("../foot.php");
exit;
}
$u=@mysql_fetch_array(mysql_query("SELECT `userid`, `username`, `level` FROM `users` WHERE `username` = '".$uname."'"));
if ($u["level"] < LEVEL_ADMIN) {
echo "\nYou are not authorized to view this page. |
\n";
require_once("../foot.php");
exit;
}
?>
KOS Utility |
Return to:
if ($board) echo " | \n";
if ($topic) echo " | \n";
?> |
|
if ($_GET["id"]) {
mysql_query("DELETE FROM `kos` WHERE `kosid` = ".$_GET["id"]);
echo "This KOS was removed successfully. |
";
} else if (($alias) && ($ip) && ($isp)) {
mysql_query("INSERT INTO `kos` (`type`,`alias`,`ip`,`isp`) VALUES (1,'".$alias."','".$ip."','".$isp."')");
echo "This KOS was added successfully. |
";
}
$r1=mysql_query("SELECT `kosid`,`alias`,`ip`,`isp` FROM `kos` WHERE `type` = 1 ORDER BY `kosid` ASC");
?>
Registration Blocks |
Alias |
IP |
ISP |
Action |
while ($k=@mysql_fetch_array($r1)) echo "\n".$k["alias"]." | \n".$k["ip"]." | \n".$k["isp"]." | \n[Delete] | \n
\n\n";
?>
require_once("../foot.php"); ?>