get() as $k) { $select_menu[$k->name] = $k->id; if ($k->id == $_REQUEST['part']) { $cleaner = $k; } } if (!$cleaner) { if (!($cleaner = $ac->get('caches', true))) { return false; } } # Actions if (!empty($_POST['entries']) && !empty($_POST['action'])) { try { foreach ($_POST['entries'] as $ns) { $ac->set($cleaner->id, $_POST['action'], $ns); } dcPage::addSuccessNotice(__('Action successfuly excecuted')); $core->adminurl->redirect( 'admin.plugin.dcAdvancedCleaner', ['part' => $cleaner->id] ); } catch (Exception $e) { $core->error->add($e->getMessage()); } } # Display echo '
' . $cleaner->desc . '
'; $rs = $cleaner->get(); if (empty($rs)) { echo '' . __('There is nothing to display') . '
'; } else { echo ''; } if ($core->blog->settings->dcAdvancedCleaner->dcAdvancedCleaner_dcproperty_hide) { echo '' . __('Default values of Dotclear are hidden. You can change this in settings') . '
'; } dcPage::helpBlock('dcAdvancedCleaner'); echo '';