auth->isSuperAdmin()){return;} $page_title = __('Advanced cleaner'); # Lists function drawDcAdvancedCleanerLists($core,$type) { $combo_funcs = array( 'settings' => array('dcAdvancedCleaner','getSettings'), 'tables' => array('dcAdvancedCleaner','getTables'), 'plugins' => array('dcAdvancedCleaner','getPlugins'), 'themes' => array('dcAdvancedCleaner','getThemes'), 'caches' => array('dcAdvancedCleaner','getCaches'), 'versions' => array('dcAdvancedCleaner','getVersions') ); $combo_actions = array( 'settings' => array( __('delete global settings') => 'delete_global', __('delete blog settings') => 'delete_local', __('delete all settings') =>'delete_all' ), 'tables' => array( __('delete') => 'delete', __('empty') => 'empty' ), 'plugins' => array( __('delete') => 'delete', __('empty') => 'empty' ), 'themes' => array( __('delete') => 'delete', __('empty') => 'empty' ), 'caches' => array( __('delete') => 'delete', __('empty') => 'empty' ), 'versions' => array( __('delete') => 'delete' ) ); $combo_help = array( 'settings' => __('Namespaces registered in dcSettings'), 'tables' => __('All database tables of Dotclear'), 'plugins' => __('Folders from plugins directories'), 'themes' => __('Folders from blog themes directory'), 'caches' => __('Folders from cache directory'), 'versions' => __('Versions registered in table "version" of Dotclear') ); if (!isset($combo_funcs[$type])) return ''; $rs = call_user_func($combo_funcs[$type],$core); echo '
'.$combo_help[$type].'
'; if (empty($rs)) { echo ''.sprintf(__('There is no %s'),__(substr($type,0,-1))).'
'; } else { echo ''.sprintf(__('There are %s %s'),count($rs),__($type)).'
'. ''; } echo ''.__('Beware: All actions done here are irreversible and are directly applied').'
'; # Information message if (!empty($msg)) { dcPage::success(__('Action successfully done')); } echo ''; foreach($combo_title as $k => $v) { echo ''.$v.' '; } echo '
'; # Load "part" page if (isset($combo_title[$part])) { echo ''; } if ($s->dcAdvancedCleaner_dcproperty_hide) { echo ''.__('Default values of Dotclear are hidden. You can change this in settings tab').'
'; } echo ''.__('settings').' - dcAdvancedCleaner - '.$core->plugins->moduleInfo('dcAdvancedCleaner','version').'
'; ?>