Location: PHPKode > scripts > Net Shoubox > net-shoubox/ips_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_ip_banneds"){
$sql=mysql_query("DELETE FROM net_ban WHERE id ='$_GET[aid]'");
echo "THE IP ARE REMOVED FROM BLOQUED IP LIST";
}

$showips = mysql_query("SELECT * FROM net_ban ORDER BY id DESC");

if(mysql_num_rows($showips) == '0'){
$message = "No have IPs banned from you tag <br />";
echo $message ;
}

while($rowips = mysql_fetch_array($showips)){
echo("<tr bgcolor=\"000000\">\n");
echo "<td> IP :<b>".$rowips['ip']."</b> Date : ".$rowips['date']."<a href='?action=delete_ip_banneds&aid=$rowips[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;
}
?>
Return current item: Net Shoubox