Размер файла: 2.15Kb
<?php
function utf8($s) {
$s = str_replace("","",$s);
return $s; }
ob_start("utf8");
Error_Reporting(E_ALL & ~E_NOTICE);
Error_Reporting (ERROR | WARNING);
function myErrorHandler ($errno, $errstr, $errfile, $errline) {}
set_error_handler("myErrorHandler");
//\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
if (getenv("HTTP_X_FORWARDED_FOR"))
{ $ip=getenv("HTTP_X_FORWARDED_FOR"); }
else { $ip=getenv("REMOTE_ADDR"); }
$ban=$DOCUMENT_ROOT.'/ban.dat';
$file = @file($ban);
$total = count($file);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 15){ $end = $total; }
else {$end = $start + 15; }
for ($i = $start; $i < $end; $i++){
$file = @file($ban);
$data = explode(":::",$file[$i]); }
$data[1] = str_replace(":::","",$data[1]);
$data[1] = str_replace("\r\n","",$data[1]);
if($ip=="$data[1]") { echo"<center><br/><br/><br/><h1><big><BLINK>ИДИ НАХУЙ!!!</BLINK></big></h1></center>"; exit;}
//\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
list($msec,$sec)=explode(chr(32),microtime());
$HeadTime=$sec+$msec;
header("Content-type:text/html; charset=utf-8");
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"><html><head>";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
<link rel=\"shortcut icon\" href=\"http://visavi.net/favicon.ico\"><title>VISAVI.NET</title>
<style type=\"text/css\">
body { font-weight: normal; font-size: normal; font-family: georgia; color: #666699; background-color: #CCCCFF }
a:link,a:active,a:visited { text-decoration: underline; color : #0066FF }
a:hover { text-decoration: none; color : #FF0000 }
div { margin: 1px 0px 1px 0px; padding: 5px 5px 5px 5px; font-weight: bold;}
div.blue{ background-color: #3333FF; padding-top: 5px; padding-bottom: 5px; padding-left: 4px; border: 1px solid; text-align: center;}
a {font-weight: bold;}
div.a {margin: 0px 0px 3px 0px; padding: 0px 0px 1px 0px; border: 1px solid #669999;}
div.b {margin: 0px; border-top: 5px solid #E3E3FC; border-bottom: 5px solid #ACACFA; padding: 5px; vertical-align: middle; }
</style></head>
<body bgcolor=\"#CCCCFF\">"; ?>