auth->isSuperAdmin()) { return null; } if (!empty($_POST['save'])) { try { $core->blog->settings->dcAdvancedCleaner->dropEvery( 'dcAdvancedCleaner_behavior_active' ); $core->blog->settings->dcAdvancedCleaner->put( 'dcAdvancedCleaner_behavior_active', !empty($_POST['behavior_active']), 'boolean', null, true, true ); $core->blog->settings->dcAdvancedCleaner->dropEvery( 'dcAdvancedCleaner_dcproperty_hide' ); $core->blog->settings->dcAdvancedCleaner->put( 'dcAdvancedCleaner_dcproperty_hide', !empty($_POST['dcproperty_hide']), 'boolean', null, true, true ); dcPage::addSuccessNotice( __('Configuration successfully updated.') ); $core->adminurl->redirect( 'admin.plugins', [ 'module' => 'dcAdvancedCleaner', 'conf' => 1, 'redir' => empty($_REQUEST['redir']) ? $list->getURL() . '#plugins' : $_REQUEST['redir'] ] ); } catch (Exception $e) { $core->error->add($e->getMessage()); } } echo '

' . __('Enable actions set in _uninstall.php files.') . '

' . __('Prevent from deleting Dotclear important properties.') . '

';