auth->isSuperAdmin()) { return null; } $page_title = __('Advanced cleaner'); # Lists function drawDcAdvancedCleanerLists($core, $type) { $combo_funcs = [ 'settings' => ['dcAdvancedCleaner','getSettings'], 'tables' => ['dcAdvancedCleaner','getTables'], 'plugins' => ['dcAdvancedCleaner','getPlugins'], 'themes' => ['dcAdvancedCleaner','getThemes'], 'caches' => ['dcAdvancedCleaner','getCaches'], 'versions' => ['dcAdvancedCleaner','getVersions'] ]; $combo_actions = [ 'settings' => [ __('delete global settings') => 'delete_global', __('delete blog settings') => 'delete_local', __('delete all settings') =>'delete_all' ], 'tables' => [ __('delete') => 'delete', __('empty') => 'empty' ], 'plugins' => [ __('delete') => 'delete', __('empty') => 'empty' ], 'themes' => [ __('delete') => 'delete', __('empty') => 'empty' ], 'caches' => [ __('delete') => 'delete', __('empty') => 'empty' ], 'versions' => [ __('delete') => 'delete' ] ]; $combo_help = [ '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') . '
'; 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 '