<?php
 namespace Modules\Utils\Debug; class Controller extends \App\Mvc\ControllerAbstract { protected function initialize() { parent::initialize(); $this->actionsCfg['index'] = ['authType'=>'none', 'checkSection' => false, 'checkOption'=>false]; \App\UserTrail::getInstance()->storeTrail(false); } protected function actionIndex(array $R) { if (isset($R['debug'])) { global $S; $S['_engine']['showDebugs'] = (bool)$R['debug']; } if (SHOW_DEBUGS and $R['cleanUpdaterVars']) { $updaterVarsObj = \App\Config\UpdaterVars::getAdmin(); $updaterVarsObj->delete('currentIdInstanceKit'); $updaterVarsObj->delete('currentIdProductVersionPatch'); $updaterVarsObj->save(); } return new \Engine\Mvc\Response\None(); } } 