Jump to content

elfrost

Members
  • Content Count

    48
  • Joined

  • Last visited

  • Days Won

    1

elfrost last won the day on January 24

elfrost had the most liked content!

Community Reputation

5 Neutral

About elfrost

  • Rank
    Advanced Member

Profile Information

  • Gender
    Male
  • Location
    Canada

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. elfrost

    blueIce

    PM sent
  2. elfrost

    blueIce

    other question whats wrong: <!--Begin ATC Online --> <div class="blueIce-block clearfix"> <div class="blueIce-blockheader"> <h3 class="t">ATC Online (YYC-YYZ-YVR)</h3> </div> <div class="blueIce-blockcontent"> <?php MainController::Run('Vatsim', 'create_vatsim_data_atc', '!CLIENTS:', 'ATC', array('CZEG', 'TOR', 'CZYZ', 'CYYC', 'CYYZ', 'CYVR', 'CZVR')); ?> </div> </div> <!--End ATC Online --> it does not work and that code was working in my old theme. cheers
  3. elfrost

    blueIce

    FIXED Thank you!
  4. elfrost

    blueIce

    yes
  5. elfrost

    [Free] FlightAware Schedule Puller

    honestly, i did not use for long time so maybe i would get some issues. but it could be a good starting point I guess or another way to grab those datas
  6. elfrost

    [Free] FlightAware Schedule Puller

    pretty cool indeed Here a code I have written long time ago and I do not use anymore. not sure if it still working <?php $options = array( 'trace' => true, 'exceptions' => 0, 'login' => '', 'password' => '' ); $client = new SoapClient('http://flightxml.flightaware.com/soap/FlightXML2/wsdl', $options); $params = array( 'fleet' => 'WJA', 'howMany' => 15, 'offset' => 0, 'maxDepartureAge' => '3 days', 'maxFileAge' => '5 days' ); $data = array(); $output = fopen('php://output', 'w'); $result = $client->FleetScheduled($params); $result1 = $client->RoutesBetweenAirportsEx($params); $i = 0; $data = array(); foreach ($result->FleetScheduledResult->scheduled as $flightObj) foreach ($result1->RoutesBetweenAirportsExResult->data as $flightObj) { $data[] = $flightObj; $i++; $origdestarr[]=$flightObj->origin."_".$flightObj->destination; } if (is_soap_fault($result)) { echo 'ERROR: ' . $result->getMessage() . "\n"; die(); } function objectToArray($d) { if (is_object($d)) { // Gets the properties of the given object // with get_object_vars function $d = get_object_vars($d); } if (is_array($d)) { /* * Return array converted to object * Using __FUNCTION__ (Magic constant) * for recursive call */ return array_map(__FUNCTION__, $d); } else { // Return array return $d; } } $my = objectToArray($data); function array2csv(array &$array) { if (count($array) == 0) { return null; } ob_start(); $df = fopen("php://output", 'w'); fputcsv($df, array_keys(reset($array))); foreach ($array as $row) { fputcsv($df, $row); } fclose($df); return ob_get_clean(); } function download_send_headers($filename) { // disable caching $now = gmdate("D, d M Y H:i:s"); header("Expires: Tue, 03 Jul 2001 06:00:00 GMT"); header("Cache-Control: max-age=0, no-cache, must-revalidate, proxy-revalidate"); header("Last-Modified: {$now} GMT"); // force download header("Content-Type: application/force-download"); header("Content-Type: application/octet-stream"); header("Content-Type: application/download"); // disposition / encoding on response body header("Content-Disposition: attachment;filename={$filename}"); header("Content-Transfer-Encoding: binary"); } date_default_timezone_set("UTC"); download_send_headers("data_export_WJA_" . date("Y-m-d") . ".csv"); echo array2csv($my); die(); ?>
  7. elfrost

    [Free] FlightAware Schedule Puller

    I'm using something like that. I created my own php script and i run it with a cronjob. It keeps my schedule databse up to date and I grab data from Flightaware totally free. Basically, the scrip go to $ch = curl_init("http://flightaware.com/live/fleet/".$code."?;offset=".($i*40)."&sort=ASC;order=actualdeparturetime"); $code is defined by whatever you want ( WJA-JBU-AAL-DAL...) The script is connected directly with your phpvms database so it updates/upload all datas in there. If flight does not exist = it creates If flight exist = check for update if exist and up to date = do nothing and also, if flight do not receive any update for x days, then delete it So you understand here that my schedule is always up to date and synchroinized with flightaware I'm pretty proud of it because i'm not a php expert and I'm working on it for one year lol I used flightaware API before but I found out a way to get data for free...
  8. elfrost

    blueIce

    Hey guys, I'm getting the same issue and I'd say also that when no one is flying, its fine
  9. elfrost

    Real Booking System v1

    Hello, I notice that the module looks only for "today's flights". is it possible to get all flights from my current location? I mean for any days in the week thx
  10. elfrost

    vStatsCenter

    I tried to get it working but now im getting I ve replaced public by public static and some minor thing read above ..Fatal error: Using $this when not in object context in /core/modules/vStatsCenter/vStatsCenter.php on line 29
  11. elfrost

    Let's Partner Up!

    @magicflyer I would be interested, im sending you email
  12. elfrost

    Search Today's Flights

    Thank you for your post. I tried out some but did not find yet In fact., any possibilities to edit this code below to get flights for the day It could detect also the current day <?php //simpilotgroup addon module for phpVMS virtual airline system // //Creative Commons Attribution Non-commercial Share Alike (by-nc-sa) //To view full license text visit http://creativecommons.org/licenses/by-nc-sa/3.0/ // //@author David Clark (simpilot) //@copyright Copyright (c) 2009-2012, David Clark //@license http://creativecommons.org/licenses/by-nc-sa/3.0/ ?> <?php $lastreport = PIREPData::GetLastReports(Auth::$userinfo, 1); if(!$lastreport) {$location = Auth::$userinfo->hub; } else {$location = $lastreport->arricao;} ?> <div class="row"> <div class="col-md-8 col-md-offset-2"> <h3><?php echo SITE_NAME; ?> Schedule Search</h3><hr /> <form class="form-horizontal" role="form" method="post" action="<?php echo url('/schedulesearch');?>"> <div class="form-group"> <label for="depicao" class="col-lg-3 control-label">Departure Airfield</label> <div class="col-lg-9"> <select class="form-control" name="depicao" id="depicao"> <?php if(Auth::LoggedIn()) {echo '<option value="'.$location.'">Your Current Location</option>';}?> <option value="">All</option> <?php foreach ($airports as $airport) {echo '<option value="'.$airport->icao.'">'.$airport->icao.' - '.$airport->name.'</option>';} ?> </select> </div> </div> <div class="form-group"> <label for="arricao" class="col-lg-3 control-label">Arrival Airfield</label> <div class="col-lg-9"> <select class="form-control" name="arricao" id="arricao"> <option value="">All</option> <?php foreach ($airports as $airport) {echo '<option value="'.$airport->icao.'">'.$airport->icao.' - '.$airport->name.'</option>';} ?> </select> </div> </div> <div class="form-group"> <label for="aircraft" class="col-lg-3 control-label">Aircraft Type</label> <div class="col-lg-9"> <select class="form-control" name="aircraft" id="aircraft"> <option value="">All</option> <?php foreach ($aircrafts as $aircraft) {echo '<option value="'.$aircraft->icao.'">'.$aircraft->icao.'</option>';} ?> </select> </div> </div> <div class="form-group"> <label for="airline" class="col-lg-3 control-label">Airline</label> <div class="col-lg-9"> <select class="form-control" name="airline" id="airline"> <option value="">All</option> <?php foreach ($airlines as $airline) {echo '<option value="'.$airline->code.'">'.$airline->name.'</option>';} ?> </select> </div> </div> <div class="form-group"> <label for="arricao" class="col-lg-3 control-label">Search By Day</label> <div class="col-lg-9"> <select class="search" name="daysofweek"> <option value="">All days</option> <?php foreach ($daysofweek as $days) {echo '<option value="'.$days->name.'">'.$days->name.'</option>';} ?> </select> </div> </div> <div class="form-group"> <label for="sortby" class="col-lg-3 control-label">Sort Results By</label> <div class="col-lg-9"> <select class="form-control" name="sortby" id="sortby"> <option value="">None</option> <option value="s.deptime">Departure Time</option> <option value="s.flighttime">Flight Duration</option> </select> </div> </div> <div class="form-group"> <label for="sortby" class="col-lg-3 control-label">&nbsp;</label> <div class="col-lg-9"> <div class="radio"> <label> <input type="radio" name="sortdir" id="optionsRadios1" value="ASC" checked> Ascending </label> </div> <div class="radio"> <label> <input type="radio" name="sortdir" id="optionsRadios2" value="DESC"> Descending </label> </div> </div> </div> <input type="hidden" name="action" value="findflight" /> <input class="btn btn-primary btn-block"type="submit" name="submit" value="Search Schedules" /> </form> </div> </div>
  13. elfrost

    Search Today's Flights

    Hello, Is anyone of you guys use custom Schedule Searh Form like Today's Flight? I would like to get : Form using : From current location (can be changed) the result should be all flights available from current location today. results with details like: From, To, Aircraft, Dep time ... and Bid on I'm starting to work on now but asking for help
  14. elfrost

    GoAir schedules

    alright, so if you still need. I could send you CSV like above. I will contact you by private message soon EDIT: PM sent
  15. elfrost

    NEED SCHEDULE PULL FOR VA

    I could help you for free. PM sent for detail
×