Jump to content

freshJet

Members
  • Posts

    1470
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by freshJet

  1. I like them But users don't. Therefore I don't use them. Legend Air and flyOcean use them.
  2. Custom
  3. Yeah any ideas to fill the space at the bottom?
  4. Thanks!
  5. A little update: $totaldistance = round(SchedulesData::distanceBetweenPoints($flight->deplat, $flight->deplng, $flight->arrlat, $flight->arrlng)); $percomplete2 = ABS(number_format(((($totaldistance - $flight->distremain) / $totaldistance) * 100), 2)); $percomplete = round($percomplete2); $c['percomplete'] = $percomplete; Makes it a whole number (e.g 45%) instead of 45.62% or whatever
  6. Opinions? http://freshjetvirtual.com/index.php
  7. Is it OK to change module names? e.g the Profile folder and profile.php changed to PilotCentre and PilotCentre.php or something?
  8. I've got an arrivals board with latest flights but I want it to display whether it's early, on time or delayed. Here's my code: $actualtime = $pirep->flighttime; $schedtime = $schedule->flighttime; if($actualtime < $schedtime){ echo '<td>Early</td>'; } elseif($actualtime > $schedtime){ echo '<td>Delayed</td>'; } else { echo '<td>On Time</td>'; } It only shows it as delayed at the moment though. Anyone help? http://www.freshjetvirtual.com/
  9. http://www.freshjetvirtual.com/index.php/acars One of my pilots sent me a message in their last PIREP indicating ACARS problems. I went to the ACARS map and saw the above (for those who can't see anything, it's a huge list of flights all under the same pilot: 0000.
  10. Very nice! Only thing is - an English site would boost popularity by far...
  11. It's not hard. Import everything you'd usually get and rename the html file as layout.tpl. Then use the crystal skin to replace the content with the PHP for the phpVMS content.
  12. I made a skin for Kyle Watkins a few months ago (http://flytropicvirtual.co.uk.) and have noticed that is has been literally copied and pasted for Palmer Airways Virtual (http://palmervirtualairways.com/). Well actually, that's a lie because in Palmer Airways' site - Kyle's name is in the footer. Just goes to show no one can play fair any more in the business. Oh yes and forgot to mention that several attempts to contact via MSN have been ignored. Funny how they always have to go offline without notice like that...
  13. Why do people find it so hard?
  14. I don't allow the use of FSFK...
  15. ^ Well spotted. Why can't people just obey laws?
  16. I'm considering doing the same at the moment. I'll speak to you later about it Perhaps we can start something?
  17. Wow that's amazing. Excellent, professional presentation too
  18. Nor was it in the first place. It was an idea - as the title states.
  19. Yes but this is for schedule briefings etcso that the pilot doesn't need to enter anything.
  20. I don't like the iframes. That's why I use this: <?php $location = "EGLL"; get_metar($location); function get_metar($location) { $fileName = "http://weather.noaa.gov/pub/data/observations/metar/stations/$location.TXT"; $metar = ''; $fileData = @file($fileName) or die('METAR not available'); if ($fileData != false) { list($i, $date) = each($fileData); $utc = strtotime(trim($date)); $time = date("D, F jS Y g:i A",$utc); while (list($i, $line) = each($fileData)) { $metar .= ' ' . trim($line); } $metar = trim(str_replace(' ', ' ', $metar)); } echo "METAR FOR $location (Issued: $time UTC):<br>$metar"; } ?> You can change the location to <?php echo $schedule->depicao;?> or arricao in the schedule briefing or details. It's much better than the default METARs in phpVMS because they don't have to load.
  21. Fix: <?php $con = mysql_connect("localhost","username","password"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db( 'database_name' ); // usually username_phpvms //Check local charts $query_charts_dep = mysql_query("SELECT * FROM charts WHERE icao='".$schedule->depicao."'", $con); if (mysql_num_rows($query_charts_dep) == 0) { echo 'No charts found!'; } while ($charts_results = mysql_fetch_assoc($query_charts_dep)) { echo '<a href="'.$charts_results['link'].'">'.$charts_results['name'].'</a><br>'; } mysql_close($con); ?> <?php $con = mysql_connect("localhost","username","password"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db( 'database_name' ); // usually username_phpvms //Check local charts $query_charts_arr = mysql_query("SELECT * FROM charts WHERE icao='".$schedule->arricao."'", $con); if (mysql_num_rows($query_charts_arr) == 0) { echo 'No charts found!'; } while ($charts_results = mysql_fetch_assoc($query_charts_arr)) { echo '<a href="'.$charts_results['link'].'">'.$charts_results['name'].'</a><br>'; } mysql_close($con); ?>
  22. OK got rid of the login error through the mysql connect script, but I'm still left with the following: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/freshje1/public_html/lib/skins/premiumseries/schedule_briefing.tpl on line 146 No charts found! Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/freshje1/public_html/lib/skins/premiumseries/schedule_briefing.tpl on line 150 The code: <?php $con = mysql_connect("localhost","freshje1","*******"); if (!$con) { die('Could not connect: ' . mysql_error()); } //Check local charts $query_charts_dep = mysql_query("SELECT * FROM charts WHERE icao='".$schedule->depicao."'"); if (mysql_num_rows($query_charts_dep) == 0) { echo 'No charts found!'; } while ($charts_results = mysql_fetch_assoc($query_charts_dep)) { echo '<a href="'.$charts_results['link'].'">'.$charts_results['name'].'</a><br>'; } mysql_close($con); ?>
  23. This is what I mean: No offense but it's far from creative. And if you are continuing with the A319s, use Project Airbus - they're 10 times better than iFDG.
  24. There are already two Emirates Virtual Airlines running on phpVMS. There doesn't seem to be a good Jet Airways virtual. Give it a go. I'm sure it will become quite popular!
×
×
  • Create New...