"; $strPageRequested = str_replace("/", "",$_SERVER['REQUEST_URI']); $strPageRequested = $objFrontEnd->transform_urlterm_to_term($strPageRequested); //echo $strPageRequested; //################################################################################################# // Getting the URI , the CATEGORY and the SUB CATEGORY - Uncomment echo lines if confused ! //################################################################################################# //$strPageRequestedAfterLastSlash = substr($_SERVER['REQUEST_URI'], 6); // For TEST $strPageRequestedAfterLastSlash = substr($_SERVER['REQUEST_URI'], 1); // For LIVE // Make sure correct line above is commented out for TEST OR LIVE $strCategoryName = substr($strPageRequestedAfterLastSlash,0,strpos($strPageRequestedAfterLastSlash,"/")); // $strSubCategoryName $strSubCategoryName = substr($strPageRequestedAfterLastSlash, strpos($strPageRequestedAfterLastSlash,"/") + 1, strlen($_SERVER['REQUEST_URI'])); $strURLFormattedSubCategoryName = $objFrontEnd->transform_urlterm_to_term($strSubCategoryName); // UNCOMMENT Below if confused :o) //echo "THE URI AFTER HTTP://WWW.DOMAIN.SUFFIX : ".$strPageRequestedAfterLastSlash."
"; //echo "The CATEGORY name is: ".$strCategoryName."
"; //echo "The SUB-CATEGORY is: ".$strSubCategoryName; if(eregi("\?term=", $_SERVER['REQUEST_URI'])) { $arrSearchTerm = split("term=",$_SERVER['REQUEST_URI']); $strSearchTerm = str_replace("%20", " ", $arrSearchTerm[1]); //echo "Search Term = ". $arrSearchTerm[1]; } $arrGetLongNameForTitle = $objFrontEnd->getContentByWebsiteIDAndSubCategoryName(WEBSITE_ID, $strURLFormattedSubCategoryName); //echo "
".print_r($arrGetLongNameForTitle, true)."
"; if(strlen($arrGetLongNameForTitle[0][0]) > 1) { $strPageTitle = $arrGetLongNameForTitle[0][0]; } else { $strPageTitle = $arrGetLongNameForTitle[0][8]; } //################################################################################################# // END Stripping the URL //################################################################################################# //################################################################################################# // End PHP headers - Start HTML //################################################################################################# $strTitle = ""; if(isset($strSearchTerm)){ $strTitle = ucwords(WEBSITE_NAME).".com - Your search for: ".ucwords($strSearchTerm)." - Your Entertainment Portal"; }else{ // $strTitle = $strPageTitle." from Galactic Surf - Your Entertainment Portal"; $strTitle = $strPageTitle." - Add a Link to the Entertainment Directory"; } ?> <? echo $strTitle; ?>
 
homepage Suggest a Site
Entertainment News:
Privacy Policy