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[mode]=="detail"){ include("$db->newTemplatePath/$header"); include("$db->newTemplatePath/newsCMS.detail.tem.php"); include("$db->newTemplatePath/$footer"); } else { $db->noCacheHeader(); include("$db->newTemplatePath/$header"); include("$db->newTemplatePath/newsCMS.list.tem.php"); include("$db->newTemplatePath/$footer"); } $db->disconnectMySQL(); ?>