auth->isSuperAdmin()) { return null; } if (!empty($_POST['save'])) { try { dcCore::app()->blog->settings->__get(basename(__DIR__))->dropEvery( 'dcAdvancedCleaner_behavior_active' ); dcCore::app()->blog->settings->__get(basename(__DIR__))->put( 'dcAdvancedCleaner_behavior_active', !empty($_POST['behavior_active']), 'boolean', null, true, true ); dcCore::app()->blog->settings->__get(basename(__DIR__))->dropEvery( 'dcAdvancedCleaner_dcproperty_hide' ); dcCore::app()->blog->settings->__get(basename(__DIR__))->put( 'dcAdvancedCleaner_dcproperty_hide', !empty($_POST['dcproperty_hide']), 'boolean', null, true, true ); dcAdminNotices::addSuccessNotice( __('Configuration successfully updated.') ); dcCore::app()->adminurl->redirect( 'admin.plugins', [ 'module' => basename(__DIR__), 'conf' => 1, 'redir' => empty($_REQUEST['redir']) ? dcCore::app()->admin->list->getURL() . '#plugins' : $_REQUEST['redir'], ] ); } catch (Exception $e) { dcCore::app()->error->add($e->getMessage()); } } echo '
' . __('Enable actions set in _uninstall.php files.') . '
' . __('Prevent from deleting Dotclear important properties.') . '
';