Plugin Directory

Changeset 1672187


Ignore:
Timestamp:
06/07/2017 01:17:35 AM (9 years ago)
Author:
eslamsalem
Message:

updates uninstall error

Location:
shieldfy
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • shieldfy/tags/3.0/libs/base.php

    r1672180 r1672187  
    193193
    194194       
    195         $dir = $host_root.'/shieldfy/';
     195        $dir = $host_root.'shieldfy/';
     196        if(!file_exists($dir)) return;
     197       
    196198        @unlink($dir.'.htaccess');
    197199        @unlink($dir.'tmpd/.htaccess');
    198         $res = scandir($dir.'data');
     200        $res = @scandir($dir.'data');
    199201        foreach($res as $re){
    200202            if(is_file($dir.'data/'.$re)){
     
    203205        }
    204206
    205         $res = scandir($dir.'tmpd/ban');
     207        $res = @scandir($dir.'tmpd/ban');
    206208        foreach($res as $re){
    207209            if(is_file($dir.'tmpd/ban/'.$re)){
     
    209211            }
    210212        }
    211         $res = scandir($dir.'tmpd/firewall');
     213        $res = @scandir($dir.'tmpd/firewall');
    212214        foreach($res as $re){
    213215            if(is_file($dir.'tmpd/firewall/'.$re)){
     
    215217            }
    216218        }
    217         $res = scandir($dir.'tmpd/logs');
     219        $res = @scandir($dir.'tmpd/logs');
    218220        foreach($res as $re){
    219221            if(is_file($dir.'tmpd/logs/'.$re)){
  • shieldfy/trunk/libs/base.php

    r1672183 r1672187  
    193193
    194194       
    195         $dir = $host_root.'/shieldfy/';
     195        $dir = $host_root.'shieldfy/';
     196        if(!file_exists($dir)) return;
     197       
    196198        @unlink($dir.'.htaccess');
    197199        @unlink($dir.'tmpd/.htaccess');
    198         $res = scandir($dir.'data');
     200        $res = @scandir($dir.'data');
    199201        foreach($res as $re){
    200202            if(is_file($dir.'data/'.$re)){
     
    203205        }
    204206
    205         $res = scandir($dir.'tmpd/ban');
     207        $res = @scandir($dir.'tmpd/ban');
    206208        foreach($res as $re){
    207209            if(is_file($dir.'tmpd/ban/'.$re)){
     
    209211            }
    210212        }
    211         $res = scandir($dir.'tmpd/firewall');
     213        $res = @scandir($dir.'tmpd/firewall');
    212214        foreach($res as $re){
    213215            if(is_file($dir.'tmpd/firewall/'.$re)){
     
    215217            }
    216218        }
    217         $res = scandir($dir.'tmpd/logs');
     219        $res = @scandir($dir.'tmpd/logs');
    218220        foreach($res as $re){
    219221            if(is_file($dir.'tmpd/logs/'.$re)){
Note: See TracChangeset for help on using the changeset viewer.