include($_SERVER["DOCUMENT_ROOT"]."/_common/common.inc"); include("/home/cbhearth/_inc/admin.inc"); include("/home/cbhearth/_inc/microsite-page.inc"); include("/home/cbhearth/_inc/StringUtil.inc"); include("/home/cbhearth/_inc/dbconnect.inc"); include("/home/cbhearth/_inc/agent/agentload.inc"); include("common.inc"); // see if this page has been added yet, if not, add it to the DB $msPage = MicrositePage::getInstanceOnUser($agent, "community"); $isDisplayed = isset($addPages) && count($addPages) > 0 && in_array("community", $addPages); if (isset($msPage) == false || $isDisplayed == false) { $link = "about.html?cid={$crestId}"; header ("Location: ".$link); exit; } $commPages = MicrositePage::getCommunityPagesOnUser($agent); if (isset($commPages) == false || count($commPages) == 0) { // nothing to display, redirect $link = "about.html?cid={$crestId}"; header ("Location: ".$link); exit; } $title = isset($commPages) && count($commPages) > 1 ? "Communities" : "Community"; ?>
$pgTitle = htmlspecialchars("Featured {$title} :: ".$agent->getNameNice()); include("meta.inc"); ?> $topNav = "about"; include("header.inc"); ?>"; echo "getCrestId()."&"; echo "sub=".urlencode($subDivision); echo "\">View Active Community Listings"; echo " | "; echo "getCrestId()."&"; echo "sub=".urlencode($subDivision); echo "\">View Sold & Under Contract Listings"; echo "
"; } echo "