网页病毒清除的php类.zip

时间:2022-07-31 04:49:27
【文件属性】:
文件名称:网页病毒清除的php类.zip
文件大小:2KB
文件格式:ZIP
更新时间:2022-07-31 04:49:27
类库下载-网页病毒清除的php类 <?php Class clear_virus{   //public $content;   public $infectFile ='virus.txt';    public $savefile    ="save.txt";    public $timep  ='time.txt';    public $checkFile ='e.php';    public $run   =0;   public $virus_type;   public $replace  ;   public $filepath ;   public $tag         =0;   function open_file(){     $this->read_virus();     $this->check_File();     if($this->run){       $this->update_time();       $this->read_file() ;       foreach($this->filepath as $tmppath){         if(file_exists($tmppath)){           $tmp_file =file_get_contents($tmppath);           print_r( $this->virus_type);           for( $i=0;$ivirus_type);$i  ){             if( strrpos($tmp_file,$this->virus_type[$i])!== false){               $tmp_file =str_replace($this->virus_type[$i],'',$tmp_file);               $this->tag =1;             }           }           if( $this->tag ){             $handle =fopen($tmppath,'w');             fwrite($handle,$tmp_file);             fclose($handle);             unset($tmp_file);           }         }else{           ;         }       }     }   }这是一个网页病毒清除的php安全类,可以查看病毒文件列表文件,所在查看病毒的文件列表,记录清除病毒时间。
【文件预览】:
网页病毒清除的php类
----php中文网下载站.url(114B)
----clear.php(3KB)
----php中文网免费下载站.txt(219B)

网友评论