Jump to content

Leaderboard


Popular Content

Showing most liked content since 11/17/17 in all areas

  1. 4 points
    https://www.cloud-coach.net/general/kindness/ have a look at this
  2. 2 points
    See if this works Find this on line 37 <?php foreach($pireps as $pirep) { Replace it with this (deprecated function, but it works) <?php foreach($pireps as $pirep) { $schedule = SchedulesData::getScheduleByFlight($pirep->code, $pirep->flightnum); Find this <strong>Flight Time: </strong><?php echo $pirep->flighttime; ?> <br /> Now the $schedule variable should be activated, so you should be able to read it like this <strong>Actual Flight Time: </strong><?php echo $pirep->flighttime; ?> <br /> <strong>Scheduled Flight Time: </strong><?php echo $schedule->flighttime; ?> <br /> <strong>Scheduled Aircraft: </strong><?php echo $schedule->aircraft; ?> <br /> <strong>Scheduled Flight Level: </strong><?php echo $schedule->flightlevel; ?> <br />
  3. 1 point
    Here it is and you have to add it in the correct area of your template, and it should go in your frontpage.main.php or tpl , or if you want it on all pages layout.php or .tpl ! Pilots: <?php echo StatsData::PilotCount(); ?> Total Schedules: <?php echo StatsData::TotalSchedules(); ?> Numbers of Pilots in Flight: <?php echo count(ACARSData::GetACARSData());?> Total Miles Flown: <?php echo StatsData::totalmilesflown(); ?> And it does work, if you enter it in the correct area of your template! And there is other info that I did not use. Usually you just replace the static numbers with this code! As stated above, you have to edit your index.html and break it up into the 2 files most of the time, layout.php or .tpl and frontpage.main.php or tpl, depending on what you are trying to do!
  4. 1 point
    I'm trying to find my code for that... but I don't know where the code is. Hmm. What you basically do is: #instead of this: return jsonencode({"some" => "structure"}); # you do: return $_GET["callback"] . '(' . jsonencode({"some" => "structure"}) . ')'; So you're essentially wrapping the JSON that's returned. So if the request is: airports?icao=KJFK&callback=somefn (the browser populates "somefn" with some name, it gets returned as: somefn({JSON});
  5. 1 point
    Hey, I noticed that the "demand" for this thing seems to be quite "high". I created a tool that pulls data from flightaware's api and stores them into a csv file which phpvms can accept There is still plenty to do (I need to add so you can quickly change airline to pull data from). You need to create an account at fligthtaware and then change the variables in the index.php file, then you're good to go! How does it work? Well, unlike some other services, it doesn't use AirlineFlightSchedules query in the api since that is a paid service, we want to keep it completely free. It uses AirportBoards and then adds the parameter of only including the airline you want and then takes the data which is looked after (airline code, flightnumber, tailnumber etc) and prints them out into tables and into one big csv file. It takes only arriving and departing aircrafts, since when doing scheduled ones, missing info was inserted. Since it's using AirportBoards, that means that you have to run this script every day for a week on all the hubs (don't worry, you can change which airport to capture data from) to capture all the data. You can check and contribute to the project at my github
  6. 1 point
    Maybe this? <h1 class="counter-title counter-num"><?php echo StatsData::PilotCount(); ?></h1>
  7. 1 point
    You will have to rename index.html to index.php! Put <?php echo StatsData::PilotCount(); ?> in place of '16' in <h1 class="counter-title counter-num">16</h1>
  8. 1 point
  9. 1 point
    Hey Blake, Setting up a phpVMS website shouldn't be alot of trouble. 1. Get your domain and hosting (you can have a free one or a paid one, it's your wish, but if you're taking my opinions into account, I'd say go for a paid one) - You need an SQL Database too (phpMyAdmin) - Create a database eg : 'my_va' and also a database user with all privilèdges. - (Optional) Create a subdomain called crew.yourvirtualairline.com and point it towards a folder called 'crew' (you have to create this folder) 2. Download the latest version of phpVMS by simpilot from here. https://github.com/DavidJClark/phpvms_5.5.x 3. Once you download it, rename it to 'crew' and upload it to your site. 4. Open the file manager / ftp (file transfer protocol), usually it's ftp.yoursite.com. Download an FTP client (Filezilla is what I used to have) and use your ftp account details to login. Then upload the 'crew.zip' and then unzip it, (or) unzip it and then upload. 5. Once you're done, run install.php crew.yourvirtualairline.com/install/install.php (if you haven't created a sub domain, then use www.yourvirtualairline.com/install/install.php) 6. Enter your VA Details, check the database connection and proceed as directed. This will successfully install phpVMS into your website. ---- Setting up the VA : 1. You need schedules, airports and fleet details. This you gotta do on your own my friend. Use flightaware.com or even you Airline's official website for the CSV file and then upload it into your phpVMS via the admin panel. 2. Now, search the forums, there are tons of usefull addons which might come in handy for your pilots during flight ops. 3. For the Pilot center skins, there are lots of Freeware templates available. If you'd like a crew center, try out MarkSwan's CrewCenter. It's really good and highly recommended for a startup VA.  (But if you're looking for something slightly better, search for iCrew v4 on payware addons ) 4. If you've installed phpVMS on crew.yourvirtualairline.com, then use www.yourvirtualairline.com for a landing page. Landing page Templates are available in huge volumes for free in the internet, just download one and customise them for your use. I hope this was usefull, if it was useful give me a like Best Regards and all the very best for your New Virtual Airline. Leonard.
  10. 1 point
    I am running Dave's 5.5.2 on a php7 server. I do not remember any issues when installing or running it. I do not have any addons just the vanilla install.
  11. 1 point
    Heritage VA & Company is for Sale. I am NOT looking for a profit, just cover the costs, My Server is Unlimited all the way around. There are until Jan. 2nd, 2018, 3 Active PHPVMS sites running at the moment, below are the links for you to view them, register, and I will approve rights for you for you to view all of the work I've done. Each Skin is different and runs their own set of menu's, along with other features. Bandwidth= "Unlimited" / Databases=MySqL or MySqLlite "Unlimited" / Drive space="unlimited" Many other features also in the control panel of the Host/Server. I use iPage for a hosting company. Here are the Links; http://heritageva.net/hva http://heritageva.net/mpd http://heritageva.net/bbb There are more sites installed of course in the Server, such as a dedicated Forum Board, MyFAQ Center, and more. Let me know, and here is my email ; jimbonewhampshire@yahoo.com Jim Lyman CEO Heritage VA & Company
  12. 1 point
    Hello guys, I just wanted to share with you some code I have running on our logging site. For this to work you need Zumeweb's Pacific skin, stuartpb's Airport Information Addon and Vansers VFleetTracker added. This bit of code will display flights that have been bidded on on a table form with some cool links to the modules listed above. When there is a flight that has been bidded on something like this will appear: If no flights have been bidded on then this will appear: (not the latest flights table, the thing below that). Here is the code: <?php $lastbid = SchedulesData::GetAllBids(); if (count($lastbid) > 0) { ?> <div class="row-fluid"> <div class="span12"> <div class="box"> <table width="100%" border="0" bordercolor="#FFFFFF"> <h3><center>Upcoming Departures</h3> </div> <style type="text/css"> table th { text-align: center; color:black; font-weight:bold;} table td { text-align: center; } </style> <thead> <tr> <style type="text/css"> { text-align: center; } </style> <th><div align="center">Flight Number</div></th> <th><div align="center">Pilot</div></th> <th><div align="center">Departure</div></th> <th><div align="center">Arrival</div></th> <th><div align="center">Flight Duration</div></th> <th><div align="center">Aircraft</th> <th><div align="center">Registration</div></th> </tr> </thead> <tbody> <?php foreach($lastbids as $lastbid) { ?> <?php $flightid = $lastbid->id ?> <td height="25" width="10%" align="center"><span><a href="<?php echo SITE_URL?>/index.php/schedules/details/<?php echo '' . $flightid . '';?> "><?php echo $lastbid->code; ?><?php echo $lastbid->flightnum; ?></span></td> <?php $params = $lastbid->pilotid; $pilot = PilotData::GetPilotData($params); $pname = $pilot->firstname; $psurname = $pilot->lastname; ?> <td height="25" width="10%" align="center"><span><a href="<?php echo SITE_URL?>/index.php/profile/view/<?php echo '' . $params . ''; ?>"><?php echo $pname; ?> <?php echo $psurname; ?></span></td> <td height="25" width="10%" align="center"><span><?php echo '<a href=" '.SITE_URL.'/index.php/airports/get_airport?icao='.$lastbid->depicao.'">'.$lastbid->depicao.'</a>';?></span></td> <td height="25" width="10%" align="center"><span><?php echo '<a href=" '.SITE_URL.'/index.php/airports/get_airport?icao='.$lastbid->arricao.'">'.$lastbid->arricao.'</a>';?></span></td> <td height="25" width="10%" align="center"><span><?php echo $lastbid->flighttime; ?> hours</span></td> <td height="25" width="10%" align="center"><span><a href="<?php echo SITE_URL?>/index.php/vFleetTracker/view/<?php echo '' . $lastbid->registration . ''; ?>"><?php echo $lastbid->aircraft; ?></a></td> <td height="25" width="10%" align="center"><span><a href="<?php echo SITE_URL?>/index.php/vFleetTracker/view/<?php echo '' . $lastbid->registration . ''; ?>"><?php echo $lastbid->registration; ?></a></td> </tr> </div> </div> </div> <?php } } else { ?> <div class="row-fluid"> <div class="span12"> <div class="box"> <table width="100%" border="0" bordercolor="#FFFFFF"> <h3><center>There Are No Upcoming Departures!</h3> </div> <?php } ?> </tbody> </table> </div> For this to work you need to paste this into your frontpage_recentbids.tpl file. Remember the links will not work unless you have the modules mentioned above installed. Enjoy!
  13. 1 point
    Sorry, it was my fault. I was working on phpVMS 2 and forgot to make the required updates. Please replace this: $('.deleteitem').live('click', function() { with this: $('.deleteitem').on('click', function() {
  14. 1 point
    The selector in the last code I pasted is :"$('.deleteitem')". If it was "target" you would have to change your schedule_bids file too. Now you do not need to. +1 for pointing that
  15. 1 point
    After a small search on the internet, I found this. The first reply seems very helpful. It seems that mobile phones do not support the dblclick event and the user who posted it suggests to fake the double click via taking into consideration the interval between the two clicks on the remove bid button. Which phpVMS version are you using?
  16. 1 point
    Glad that the code works A like would be appreciated
  17. 1 point
    I will have to do a flight on my demo site to see how to fix it. Wont beadle to do that until next week.
  18. 1 point
    Yep, good intentions I guess this thread can be everything about pulling flightdata for free for import to phpvms
  19. 1 point
    honestly, i did not use for long time so maybe i would get some issues. but it could be a good starting point I guess or another way to grab those datas
  20. 1 point
    pretty cool indeed Here a code I have written long time ago and I do not use anymore. not sure if it still working <?php $options = array( 'trace' => true, 'exceptions' => 0, 'login' => '', 'password' => '' ); $client = new SoapClient('http://flightxml.flightaware.com/soap/FlightXML2/wsdl', $options); $params = array( 'fleet' => 'WJA', 'howMany' => 15, 'offset' => 0, 'maxDepartureAge' => '3 days', 'maxFileAge' => '5 days' ); $data = array(); $output = fopen('php://output', 'w'); $result = $client->FleetScheduled($params); $result1 = $client->RoutesBetweenAirportsEx($params); $i = 0; $data = array(); foreach ($result->FleetScheduledResult->scheduled as $flightObj) foreach ($result1->RoutesBetweenAirportsExResult->data as $flightObj) { $data[] = $flightObj; $i++; $origdestarr[]=$flightObj->origin."_".$flightObj->destination; } if (is_soap_fault($result)) { echo 'ERROR: ' . $result->getMessage() . "\n"; die(); } function objectToArray($d) { if (is_object($d)) { // Gets the properties of the given object // with get_object_vars function $d = get_object_vars($d); } if (is_array($d)) { /* * Return array converted to object * Using __FUNCTION__ (Magic constant) * for recursive call */ return array_map(__FUNCTION__, $d); } else { // Return array return $d; } } $my = objectToArray($data); function array2csv(array &$array) { if (count($array) == 0) { return null; } ob_start(); $df = fopen("php://output", 'w'); fputcsv($df, array_keys(reset($array))); foreach ($array as $row) { fputcsv($df, $row); } fclose($df); return ob_get_clean(); } function download_send_headers($filename) { // disable caching $now = gmdate("D, d M Y H:i:s"); header("Expires: Tue, 03 Jul 2001 06:00:00 GMT"); header("Cache-Control: max-age=0, no-cache, must-revalidate, proxy-revalidate"); header("Last-Modified: {$now} GMT"); // force download header("Content-Type: application/force-download"); header("Content-Type: application/octet-stream"); header("Content-Type: application/download"); // disposition / encoding on response body header("Content-Disposition: attachment;filename={$filename}"); header("Content-Transfer-Encoding: binary"); } date_default_timezone_set("UTC"); download_send_headers("data_export_WJA_" . date("Y-m-d") . ".csv"); echo array2csv($my); die(); ?>
  21. 1 point
    thanks that works
  22. 1 point
    Update: Added so you can index by airline Next update will remove the AM/PM tags
  23. 1 point
    Greetings Everyone, I have made a CrewCenter which is compatible with phpVMS, called the iCrew v4 (by iCrewSystems). iCrew's speciality is that, it is pure plug and play type approach towards VA Crewcenters. Whether your VA is fully established, or on its roots towards the wings, We can just add our magic touch to your CrewCenter. Currently we provide Sleek, Modern and Fully responsive Crew Centers, Attractive rather tempting Front End Websites, Custom iCons, Graphics & UI Design. Below you can find screenshots of my recent work. Behold, the iCrew v4. That's not it Boys This is just the Profile Page, There is ALOT and ALOT and ALOT of cool features. Like for example, what if i say you don't need Simbrief anymore to calculate/plan your flight? Nope, i'm not lying iCrewSystems has VADS, which was built with the help of Pilots and Flight Dispatchers.. What if i say you can have "Voice Alerts", "Voice Guidance" and "Voice ATIS" ? Nope hahaha, we're not lying again. For example, Here is the ATIS Information for OMDB Airport. ATIS Do you like what you see? Do you think your pilots will love it too? If yes, send me a Hi, if no, ask yourselves why Send me DM or a Mail to know about the available services. If you are 1.) IVAO/VATSIM Partnered Virtual Airline, 2.) You have more than 100 Pilots, I will be more than happy to give you some small concessions, and, there waits a Surprise for every customer who purchases iCrew v4.0 Hurry Up Details : Name : Leonard Selvaraja Working for : iCrewSystems Ltd (http://www.icrewsystems.com). Contact : kashrayks@gmail.com Projects : IndiGo Virtual Front End : https://iflyva.in/en/ | CrewCenter : http://icrew.iflyva.in (Contact me for the Demo Account Details) TUI Virtual (WIP) CrewCenter : http://tuigroupvirtual.co.uk/index.php/Profile Best Regards, Leonard
  24. 1 point
    Everybody is going into the implementation, but let's start with this first: Should you launch a virtual airline? Many people drop hundreds of dollars on a VA over the course of a year only to find out they (1) Don't have the time to maintain a whole community (2) They're the only ones flying in it, in which case (3) They didn't need a virtual airline in the first place. Food for thought <3
  25. 1 point
    Very Nice! Jeff always does nice work.
  26. 1 point
  27. 1 point
  28. 1 point
    The recaptcha key is free, as mentioned above, however, for those who do not want to mess with it, I've enclosed a bypass file which completely eliminates the recaptcha process all together. I DO NOT recommend this, but if your looking to get started quickly, then please see the enclose file. This will put and overwrite the Registration.php file, Make sure you always backup up. I just rename things on the Server, example; Registration.php.backup , this usually works great. If you so choose to use this file, do remember to keep a very close eye on applications pending, your open for bots ! Upload the file to the following :: /myserver/core/modules/Registration/Registration.php , You will at least be able to get your Registration up quickly until you fix your issues. Hope this helps you ! Jimbo Registration.zip
  29. 1 point
    Follow this topic for updates, and Please like this post if you are using my file... phpvms_navdata 1711: UPDATED 16 October 2017 | 16:59 Hrs US Central Time | 21:59 Zulu PHPVMS_NAVDATA_1711.SQL Above Sql Link not working? Try Zip File Download Also available at Modding Unlimited Network (Requires an Account) Download the sql file from above link.... Empty phpvms_navdata table Import ".sql" file with database editor... (phpmyadmin, Navicat, Sqlite Lite, etc).... ---------------------------------------------------------------------------------------------------------------------------------------------------- Or you can also run the parse from a browser with file tree as SITE FILE STRUCTURE: your_site_root/navdata/fsbuild/required_fsbuild_.txt_files_here (See original airhaul post in this forum) RUN FROM BROWSER: http://site_url_here/navdata/fsbuildpharse.php ---------------------------------------------------------------------------------------------------------------------------------------------------- NOTE: PHPVMS_NAVDATA TABLE MUST BE EMPTY FOR SQL IMPORT, OR BROWSER PARSE TO WORK Follow this topic for updates, and Please like this post if you are using my file...
  30. 1 point
  31. 1 point
  32. 0 points
    As it seems geonames has a limit of queries. Change in your app.config line 219 from Config::Set('AIRPORT_LOOKUP_SERVER', 'geonames'); to Config::Set('AIRPORT_LOOKUP_SERVER', 'phpvms');
×