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); } dcAdminNotices::addSuccessNotice(__('Action successfuly excecuted')); dcCore::app()->adminurl->redirect( 'admin.plugin.' . basename(__DIR__), ['part' => $cleaner->id] ); } catch (Exception $e) { dcCore::app()->error->add($e->getMessage()); } } # Display echo '
' . $cleaner->desc . '
'; $rs = $cleaner->get(); if (empty($rs)) { echo '' . __('There is nothing to display') . '
'; } else { echo ''; } if (dcCore::app()->blog->settings->__get(basename(__DIR__))->dcAdvancedCleaner_dcproperty_hide) { echo '' . __('Default values of Dotclear are hidden. You can change this in settings') . '
'; } dcPage::helpBlock('dcAdvancedCleaner'); echo '';