View file game/gost/del_ip.php

File size: 842B
<?php
include'config.php';


$antopen=opendir('antispam');
while($rsp=readdir($antopen)){
if(is_file('antispam/'.$rsp)){
if($time-filemtime('antispam/'.$rsp)>300){
@unlink('antispam/'.$rsp);
}
}
}
closedir($antopen);


$urban=opendir($udir);
while($urn=readdir($urban)){
if(is_file($udir.'/'.$urn)){
if(ereg('[0-9]\.(usr$)',$urn)){

$fban=file($udir.'/'.$urn);
$fban=explode('#',$fban[0]);
if(!empty($fban[7])){
if($fban[7]<=$time){
$fban[7]='';

$impl=implode('#',$fban);


$opban=fopen($udir.'/'.intval($urn).'.usr','w');
fputs($opban,$impl);
fclose($opban);
}
}
}
}
}
closedir($urban);


$readban=opendir($bandir);
while($rn=readdir($readban)){
if(is_file($bandir.'/'.$rn)){
if(ereg('[0-9]\.(ban$)',$rn)){
if(intval($rn)<=$time){
@unlink($bandir.'/'.$rn);
}
}
}
}
closedir($readban);

?>