__('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() { $input = $this->wire('input'); $vars = array(); if($input->get('login')) $vars['login'] = (int) $input->get('login'); if($input->get('layout')) $vars['layout'] = $this->wire('sanitizer')->name($input->get('layout')); $url = "page/"; if(count($vars)) { $url .= '?'; foreach($vars as $key => $value) { $url .= "$key=" . $this->wire('sanitizer')->entities($value) . "&"; } $url = rtrim($url, '&'); } $this->session->redirect($url); } }