function ExtractPageInfo() { if ($page_info = SJB_PageManager::extract_page_info($this->uri, SJB_System::getSystemSettings('SYSTEM_ACCESS_TYPE'))) { $this->page_id = $page_info['ID']; $this->page_exists = true; $this->module = $page_info['module']; $this->function = $page_info['function']; $this->template = $page_info['template']; $this->title = $page_info['title']; $this->parameters = unserialize($page_info['parameters']); $this->keywords = $page_info['keywords']; $this->description = $page_info['description']; $uri = $page_info['uri']; if ($uri == $this->uri . '/') { $this->uri .= '/'; if (preg_match("/\\?/", $_SERVER['REQUEST_URI']) && !preg_match("/\\/\\?/", $_SERVER['REQUEST_URI'])) { $_SERVER['REQUEST_URI'] = str_replace("?", "/?", $_SERVER['REQUEST_URI']); } else { $_SERVER['REQUEST_URI'] = $_SERVER['REQUEST_URI'] . '/'; } } $this->has_raw_output = SJB_System::doesFunctionHaveRawOutput($this->module, $this->function); } }