connectMySQL(); $refer = getenv("HTTP_REFERER"); if($db->isValidRetailer($_SESSION[rString])){ $header = "retailers/header1.tem.php"; $footer = "footerCMS1.tem.php"; } else { $header = "headerCMS2.tem.php"; $footer= "footerCMS1.tem.php"; } if($_GET["aName"] || $_GET["otState"]){ $db->noCacheHeader(); $result = $db->getOnTourArtistSchedule($_GET["aName"], $_GET["otState"]); include("$db->newTemplatePath/$header"); include("$db->newTemplatePath/tourCMS.results.tem.php"); include("$db->newTemplatePath/$footer"); } else { $db->noCacheHeader(); include("$db->newTemplatePath/$header"); include("$db->newTemplatePath/tourCMS.form.tem.php"); include("$db->newTemplatePath/$footer"); } $db->disconnectMySQL(); ?>