if ($_GET['m'] == "Y") { include("index-m.html"); exit; } include($_SERVER["DOCUMENT_ROOT"]."/_common/common.inc"); include("/home/cbhearth/_inc/admin.inc"); include($incDir."/listings/listing.inc"); require($incDir."/listings/agentopenhouse.inc"); include("/home/cbhearth/_inc/dbconnect.inc"); include("/home/cbhearth/_inc/StringUtil.inc"); include("loadopenhouse.inc"); $next = $_GET['next']; $openPos = strpos($next, "open-houses.html"); if ($openPos === false) { $isNextOpen = false; } else { $isNextOpen = true; } $today = strtotime(date("Y-m-d")); $ohDate = strtotime($oh->getDate()); $isActive = true; if ($ohDate < $today) { $pgTitle = "This open house has passed."; $isActive = false; } else { $pgTitle = date("l, M. jS", $ohDate)." ".$oh->getTimeStr().": ". ucwords(strtolower($prop->getStreetStr())).", ". ucwords(strtolower($prop->getCityPO()))." ". $prop->getState()." ".$prop->getZipCode(); } $headerNav = "buy"; ?>