__('Admin Home', __FILE__), // getModuleInfo title 'summary' => __('Acts as a placeholder Process for the admin root. Ensures proper flow control after login.', __FILE__), // getModuleInfo summary 'version' => 101, 'permission' => 'page-view', 'permanent' => true, ); } public function ___execute() { if($this->wire()->config->ajax) return ''; $input = $this->wire()->input; $sanitizer = $this->wire()->sanitizer; $vars = array(); $login = $input->get('login'); $layout = $input->get('layout'); if($login) $vars['login'] = (int) $login; if($layout) $vars['layout'] = $sanitizer->name($layout); unset($login, $layout); $url = 'page/'; if(count($vars)) $url .= '?' . http_build_query($vars); $this->wire()->session->location($url); } }