adds_block('NOREFERER',array('exi'=>1)); } 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 = explode("/",$strReferer); $arrParams = explode("?",$strReferer); $strSearchTerms = $arrParams[1]; $arrParams = explode("&",$strSearchTerms); $strSite = $arrSite[2]; $sQryStr=""; $arrQueryStrings = array("q=","p=","ask=","key="); for ($i=0;$iadds_block('SEARCHREF',array( 'REF' => $strReferer, 'SITE' => $strSite, 'TERMS' => $strSearchTerms)); } else { $strSite = $strReferer; $strSite = split("/",$strSite); $strSite = $strSite[2]; if (preg_match('/fourisland\.com/',$strSite) == 1) { $template->adds_block('OURBAD',array('exi'=>1)); } $template->adds_block('NORMALREF',array( 'REF' => $strReferer, 'SITE' => $strSite)); } } $template->display(); }