read())) { if ($entry == '.' || $entry == '..') { continue; } $entry = $dir . '/' . $entry; if (is_dir($entry)) { if (!full_rmdir($entry)) { return FALSE; } continue; } if (!@unlink($entry)) { $d->close(); return FALSE; } } $d->close(); rmdir($dir); return TRUE; } // Vars $ajaxdeleted = false; $elements = array(); $locked_by_context = array('index.php', 'config.ini.php'); // If we are storing the media in the data directory (this is the // default for the media firewall), then don't delete it. if ( $USE_MEDIA_FIREWALL && $MEDIA_FIREWALL_ROOTDIR==$INDEX_DIRECTORY && (substr($MEDIA_DIRECTORY, 0, 1)!='.') ) { $locked_by_context[]=trim($MEDIA_DIRECTORY, '/'); } print_header(i18n::translate('Cleanup data directory')); echo '
', '
'), '
');
//post back
if(isset($_REQUEST["to_delete"])) {
echo "", i18n::translate('Deleted files:'), "