Jump to content

mseiwald

Members
  • Posts

    435
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by mseiwald

  1. No actually it should already send that mail to the pilot by default.
  2. The shortest runway we fly to is indeed ENRO with 1720m and its true that its too short for the A319 at MTOW. However considering that for this short Hop you dont require much fuel and the aircraft isnt loaded with PAX and Cargo to 100% it is well within possible and legal operating limits. Take Helvetic in Bern for example which runway is with 1730m only 10m longer
  3. With great pleasure Hellenic Airways Group announces the launch of it`s brand new subsidiary SnowStar Scandinavia Airlines on 1st January 2014. SnowStar is based in Oslo (ENGM) and currently operates a fleet of 4 Airbus aircraft (2 A320 and 2 A319) which have been formerly in operation at Hellenic Airways`s wet lease partners. Currently the only international Destination is Stockholm (ESSA) which is served 2 times daily with A319 aircraft. Besides that Snowstar focuses on connecting norwegian cities. Further expansion of SnowStar airlines is planned in the future depending on demand. All Hellenic Airways Flight Crew members can book and fly flights at http://snowstar.flyhellenicairways.com (seperate domain is on the way) and vice versa. It is not required to create a second account. The login data of every pilot of Hellenic Airways and SnowStar airways is valid on both websites and flights at any of the two VA`s will be credited to your account. Have fun flying in Norway! Best wishes and happy new year from the Hellenic Airways Team
  4. no that isnt caused by changes to the file it happend pretty often to me as well for example when the routing i entered to the flightplan had waypoints in it which are not included in the navdata table. btw i dont have a solution for it. i replaced the default flight path on the map with something else on my site.
  5. Hm thats interesting. For me the site loads normally. With and without /index.php
  6. Looks like your Host updated to php5.4. Look here: http://forum.phpvms.net/topic/17519-new-install-with-a-lot-of-bugs/#entry103501
  7. oh and btw what is a Full LiveMap?
  8. an easier solution is just making it like this : var pos = new google.maps.LatLng(lat, lng); flightMarkers[flightMarkers.length] = new google.maps.Marker({ position: pos, map: map, icon: url+"/lib/images/inair/"+data[i].code+"/"+data[i].heading+".png", flightdetails: data[i], infowindow_content: detailed_bubble }); and then inside the inair folder just make seperate folders named for each 3 letter code so if you have the inair folder create folders inside like "SLK", "SLN", with the inair images for each airline in it
  9. how many codes do you have that you want to show?
  10. i think this will work. foreach($allroutes as $route) { if ($route->code != 'NEX' || $route->code != '3XE') { continue; } You have to use OR && wont work for this.
  11. Hey Guys, since my last post in this thread a lot of stuff has been added. For Example; CrewTest - A new entrance exam module Live Flight Position Tracker Pilot Account Validation System Pilot Retirement auto warning mails New phpVMS skins and more Even more stuff will be available soon. Check it out at http://www.crazycreatives.com! If you have further ideas for modules or need anything special please let ne know.
  12. Thats interesting... try that one: Your additional column in both tables (acarsdata and pireps) is named "network"? $sql = "INSERT INTO ".TABLE_PREFIX."pireps( `pilotid`, `code`, `flightnum`, `depicao`, `arricao`, `route`, `route_details`, `distance`, `aircraft`, `flighttime`, `flighttime_stamp`, `landingrate`, `submitdate`, `accepted`, `log`, `load`, `fuelused`, `expenselist`, `source`, `exported`, `rawdata`, `network` ) VALUES ( {$pirepdata['pilotid']}, '{$pirepdata['code']}', '{$pirepdata['flightnum']}', '{$pirepdata['depicao']}', '{$pirepdata['arricao']}', '{$pirepdata['route']}', '{$pirepdata['route_details']}', '{$pirepdata['distance']}', '{$pirepdata['aircraft']}', '{$pirepdata['flighttime']}', '{$flighttime_stamp}', '{$pirepdata['landingrate']}', NOW(), ".PIREP_PENDING.", '{$pirepdata['log']}', '{$pirepdata['load']}', '{$pirepdata['fuelused']}', '0', '{$pirepdata['source']}', {$pirepdata['exported']}, '{$pirepdata['rawdata']}', '{$network}' )";
  13. First you need to add a new function to the PirepData.class.php like that: / * Check If Flight was Online */ public static function GetOnlineFlightInfo($pirepdata) { $pilotinfo = PilotData::getPilotData($pirepdata['pilotid']); $sql = "SELECT network FROM ".TABLE_PREFIX."acarsdata WHERE pilotid='".$pilotinfo->pilotid."' "; $ret = DB::get_row($sql); return $ret; } Then to the filePirep function add the following above the sql query. $onlineflt = self::GetOnlineFlightInfo($pirepdata); $network = $onlineflt->network; and then the actual query like that: $sql = "INSERT INTO ".TABLE_PREFIX."pireps( `pilotid`, `code`, `flightnum`, `depicao`, `arricao`, `route`, `route_details`, `distance`, `aircraft`, `flighttime`, `flighttime_stamp`, `landingrate`, `submitdate`, `accepted`, `log`, `load`, `fuelused`, `expenselist`, `source`, `exported`, `rawdata`, `network` //added ) VALUES ( {$pirepdata['pilotid']}, '{$pirepdata['code']}', '{$pirepdata['flightnum']}', '{$pirepdata['depicao']}', '{$pirepdata['arricao']}', '{$pirepdata['route']}', '{$pirepdata['route_details']}', '{$pirepdata['distance']}', '{$pirepdata['aircraft']}', '{$pirepdata['flighttime']}', '{$flighttime_stamp}', '{$pirepdata['landingrate']}', NOW(), ".PIREP_PENDING.", '{$pirepdata['log']}', '{$pirepdata['load']}', '{$pirepdata['fuelused']}', '0', '{$pirepdata['source']}', '{$pirepdata['exported']}', '{$pirepdata['rawdata']}', '$network' //added )";
  14. Vangelis (sorry for the wrong name ) what exactly do you want to do with the acars map? Displaying the flights on the map? Thats not necessary since they already are in the acarsdata table. But if you want to show a online image in the table below the acarsmap next to the flight you can add all stuff you want if you go to acars.php and look for: $c = (array) $flight; // Convert the object to an array at line 72 or so... below that you can add the code like for example: if($flight->network== '1') { $c['onlineimage'] = "http://www.OFFLINEIMAGE.com/"; } elseif($flight->network== '2) { $c['onlineimage'] = "http://www.VATSIMIMAGE.com/"; } elseif($flight->network== '3') { $c['onlineimage'] = "http://www.IVAOIMAGE.com/"; } and then on acarsmap.tpl add it to the table: <td><img src="<%=flight.onlineimage%>"/></td>
  15. Btw i would use their VATSIM / IVAO ID instead of the callsign.... especially for non fictional VA's or if your VA allows to Book the same flight multiple times. Vangelis...yeah indeed you can add the network variable to the code in the ACARS.php file.
  16. Try that code and see if it works $results = ACARSData::GetACARSData(); foreach($results as $result) { if (strpos($ivaowhazz,$result->flightnum) !== false) { $sql = "UPDATE ".TABLE_PREFIX."acarsdata SET network='1' WHERE flightnum='$result->flightnum'"; DB::query($query); } elseif (strpos($vatwhazz,$result->flightnum) !== false) { $sql = "UPDATE ".TABLE_PREFIX."acarsdata SET network='2' WHERE flightnum='$result->flightnum'"; DB::query($query); } }
  17. That code below is working: <table width="100%"> <tr> <th>Flight Number</th> <th>Departure</th> <th>Arrival</th> <th>Aircraft</th> <th>Flight Time</th> <th>Submitted</th> </tr> <?php foreach($pireps as $report) { if(strpos($report->flightnum, 'C') !== false) { ?> <tr> <td><?php echo $report->code . $report->flightnum; ?></td> <td><?php echo $report->depicao; ?></td> <td><?php echo $report->arricao; ?></td> <td><?php echo $report->aircraft . " ($report->registration)"; ?></td> <td><?php echo $report->flighttime; ?></td> <td><?php echo date(DATE_FORMAT, $report->submitdate); ?></td> </tr> <?php }} ?> </table> <p></p> <table> <?php if ($index != $count) {?> <td align="left"> <form name="next20" id="next20" action="<?php echo SITE_URL?>/index.php/AllPIREPS/next" method="post"> <input type="hidden" name="start" value="<?php echo ($index-$index);?>"> <input type="submit" name="submit" value="Previous <?php echo $count;?>" /> </form> </td> <?php } else { echo '<td></td>'; } if (count($pireps) == $count) { ?> <td align="right"> <form name="next20" id="next20" action="<?php echo SITE_URL?>/index.php/AllPIREPS/next" method="post"> <input type="hidden" name="start" value="<?php echo $index;?>"> <input type="submit" name="submit" value="Next <?php echo $count;?>" /> </form> </td> <?php } else { echo '<td></td>'; }?> </table> However the pagination wont work correct (same with the other seperation by airline code by the way) because simply it gets just the first 20 from the database and then skips all flights that dont have a C in your flight number. If you dont have a flight with a C in your last 20 flights the first page will show blank....so you need to click next, next, next until you get to the first flight with a C. Better would be to make new functions for those things.
  18. Besides always just upgrading Memory size there is also a second option for this specific problem. The functions that updates the pilots flight count and hours count calls a lot of unnessesary data from the database. In general phpvms very often calls data that isnt needed for a specific action and therefore uses way more memory than needed for what you want to do. In this specific case changing the functions for flight count and total hours update to just look for the flighttime column of the pilots past pireps (instead of all columns by default) the error went away immediately and everything is fine again Cant tell which exact functions to change right now since i'm just on my iphone.
  19. That should work if (strpos($report->flightnum, 'C') !== false) { echo "whatever you want"; }
  20. that works: <table width="100%"> <tr> <th>Flight Number</th> <th>Departure</th> <th>Arrival</th> <th>Aircraft</th> <th>Flight Time</th> <th>Submitted</th> </tr> <?php foreach($pireps as $report) { if($report->code == "ABC") { ?> <tr> <td><?php echo $report->code . $report->flightnum; ?></td> <td><?php echo $report->depicao; ?></td> <td><?php echo $report->arricao; ?></td> <td><?php echo $report->aircraft . " ($report->registration)"; ?></td> <td><?php echo $report->flighttime; ?></td> <td><?php echo date(DATE_FORMAT, $report->submitdate); ?></td> </tr> <?php }} ?> </table> <p></p> <table> <?php if ($index != $count) {?> <td align="left"> <form name="next20" id="next20" action="<?php echo SITE_URL?>/index.php/AllPIREPS/next" method="post"> <input type="hidden" name="start" value="<?php echo ($index-$index);?>"> <input type="submit" name="submit" value="Previous <?php echo $count;?>" /> </form> </td> <?php } else { echo '<td></td>'; } if (count($pireps) == $count) { ?> <td align="right"> <form name="next20" id="next20" action="<?php echo SITE_URL?>/index.php/AllPIREPS/next" method="post"> <input type="hidden" name="start" value="<?php echo $index;?>"> <input type="submit" name="submit" value="Next <?php echo $count;?>" /> </form> </td> <?php } else { echo '<td></td>'; }?> </table>
  21. Hey Remington, what Info do you want to take for SPL? From which DB table? I'm doing it a lot at Hellenic Airways for example for training flight schedules which have a code of HFT to show up only in the Training Center. You just need to add some functions. If you need assistance with that we can also continue in the Alliance forum or add me on Skype
  22. Matt while you were a Member of AEOLUS Alliance with your VA (AirWales) i have also offered you help in our alliance forum exactly with the thing OA01 has mentioned....your website. But you didnt even reply to that. Honestly closing a VA just because you dont have the expected activity is always a sign of poor commitment for your own projects. You should have worked on improving Air Wales instead of just starting a new VA. Good Luck anyway.
  23. Well actually i think he correctly posted it in the VACentral Support forum there isnt a seperate forum for it. But sorry i cant help you with your problems as well.
  24. There are 2 entrance exam modules available... 1 by myself at http://www.crazycreatives.com/index.php/store/modules The second by Simpilot at http://www.simpilotgroup.com I dont think there is a free one available.
×
×
  • Create New...