> " . $subject . " Error...",$message); } function systemMail($to,$subject,$message,$bcc=0){ $message = str_ireplace("\n","
",$message); if($bcc == 1){ $head = $GLOBALS["headers"]; }else if($bcc == 0){ $head = $GLOBALS["headersNoBCC"]; } mail($to,$subject,$message,$head); } } function sendMail($to,$name,$subject,$message){ $tmpMessage = $message; $greeting = ($name != "") ? "Hello " . $name . ",

" : ""; $header = '
Abel Your Realtor Logo
' . $greeting; $footer = '

Thank You.
Abel Cepeda, Owner
info@abelyourrealtor.com

Copyright © ' . date("Y") . ' - Abel Your Realtor
'; $html = $header . $tmpMessage . $footer; //echo $html; mail($to,$subject,$html,$GLOBALS["headers"]); } if(!function_exists('phoneFormat')){ function phoneFormat($phone){ $tmpPhone = $phone; $phone = preg_replace("/[^0-9]/", "", $phone); if(strlen($phone) == 7) return preg_replace("/([0-9]{3})([0-9]{4})/", "$1-$2", $phone); elseif(strlen($phone) == 10) return preg_replace("/([0-9]{3})([0-9]{3})([0-9]{4})/", "($1) $2-$3", $phone); else return $tmpPhone; } } if(!function_exists('date_diff_span')){ function date_diff_span($str_start, $str_end,$show=1,$extra=0){ $str_start = strtotime($str_start); // The start date becomes a timestamp $str_end = strtotime($str_end); // The end date becomes a timestamp $nseconds = $str_end - $str_start; // Number of seconds between the two dates $totalMin = floor($nseconds / 60); $ndays = floor($nseconds / 86400); // One day has 86400 seconds $nseconds = $nseconds % 86400; // The remainder from the operation $nhours = floor($nseconds / 3600); // One hour has 3600 seconds $nseconds = $nseconds % 3600; $nminutes = floor($nseconds / 60); // One minute has 60 seconds, duh! $nseconds = $nseconds % 60; $nseconds = $nseconds + $extra; switch($show){ case 1: return $ndays." d, ".$nhours." h, ".$nminutes." m, ".$nseconds."s"; break; case 2: $nseconds = abs($nseconds); if($nseconds < 10) $nseconds = "0".$nseconds; if($nminutes < 10) $nminutes = abs($nminutes); return $nminutes . ":" . $nseconds; break; case 3: return $nseconds; break; case 4: return $totalMin; break; case 5: $nseconds = abs($nseconds); if($nseconds < 10) $nseconds = "0".$nseconds; if($nminutes < 10) $nminutes = abs($nminutes); return $nminutes . "m " . $nseconds . "s"; break; case 6: return $nhours; break; } } function getWeather($station){ //echo "https://floridaspringlife.com/assets/xml/weather/hourly/weather_hourly" . $station . ".xml
"; $tmpData = file_get_contents("https://floridaspringlife.com/assets/xml/weather/hourly/weather_hourly" . $station . ".xml"); $tmpData = simplexml_load_string($tmpData); $data = ""; //echo "
||";
		//print_r($tmpData);
		//echo "||
"; foreach($tmpData->children() as $r){ $t = date("Y-m-d h:ia",strtotime($r->day)); //date_add($r->day,date_interval_create_from_date_string("0 hours")); $q = date("r"); //echo $t . " - || - " . $q . " * || * " . $r->now_f . " ++++ " . $r->conditions . " ++++ |" . date_diff_span($t,$q,6) . "
"; if(intval(date_diff_span($t,$q,6)) == 0){ $data = '
Weather: ' . $r->conditions . '
' . $r->conditions . '
' . number_format(floatval($r->now_f),1) . '° F
'; break; } } //echo $data; return $data; } } ?>
' . $mainPageTitle . '
'; switch($_GET["pageID"]){ case 11: include("_resources/pages/terms.php"); break; case 12: include("_resources/pages/privacy.php"); break; case 13: include("_resources/pages/cookie.php"); break; } echo '
'; break; } include("_resources/includes/footer.php"); ?>