Location: PHPKode > scripts > Net Shoubox > net-shoubox/nick_banned.php
<?php
session_start();
if (session_is_registered("nettag")){
//////
//
// Net Shout
//
// www.php-net.net/
//
/////
echo '<link href="./shout.css" rel="stylesheet" type="text/css">';
// all ips banned
require_once "net_config.php";
echo $_links_admin;

if ($_GET['action']=="delete_nick_banneds"){
$sql=mysql_query("DELETE FROM net_ban_nick WHERE id ='$_GET[aid]'");
echo("<script language=\"Javascript\">alert('THE NICK ARE REMOVED FROM BLOQUED NICK LIST')</script>\n");
}

$shownick = mysql_query("SELECT * FROM net_ban_nick ORDER BY id DESC");
if(mysql_num_rows($shownick) == '0'){
$message = "No have Nicks banned from you tag <br />";
echo $message ;
}

while($rownick = mysql_fetch_array($shownick)){
echo("<tr bgcolor=\"000000\">\n");
echo "<td>NICK :<b>".$rownick['nick']."</b> Date : ".$rownick['date']."<a href='?action=delete_nick_banneds&aid=$rownick[id]'>delete</a><br />
</td>";
echo "</tr>";
}

} else {
echo <<<EOT
<html>
<head>
<title></title>
</head>
<body>
<br /><p align="center">
ACCESS DENIED!!!!!!!!!!!<br />
<a href="login.php"><b>-- LOGIN HERE --</b></a></p>
<br />
</body>
</html>
<!-- //DO NOT REMOVE!!! -->
<span style="font-size:8pt;"><a href="http://php-net.net/">empowered by Net shout .5</a></span>
<!-- //END OF DO NOT REMOVE!!! -->
EOT;
exit;
}
?>
Return current item: Net Shoubox