function shrinktheweb_deleteAllImages in ShrinkTheWeb 7
Same name and namespace in other branches
- 8 shrinktheweb.api.inc \shrinktheweb_deleteAllImages()
- 6 shrinktheweb.api.inc \shrinktheweb_deleteAllImages()
Delete cached images
1 call to shrinktheweb_deleteAllImages()
File
- ./
shrinktheweb.api.inc, line 64
Code
function shrinktheweb_deleteAllImages() {
$rDir = opendir(THUMBNAIL_DIR);
while (false !== ($sFile = readdir($rDir))) {
if ($sFile != "." && $sFile != "..") {
@unlink(THUMBNAIL_DIR . $sFile);
}
}
closedir($rDir);
}