-
Posts
1470 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by freshJet
-
I like them But users don't. Therefore I don't use them. Legend Air and flyOcean use them.
-
Yeah any ideas to fill the space at the bottom?
-
Thanks!
-
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
-
Opinions? http://freshjetvirtual.com/index.php
-
Is it OK to change module names? e.g the Profile folder and profile.php changed to PilotCentre and PilotCentre.php or something?
-
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/
-
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.
-
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.
-
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...
-
Why do people find it so hard?
-
I don't allow the use of FSFK...
-
^ Well spotted. Why can't people just obey laws?
-
I'm considering doing the same at the moment. I'll speak to you later about it Perhaps we can start something?
-
Wow that's amazing. Excellent, professional presentation too
-
Nor was it in the first place. It was an idea - as the title states.
-
Yes but this is for schedule briefings etcso that the pilot doesn't need to enter anything.
-
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.
-
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); ?>
-
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); ?>
-
bump
-
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.
-
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!