cleandir("var/cache");
}
if (file_exists("var/session")) {
    echo "Clearing var/session<br/>";
    cleandir("var/session");
}
if (file_exists("var/minifycache")) {
    echo "Clearing var/minifycache<br/>";
    cleandir("var/minifycache");
}
if (file_exists("downloader/pearlib/cache")) {
    echo "Clearing downloader/pearlib/cache<br/>";
    cleandir("downloader/pearlib/cache");
}
if (file_exists("downloader/pearlib/download")) {
    echo "Clearing downloader/pearlib/download<br/>";
    cleandir("downloader/pearlib/download");
}
if (file_exists("downloader/pearlib/pear.ini")) {
    echo "Removing downloader/pearlib/pear.ini<br/>";
    unlink("downloader/pearlib/pear.ini");
}
echo "<br/>************** CHECKING FOR EXTENSIONS ***********<br/>";
if (!isDirEmpty("app/code/local/")) {
    echo "-= WARNING =- Overrides or extensions exist in the app/code/local folder<br/>";
}
if (!isDirEmpty("app/code/community/")) {
    echo "-= WARNING =- Overrides or extensions exist in the app/code/community folder<br/>";
}
$end = (double) array_sum(explode(' ', microtime()));
echo "<br/>------------------- CLEANUP COMPLETED in:" . sprintf("%.4f", $end - $start) . " seconds ------------------<br/>";
Beispiel #2
0
 function destruct()
 {
     foreach ($this->filenames as $filename) {
         unlink($filename);
         // now see if directory can be deleted
         if (isDirEmpty(dirname($filename))) {
             rmdir(dirname($filename));
         }
     }
 }