1) { $searchdecode = 1; } elseif (strstr($browse, "/search") && $use_short == 1) { $browse = str_replace("/search", "", $browse); $searchdecode = 1; } // Clean up category for invalid characters $browse = CheckSlashesRemove($browse); $browse = str_replace("..", "", $browse); $browse = str_replace("<", "<", $browse); $browse = str_replace(">", ">", $browse); //if ( strstr ($browse, "Adult/") ) { // $browse = ''; //} //if ( strstr ($browse, "Bookmarks") ) { // $browse = ''; //} if ( strstr ($browse, "Arts/Music") ) { $browse = $browse; } else { $browse = ''; } // Set the attribution category if ($browse) { $attributioncat = encodecategory($browse); } else { $attributioncat = "/"; } // Set the search string $searchstring = $_POST['search']; if ($searchstring == "") { $searchstring = $_GET['search']; } $searchstring = str_replace("..", "", $searchstring); $searchstring = str_replace("<", "<", $searchstring); $searchstring = str_replace(">", ">", $searchstring); $start = $_GET['start']; $morecat = $_GET['morecat']; $DocumentEncoding = 'UTF-8'; ////////////////////////////////////////////////////////////////////////////// // Set the breadcrumb trail if (($browse) && ($browse <> "/")) { $cat = $browse; $breadcrumb = "
"; } elseif ($searchstring) { $breadcrumb = " "; } ////////////////////////////////////////////////////////////////////////////// // Set search restriction if category is defined if (($browse <> "") && ($browse <> "/")) { $currentcatfix = substr(encodecategory($browse), 1); $searchoptions = " "; } else { $searchoptions = ""; } ////////////////////////////////////////////////////////////////////////////// // Set the DMOZ template config // Set variables to look for in the DMOZ template // This is the bit that changes when they change their template $LinkStart = '"; // Look for end string on a category $CatEnd = '