blog->settings->addNamespace(Core::id()); self::$init = true; } return self::$init; } public static function process(): void { if (!self::$init) { return; } if (empty($_POST['save'])) { return; } try { $pdisabled = ''; if (!empty($_POST['disabled']) && is_array($_POST['disabled'])) { $pdisabled = implode(';', $_POST['disabled']); } dcCore::app()->blog->settings->get(Core::id())->put('disabled', $pdisabled); dcCore::app()->blog->settings->get(Core::id())->put('nodetails', !empty($_POST['nodetails'])); dcPage::addSuccessNotice(__('Configuration successfully updated')); dcCore::app()->adminurl->redirect( 'admin.plugins', ['module' => 'improve', 'conf' => 1, 'chk' => 1, 'redir' => dcCore::app()->admin->__get('list')->getRedir()] ); } catch (Exception $e) { dcCore::app()->error->add($e->getMessage()); } } public static function render() { if (!self::$init) { return; } $improve = new Core(); $modules = []; foreach ($improve->modules() as $action) { $modules[$action->name()] = $action->id(); } $modules = array_merge($modules, array_flip($improve->disabled())); echo '