Location: PHPKode > scripts > Ban Control > Ban Control/ban_control.php
<?php
require('ban_control/include/conn.php');
$ip=$_SERVER['REMOTE_ADDR'];

$result = mysql_query("SELECT * FROM ".$prefix."banned WHERE b_ip = '$ip'") or die("A MySQL error has occurred.<br />Your Query: " . $your_query . "<br /> Error: (" . mysql_errno() . ") " . mysql_error());
$num_rows = mysql_num_rows($result);

if ($num_rows == 0) {

} else {
while($row = mysql_fetch_array($result)) {
?>


	<html>
	<head>
	<script type="text/javascript">
	<!--
	function delayer(){
		window.location = "<?php echo $row['b_link'];?>"
	}
	//-->
	</script>

	</head>
	<body onLoad="setTimeout('delayer()', 5000)">

	<table border="0" width="100%" height="100%" cellspacing="0" cellpadding="0">
		<tr>
			<td>
				<center><h2><?php echo $row['b_message']; ?></h2></center>
			</td>
		</tr>
	</table>

	</body>
	</html>

<?php
	}
}
?>
Return current item: Ban Control