Powered By:
{source}
<?php
// send request to http://wgny.us/delays_offsite.php
$MYSITE = $_SERVER['HTTP_HOST'];
$REQUEST_URL = 'http://wgny.us/delays_offsite.php';
// type, date,
$DATE = false;
$TYPE = false;
if (isset($_REQUEST['date'])){$DATE = $_REQUEST['date'];}
if (isset($_REQUEST['type'])){$TYPE = $_REQUEST['type'];}
$requestString = 'MYSITE='.urlencode($MYSITE);
if ($DATE) $requestString .= '&date='.urlencode($DATE);
if ($TYPE) $requestString .= '&type='.urlencode($TYPE);
if (true) print '<!-- '.$requestString.' -->';
$page = file_get_contents($REQUEST_URL.'?'.$requestString);
// print page
if ($page) echo $page; else print 'An error has occured.';
?>
{/source}