"; } echo '"; $c++; } echo "
"; foreach ($upcomingevents as $key => $value) { $fh = fopen($value, 'r'); $theData = fread($fh, filesize($value)); fclose($fh); $eventvariables = json_decode($theData,true); if ($c%$cols==0) { echo "
'; if ($eventvariables['event'][0]['dateMonth']=="on") { $dateOfEvent = date('F Y',$key); } else { $dateOfEvent = date('F d, Y',$key); } echo $dateOfEvent. "
" .$eventvariables['event'][0]['title']."". "
".$eventvariables['event'][0]['location']. "
".$eventvariables['event'][0]['desc'] . "

"; if ($eventvariables['event'][0]['url'] != "") { if (stripos($eventvariables['event'][0]['url'],$_SERVER['SERVER_NAME']) === false) { if (stripos($eventvariables['event'][0]['url'],$_SERVER['SERVER_NAME']) !== false) { echo ""; } else { if (stripos($eventvariables['event'][0]['url'],"http://") !== false) { echo ""; } else { echo ""; } } } } /* if ($eventvariables['event'][0]['type'] != "Event Not Associated with NCFG") { echo "   "; } */ echo "
"; ?>
Home Nor Cal Fly Guides
Sacramento, CA
530-354-3740
norcalflyguides@gmail.com

All Rights Reserved

Site Design By
Lupien Internet Services