$value) { $tempRay3 =array(); $tempRay3 = explode("=",$value); $_GET[$tempRay3[0]] = urldecode($tempRay3[1]); $_REQUEST[$tempRay3[0]] = urldecode($tempRay3[1]); } } $this->_SetAction(); } function HandlePage() { // Determine which function to load switch($this->_action) { default: { $GLOBALS["HideArticleOptionsPanel"] = true; $this->Search(); break; } } } function GetAction() { return $this->_action; } function _SetAction() { $uri = $_SERVER["REQUEST_URI"]; if(is_numeric(strpos($uri, "/advanced"))) $this->_action = "advancedsearch"; else $this->_action = "search"; } function Search() { $query = (isset($_POST['Query'])) ? $_POST['Query'] : ''; if ($query == '') { if (isset($_GET['Query'])) $query = $_GET['Query']; } $query = addslashes($query); $GLOBALS['Query'] = $query; if($query == "") { $GLOBALS["AL_CLASS_TEMPLATE"]->SetPageTitle($GLOBALS["AL_CFG"]["siteName"]); // Hide the panels we don't need $GLOBALS["HidePanels"] = array("ViewArticlesPanel", "SubmitCommentPanel", "SearchResultsPanel", "SubmitArticlePanel", "SubmitArticleRegularPanel", "AddPagePanel", "ArticleFavouritesPanel", "ArticleAuthPanel", "CategoryAuthPanel", "ViewArticlePanel" ); } else { $GLOBALS["AL_CLASS_TEMPLATE"]->SetPageTitle($GLOBALS["AL_LANG"]["searchSearchResults"]); // Hide the panels we don't need $GLOBALS["HidePanels"] = array("ArticleAuthPanel", "CategoryAuthPanel", "ViewArticlesPanel", "SubmitCommentPanel", "SubmitArticlePanel", "SubmitArticleRegularPanel", "AddPagePanel", "ArticleFavouritesPanel", "ViewArticlePanel" ); } // Load the view article page $GLOBALS["AL_CLASS_TEMPLATE"]->SetTemplate("Articles"); echo $GLOBALS["AL_CLASS_TEMPLATE"]->ParseTemplate(); } } ?>