authenticate();
$today = getdate();
$d = $today['mday'];
$d = str_pad($d, 2, 0, STR_PAD_LEFT);
$m = $today['mon'];
$m = str_pad($m, 2, 0, STR_PAD_LEFT);
$y = $today['year'];
$h = $today['hours'];
$minute = $today['minutes'];
$minute = str_pad($minute, 2, 0, STR_PAD_LEFT);
$s = $today['seconds'];
$s = str_pad($s, 2, 0, STR_PAD_LEFT);
$requestID = "444" . $y . $m . $d . $h . $minute . $s;
$propertyType = isset($_GET["propertyType"]) ? $_GET["propertyType"] : "";
$clientID = isset($_GET["clientid"]) ? $_GET["clientid"] : "";
if (isset($_POST['Submit'])) {
?>
get_connection()->connect_error)
die("Connection failed: " . $broker_connection->get_connection()->connect_error);
echo "No Property Results - Inserting Data";
$substring = ' County';
$geoCounty = isset($_POST["administrative_area_level_2"]) ? $_POST["administrative_area_level_2"] : "";
if (substr($geoCounty, -strlen($substring)) === $substring)
$geoCounty = substr($geoCounty, 0, strlen($geoCounty) - strlen($substring));
if (!(isset($_POST["locality"])) && (isset($_POST["sublocality_level_1"])))
$city = $_POST["sublocality_level_1"];
else
$city = isset($_POST["locality"]) ? $_POST["locality"] : "";
$streetAddr = $_POST["street_number"] . " " . $_POST["route"];
$msg = create_obj($_POST);
$msg->city = $city;
$msg->geo_county = $geoCounty;
$msg->request_id = $requestID;
$msg->street_addr = $streetAddr;
$geo_meter_repository->insert_geo_info($msg);
$setRedirectURL = geometer_url('?rateid=' . $requestID . '&propertyType=' . $propertyType . '&clientid=' . $clientID);
//header('Location: ' . $setRedirectURL);
echo $broker_connection->get_connection()->info;
$broker_connection->get_connection()->close();
}
// include '../inc/header.php';
?>
" rel="stylesheet" type="text/css">
" rel="stylesheet" type="text/css">
" rel="stylesheet" type="text/css">