* @modified Constantinos Neophytou */ // move out of contrib for includes chdir('..'); require_once './core/functions.php'; require_once './core/setup.core.php'; ?> Cleanup Image Cache "; } elseif (in_array($file, $covers)) { $coverSize += filesize($file); $coverNum++; } elseif (in_array($file, $actors)) { $actorSize += filesize($file); $actorNum++; } } echo sprintf(" $coverNum out of %d files with a size of %.2fMB are used for covers
$actorNum out of %d files with a size of %.2fMB are used for headshots
$unused out of %d files with a size of %.2fMB are currently unused
", count($files), $coverSize/(1024*1024), count($files), $actorSize/(1024*1024), count($files), $size/(1024*1024)); if ($unused) { if ($submit) { echo "$unused files with a size of ".round($size/(1024*1024),2)."Mb have been deleted
"; } ?>
>