<?
if ($_SERVER['HTTP_X_FORWARDED_FOR'])
{ $ip=$_SERVER['HTTP_X_FORWARDED_FOR']; } else { $ip=$_SERVER['REMOTE_ADDR'];}
$banus=mysql_query("select * from `ban` where who='".$_USER['login']."'");
$bann=mysql_num_rows($banus);
if($bann>0)
{header ("Location: http://sclubik.ru/gban.php?logg=".$_USER['login'].""); }
?>