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("readme.txt", "index.php", "gedcoms.php", 'config.ini.php'); // If we are storing the media in the index 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 Index directory')); echo "
are required for proper operation and cannot be removed.
have important settings or pending change data and should only be deleted if you are sure you know what you are doing.');
//post back
if(isset($_REQUEST["to_delete"])) {
echo "", i18n::translate('Deleted files:'), "