Changeset 1672187
- Timestamp:
- 06/07/2017 01:17:35 AM (9 years ago)
- Location:
- shieldfy
- Files:
-
- 2 added
- 2 edited
-
LICENCE.md (added)
-
README.md (added)
-
tags/3.0/libs/base.php (modified) (4 diffs)
-
trunk/libs/base.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shieldfy/tags/3.0/libs/base.php
r1672180 r1672187 193 193 194 194 195 $dir = $host_root.'/shieldfy/'; 195 $dir = $host_root.'shieldfy/'; 196 if(!file_exists($dir)) return; 197 196 198 @unlink($dir.'.htaccess'); 197 199 @unlink($dir.'tmpd/.htaccess'); 198 $res = scandir($dir.'data');200 $res = @scandir($dir.'data'); 199 201 foreach($res as $re){ 200 202 if(is_file($dir.'data/'.$re)){ … … 203 205 } 204 206 205 $res = scandir($dir.'tmpd/ban');207 $res = @scandir($dir.'tmpd/ban'); 206 208 foreach($res as $re){ 207 209 if(is_file($dir.'tmpd/ban/'.$re)){ … … 209 211 } 210 212 } 211 $res = scandir($dir.'tmpd/firewall');213 $res = @scandir($dir.'tmpd/firewall'); 212 214 foreach($res as $re){ 213 215 if(is_file($dir.'tmpd/firewall/'.$re)){ … … 215 217 } 216 218 } 217 $res = scandir($dir.'tmpd/logs');219 $res = @scandir($dir.'tmpd/logs'); 218 220 foreach($res as $re){ 219 221 if(is_file($dir.'tmpd/logs/'.$re)){ -
shieldfy/trunk/libs/base.php
r1672183 r1672187 193 193 194 194 195 $dir = $host_root.'/shieldfy/'; 195 $dir = $host_root.'shieldfy/'; 196 if(!file_exists($dir)) return; 197 196 198 @unlink($dir.'.htaccess'); 197 199 @unlink($dir.'tmpd/.htaccess'); 198 $res = scandir($dir.'data');200 $res = @scandir($dir.'data'); 199 201 foreach($res as $re){ 200 202 if(is_file($dir.'data/'.$re)){ … … 203 205 } 204 206 205 $res = scandir($dir.'tmpd/ban');207 $res = @scandir($dir.'tmpd/ban'); 206 208 foreach($res as $re){ 207 209 if(is_file($dir.'tmpd/ban/'.$re)){ … … 209 211 } 210 212 } 211 $res = scandir($dir.'tmpd/firewall');213 $res = @scandir($dir.'tmpd/firewall'); 212 214 foreach($res as $re){ 213 215 if(is_file($dir.'tmpd/firewall/'.$re)){ … … 215 217 } 216 218 } 217 $res = scandir($dir.'tmpd/logs');219 $res = @scandir($dir.'tmpd/logs'); 218 220 foreach($res as $re){ 219 221 if(is_file($dir.'tmpd/logs/'.$re)){
Note: See TracChangeset
for help on using the changeset viewer.