getWebsiteKey());
$affiliateIndex = -1;
// set all global variables - templatemanager.php
pageSetup();
// if page not found then go home
if (strcmp($currentPage->getWebsiteKey(), "") == 0) {
$url = "http://" . $websiteName . dirname($_SERVER['PHP_SELF']);
header("Location: $url", true);
ob_end_flush();
}
// get current link description
$currentLink = getWebsiteLink(getUrlPart("pagelink"), $ws->getWebsiteKey());
$linkDesc = $currentLink->getLinkText();
// if any php scripts on the template run them
// eval value must be valid php or will die and give error
if (strlen($mainPage->getPhpscript()) > 0)
eval($mainPage->getPhpscript());
// if any php scripts on the page run them
// eval value must be valid php or will die and give error
if (strlen($currentPage->getPhpscript()) > 0) {
eval($currentPage->getPhpscript());
}
// echo "
";
// echo "url: " . $url . "
";
// echo "pagelink: " . $pagelink . "
";
// echo "page: " . $page . "
";
// echo "pageDisplay: " . $pageDisplay . "
";
// echo "stateAbbr: " . $stateAbbr . "
";
// echo "stateName: " . $stateName . "
";
// echo "cityName: " . $cityName . "
";
// echo "linkDesc: " . $linkDesc . "
";
?>