Jump to content

airhaul

Members
  • Posts

    22
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by airhaul

  1. That is all the code that is needed...just make sure you are inserting it into schedule_briefing.tpl.....maybe do a print_r($schedule->depicao); first to make sure the variables are being called correctly to the page....only way it wouldn't work is if variables are not being called or using a different name

  2. Add under routes section on schedule_briefing.tpl

    Will display top route flown from vataware

    I admit not the most graceful code....but what the hay...it works

    <?php
    $url = 'http://vataware.com/citypair/'.$schedule->depicao.'-'.$schedule->arricao.'';
    $page = file_get_contents($url);
    $start_char = '/flight/';
    $end_char = '</a></td>';
    $start_pos = strpos($page, $start_char);
    $end_pos = strpos($page, $end_char);
    $start_pos += strlen($start_char);
    $end_pos += strlen($end_char);
    $string = substr($page, $start_pos, ($end_pos - $start_pos));
    $start_char = '>';
    $start_pos = strpos($string, $start_char) + 1;
    $string = substr($string, $start_pos);
    echo $string;
    ?>
    

  3. This process is not the easiest but I have listed all the steps.

    Try customer service at your Hosting company for SSH problems

    open local.config.php in core folder, then copy the DB info name, password, server name into db.php

    $db = mysql_connect('localhost', 'joetest', 'password')

    mysql_select_db('aerodb');

    Mine is localhost and is for most people but change it if different in local.config.php

  4. Sorry only have used putty.

    Could set it up to run in admin or load page from browser but it wipes out the table navdata everytime you run it

    Problem is you want to run once then delete the files and folders

    Putty pretty easy to use for me

    Select ssh put in web address then click connect

    At prompt type in login and password

    Then >cd public_html/navdata

    Then >php -f fsbuildparse.php

    Contact your Hosting company, they might have to enable SSH for putty to work

  5. Cleaned up the code in fsbuildparse.php so it works better

    This is an updated version of Nabeel's code for navdata update which is avaliable by search in forums

    -All intersections uploaded with a lat/lng

    -All VOR / NDB correctly labeled

    -Intersections all go in instead of hanging up

    Works with fsbuild airac

    Used 1310 myself

    Loading airways segments...91220 airway segments loaded...

    Loading VORs...965 VORs added, 2834 updated

    Loading NDBs...2202 NDBs added, 1800 updated

    Loading INTs...93944 INTs added, 54743 bypassed already in DB

    Completed!

    -Would recommend backing up navdata table in database before running

    -Program deletes all previous data in phpvms_navdata table before updating

    -Also program will not work if the table phpvms_navdata is not present. If it isnt go to DBadmin and copy structure only from navdata table to phpvms_navdata

    -Inserts into phpvms_navdata table. If prefix is different rename phpvms_navdata to navdata for example when complete

    -Use at your own risk. Works great with me but can't say it will with everyone.

    How to load NAVDATA for phpVMS

    -------------

    1. Unzip navdata.zip

    2. Obtain fsbuild airac

    3. Install fsbuild airac into same folder as fsbuild.exe(airac file)

    4. need to have three files

    awys.txt -airways (default fsbuild)

    ints.txt - intersections (default fsbuild)

    navs.txt - ndb/vor (default fsbuild - code fixed to label vor/ndb separately)

    5. Take the 3 files listed above insert them into navdata/fsbuild folder

    Optional - Recommend sorting out lat/lng intersections in ints.txt and any intersection that is not 5 characters in length

    6. Open db.php file and insert your DB username, password, & server name into the appropraiate places between ''

    7. Upload navdata folder into root directory of site

    8. Connect to server with ssh app. I use putty

    9. cd to navdata

    10. run php -f fsbuildparse.php at prompt

    11. Takes maybe 5 mins or so then should get

    Loading airways segments...91220 airway segments loaded...

    Loading VORs...965 VORs added, 2834 updated

    Loading NDBs...2202 NDBs added, 1800 updated

    Loading INTs...93944 INTs added, 54743 bypassed already in DB

    Completed!

    navdata.zip

    • Like 2
  6. Pretty sure your server is on php 5.4. Had those problems too. My server forced me to upgrade to 5.4 and phpvms really made for 5.3.

    in core/lib/opc.../json files put error_reporting(0); right below first php tag. Kinda band-aid fix. Turns off error reporting so it works. Don't know how to actually fix code to make it 5.4 compatible

  7. www.airhaul.net

    We have implented a new system which allows all our routes to be updated on a quarterly basis. All passenger routes have been updated and are now current.

    Many airlines were added this weekend due to the ease of obtaining routes with our new automated system.

    Here is the list:

    • KLM (KLM)
    • EL AL (ELY)
    • Aeromexico (AMX)
    • All Nippon (ANA)
    • Air Canada (ACA)
    • Jazz Air (JZA)
    • Horizon Air (QXE)
    • Air New Zealand (ANZ)
    • Air France (AFR)
    • Qatar (QTR)
    • Air China (CCA)
    • Scandinavian (SAS)
    • Singapore Airline (SIA)
    • Frontier (FFT)
    • Air Tran (TRS)
    • ExpressJet (ASQ)
    • Mesa (ASH)
    • Compass (CPZ)
    • Republic (RPA)

    Current Passenger Airlines:

    • jetBlue
    • American
    • Delta
    • United
    • Alaska
    • Southwest
    • Hawaiian
    • WestJet
    • US Airways Express
    • Frontier
    • Allegiant
    • Virgin America
    • Era Alaska
    • British Airways
    • Virgin Atlantic
    • Swiss

    Check us out for a one stop VA with frequently updated routes.....also have Cargo... www.airhaul.net

    • Like 1
  8. AirHaul Airline Alliance has updated their site to include Vatsim Awards based on the number of flights logged online.

    Also integrated all our route maps for our different airlines with google maps to make choosing a flight a lot easier.

    AirHaul Airline Alliance includes 22 Passenger Airlines and 13 Cargo Airlines. Designed to be a one stop shop for your VA needs. Designed more for experienced Vatsim Pilots who need a central place to gather their routes. Some of our new editions to the AirHaul Alliance include Era Alaska, Ameriflight, Virgin Australia (already include VRD & VIR), Skywest, Emirates Sky Cargo, Japan Airlines, Tiger Airways to name a few. Our most popular airlines are of course Southwest, American, Delta, and United....

    AirHaul has recently moved to a high speed server so all route maps and the website in general operate quicker and smoother.

    Any questions jump on our teamspeak 3 www.airhaul.net server address

    Or join us today at http://www.airhaul.net

    AirHaul is about flying current real world routes while having some fun in the process.....

    Founded November 2010

  9. I made some route maps for different airlines with google maps...

    That wasnt too bad

    But stuck trying to change google icons to textual icons like with airport codes i.e KATL

    Tried installing mapiconmaker but cant get it to work

    Its using Gmap instead of google maps in javascript code. Think I have V3 api installed but everytime try to load even 1 icon simple example just get a grayed out map..

    Or if you know a simplier way to add text to google icons would apprecitate.

    Dont want to make custom icons but have code enter the airport codes when going through the schedules

    Thanks for any help in the right direction

    <script type="text/javascript" src="[url=".../mapiconmaker.js"[/url]"></script>
    <script type="text/javascript">
    
    var map = new GMap2(document.getElementById("map"));
    map.setCenter(new GLatLng(37.441944, -122.141944), 13);
    var newIcon = MapIconMaker.createFlatIcon({width: 64, height: 64, primaryColor: "#00ff00"});
    var marker = new GMarker(map.getCenter(), {icon: newIcon});
    map.addOverlay(marker);
    </script>
    <div id="map" style="width: 500px; height: 300px"></div>
    

    There is the simple example trying to get to load but keep getting gray map

  10. I was having problems connecting this morning too. Able to login last night but not today. Tried uninstalling reinstalling switching modules nothing worked.

    Was doing a lot of testing on the site last night constantly bidding on flights logging in logging out on kacars

    When I deleted the acars data from the admin center I was able to get back in.

    Guessing had so much stuff in the acars database folder was preventing me from loggin in

    Hope this helps

  11. Have a pilot at our website just reached ~800 pireps filed and his "View a map of my pireps" just stopped working.

    He loves using that map to see where he hasn't been.

    The link is working for all the other pilots.

    So wondering if anyone knows how to reconfigure it or increase the memory size or something so he can see his map again.

    Thanks,

    Mike

×
×
  • Create New...