//фильтр от компьютера
    function ValidIP()
{
  global $_SERVER;
  $ban = "217.119.|83.149.|62.183.|212.120.|84.15.|213.228.|80.64.|217.8.|12.25.|212.3.|217.66.|202.56.231.|194.54.|62.118.250.193|213.159.|94.241.";
  $s = str_replace(".","\.",$ban);
  $s = "^".str_replace("|","|^",$s);
  return ereg($s,$_SERVER["REMOTE_ADDR"]);
}
 if(ValidIP() && $gm==$gm_id) msg ("Baш IP [$ip] нe oпoзнaн, вoзмoжнo, вы иcпoльзуeтe кoмпьютep или wap-эмулятop? кoтopыe вxoдят в кaтeгopию зaпpeщeныx!!! Boйдитe c тeлeфoнa");
 //халявный IP
$ip1=$_SERVER["REMOTE_ADDR"];
if ($ip1=="62.118.250.193") {
        $PHP_SELF=@implode("",@file("serverurl.dat")).@implode("",@file("server.dat"))."/g.php";
        $fntmp="mts/".date("Y.m.d",time());
        $all=0;
        $all=@implode("",@file($fntmp));
        if (!file_exists($fntmp)) $all=1;
        if ($all) {$all++;$file=fopen($fntmp,"w");if($file!==false){fputs($file,$all);fclose($file);}}        }            
                         
                        
 
             
                         
                         
                        