Browse Source

Update deltmp.php

yeungalan 6 years ago
parent
commit
0648526273
1 changed files with 2 additions and 2 deletions
  1. 2 2
      7-Zip File Manager/deltmp.php

+ 2 - 2
7-Zip File Manager/deltmp.php

@@ -2,7 +2,7 @@
     $dirs = scandir("./tmp/");
     foreach ($dirs as $dir){
        $time = filectime("./tmp/".$dir) ;
-        if($time + 3600*3 <= time()){
+        if($time + 3600*3 <= time() && $dir !== ".." && $dir !== "."){
             //echo "$dir Deleted.\r\n";
             if(is_dir("./tmp/".$dir)){
                 rrmdir("./tmp/".$dir);
@@ -27,4 +27,4 @@
      }
      rmdir($dir); 
    } 
- }
+ }