From 7d049520112991edf1f1fd1f446bb892fc680b9c Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sun, 21 Dec 2008 11:18:19 -0500 Subject: Re-did 404 page For some reason, the 404 page was previously filled with terrible semantics, IE classes and it didn't look great. Now, the HTML has been improved. The Search clause has been fixed, there was a bug with displaying the search terms. Also, the error document has been set to the 404 page so the 404 page is actually shown when a page cannot be found. --- pages/error.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'pages') diff --git a/pages/error.php b/pages/error.php index 7f6c505..969b7da 100755 --- a/pages/error.php +++ b/pages/error.php @@ -41,10 +41,10 @@ if ($errorid == '404') } else { if ((strpos($strReferer,".looksmart.co")>0) || (strpos($strReferer,".ifind.freeserve")>0) || (strpos($strReferer,".ask.co")>0) || (strpos($strReferer,"google.co")>0) || (strpos($strReferer,"altavista.co")>0) || (strpos($strReferer,"msn.co")>0) || (strpos($strReferer,"yahoo.co")>0)) { - $arrSite = split("/",$strReferer); - $arrParams = split("?",$strReferer); + $arrSite = explode("/",$strReferer); + $arrParams = explode("?",$strReferer); $strSearchTerms = $arrParams[1]; - $arrParams = split("&",$strSearchTerms); + $arrParams = explode("&",$strSearchTerms); $strSite = $arrSite[2]; $sQryStr=""; $arrQueryStrings = array("q=","p=","ask=","key="); @@ -54,12 +54,14 @@ if ($errorid == '404') for ($q=0;$q