restrictAccess(Auth::isAdmin()) ->setPageTitle(/* I18N: The “Data folder” is a configuration setting */ WT_I18N::translate('Clean up data folder')) ->pageHeader(); require WT_ROOT.'includes/functions/functions_edit.php'; // Vars $ajaxdeleted = false; $locked_by_context = array('index.php', 'config.ini.php'); // If we are storing the media in the data folder (this is the // defaultl), then don’t delete it. // Need to consider the settings for all gedcoms foreach (WT_Tree::getAll() as $tree) { $MEDIA_DIRECTORY=$tree->getPreference('MEDIA_DIRECTORY'); if (substr($MEDIA_DIRECTORY, 0, 3) !='../') { // Just need to add the first part of the path $tmp = explode('/', $MEDIA_DIRECTORY); $locked_by_context[] = $tmp[0]; } } echo '
', WT_I18N::translate('Files marked with %s are required for proper operation and cannot be removed.', ''), '
'; //post back if (isset($_REQUEST['to_delete'])) { echo '