Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Waters10

  • Rank

Recent Profile Visitors

876 profile views
  1. Hi there, Does anyone know how I can ensure that all flight times in my schedule search show two decimal places? So currently anything other than a whole hour show as I'd like, but if the flight (in example is 2) is an hour long, how do I get the ".00" afterwards? Cheers
  2. Waters10

    Showing Stats on Home [SOLVED]

    Update: I didn't have the top line correct and was receiving errors from my error_log all along. However, with that now fixed, I get the following error where the call function is placed: Fatal error: Class 'StatsData' not found in /home/mydomain/public_html/v1/test.php on line 209
  3. Waters10

    Showing Stats on Home [SOLVED]

    I seem to have ran into a problem using this method. I've included the code on top, and I can confirm it works as I've managed to iFrame the live map. However, when attempting to call the phpVMS functions, any content below that line disappears and the stats don't show. It's probably something small that I'm missing. Any ideas? Thanks
  4. Waters10

    Crewcenter modifications

    As far as Im aware. Is there a way you recommend to confirm? Looking in the database, there's 293,841 rows in the "phpvms_navdata" table (25MiB)
  5. Waters10

    Crewcenter modifications

    Ah okay, completely missed that one! <?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> <?php // SKINNED FOR CREWCENTER - OPTIMISED FOR PIREPVIEW ?> <div id="routemap" style="width: 100%; height: <?php echo Config::Get('MAP_HEIGHT')?>"></div> <?php /** * * This is the new Google Maps v3 code. Be careful of changing * things here, only do something if you know what you're doing. * * These are some options for the map, you can change here. * * This map is used for schedules and PIREPS * * By default, the zoom level and center are ignored, and the map * will try to fit the all the flights in. If you want to manually set * the zoom level and center, set "autozoom" to false. * * If you want to adjust the size of the map - Look at the above * "routemap" div with the CSS width/height parameters. You can * easily adjust it from there. * * And for reference, you want to tinker: * http://code.google.com/apis/maps/documentation/v3/basics.html */ if(isset($pirep)) $mapdata = $pirep; if(isset($schedule)) $mapdata = $schedule; ?> <?php /* This is a small template for information about a navpoint popup Variables available: <%=nav.title%> <%=nav.name%> <%=nav.freq%> <%=nav.lat%> <%=nav.lng%> <%=nav.type%> 2=NDB 3=VOR 4=DME 5=FIX 6=TRACK */ ?> <script type="text/html" id="navpoint_bubble"> <span style="font-size: 10px; text-align:left; width: 100%" align="left"> <strong>Name: </strong><%=nav.title%> (<%=nav.name%>)<br /> <strong>Type: </strong> <?php /* Show the type of point */ ?> <% if(nav.type == 2) { %> NDB <% } %> <% if(nav.type == 3) { %> VOR <% } %> <% if(nav.type == 4) { %> DME <% } %> <% if(nav.type == 5) { %> FIX <% } %> <% if(nav.type == 6) { %> TRACK <% } %> <br /> <?php /* Only show frequency if it's not a 0*/ ?> <% if(nav.freq != 0) { %> <strong>Frequency: </strong><%=nav.freq%> <% } %> </span> </script> <?php /* Below here is all the javascript for the map. Be careful of what you modify!! */ ?> <script type="text/javascript"> var options = { mapTypeId: google.maps.MapTypeId.ROADMAP } var map = new google.maps.Map(document.getElementById("routemap"), options); var dep_location = new google.maps.LatLng(<?php echo $mapdata->deplat?>,<?php echo $mapdata->deplng;?>); var arr_location = new google.maps.LatLng(<?php echo $mapdata->arrlat?>,<?php echo $mapdata->arrlng;?>); var bounds = new google.maps.LatLngBounds(); bounds.extend(dep_location); bounds.extend(arr_location); var depMarker = new google.maps.Marker({ position: dep_location, map: map, icon: depicon, title: "<?php echo $mapdata->depname;?>" }); <?php /* Populate the route */ if(is_array($mapdata->route_details)) { $list = array(); foreach($mapdata->route_details as $route) { if($route->type == NAV_VOR) $icon = fileurl('/lib/images/icon_vor.png'); else $icon = fileurl('/lib/images/icon_fix.png'); /* Build info array for the bubble */ ?> var v<?php echo $route->name?>_info = { freq: "<?php echo $route->freq ?>", name: "<?php echo $route->name ?>", title: "<?php echo $route->title ?>", type: "<?php echo $route->type ?>", lat: "<?php echo $route->lat ?>", lng: "<?php echo $route->lng ?>" }; var v<?php echo $route->name?>_navpoint_info = tmpl("navpoint_bubble", {nav: v<?php echo $route->name?>_info}); var v<?php echo $route->name?>_coords = new google.maps.LatLng(<?php echo $route->lat?>, <?php echo $route->lng?>); var v<?php echo $route->name?>_marker = new google.maps.Marker({ position: v<?php echo $route->name?>_coords, map: map, icon: "<?php echo $icon; ?>", title: "<?php echo $route->title; ?>", infowindow_content: v<?php echo $route->name?>_navpoint_info }) bounds.extend(v<?php echo $route->name?>_coords); google.maps.event.addListener(v<?php echo $route->name?>_marker, 'click', function() { info_window = new google.maps.InfoWindow({ content: this.infowindow_content, position: this.position }); info_window.open(map, this); }); <?php // For the polyline $list[] = "v{$route->name}_coords"; } } ?> var arrMarker = new google.maps.Marker({ position: arr_location, map: map, icon: arricon, title: "<?php echo $mapdata->arrname;?>" }); var flightPath = new google.maps.Polyline({ path: [dep_location, <?php if(count($list) > 0) { echo implode(',', $list).','; }?> arr_location], strokeColor: "#FF0000", strokeOpacity: 1.0, strokeWeight: 2 }).setMap(map); // Resize the view to fit it all in map.fitBounds(bounds); </script> <?php // CLOSING FOR PIREPVIEW ?> </div> </div> </section> </div> </section>
  6. Waters10

    Crewcenter modifications

    No proplem! Which code are you looking for? The acarsmap.php?
  7. Waters10

    Crewcenter modifications

    No problem. No rush! I appreciate the help
  8. Waters10

    Crewcenter modifications

    So I've installed the navdata, and verified the waypoints are in the database. However, the route still shows a straight line https://prnt.sc/ivdv7t I couldn't get puTTY to connect to my site, is that likely the issue?
  9. Waters10

    Crewcenter modifications

    Brilliant! I'll give that a go. Thanks a million!
  10. Waters10

    Crewcenter modifications

    @CarlosEduardo2409 How did you get the waypoints of the route to appear on the PIREP map? Not asking about the moving route, but the actual navaids. Looks great! Thanks
  11. Waters10

    Sim Brief for phpvms

    Awesome, thanks for this! Working well for me so far. I do have a question that I hope someone can help me with. I've very new to the coding/programming world so this is a great place to start and learn. How do I increase spacing between the "Flight No.", "Departure", etc. columns here? http://prntscr.com/ggncvz Can this be done in the schedule_briefing.php or is it do with the skin style? Cheers. Edit** I've got it! Thanks anyway
  12. Waters10


    Hi everyone! Closed.