Jump to content

simpilot

Administrators
  • Posts

    2773
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by simpilot

  1. A lot of the updates that Oxymoron has made have been merged into the working copy on github -> https://github.com/DavidJClark/phpVMS-AirMail Changes can be found here -> https://github.com/DavidJClark/phpVMS-AirMail/commits/master
  2. I was going to fork this on github and add it into my extended version of phpvms but am a little confused with the license. In this post you state that it is licensed under the "Attribution-NonCommercial-ShareAlike 3.0 Unported" but in the readme on GitHub and the files posted there there is no mention of this license, and the license is not included with the package. The only mention is that the script is copyrighted by yourself at the top of each file. What are your intentions as far as future use of the module and license requirements?
  3. <?php MainController::Run('ACARS', 'index'); ?> Will show the map in a template.
  4. You can use the AmMap plugin for creating the maps on the fly. -> http://www.ammap.com/ It will take data input from your system to create each map dynamically.
  5. The module has been updated on GitHub. The method that is used in this exploit example is also over a year old, the module was updated in March 2012 to normalize the functions within the phpVMS environment. If you are using the version that was updated in March of 2012 you only need to replace the PopUpNews.php and PopUpNewsData.class.php files, or make the edits to them. If you are using the older version that used the "$_GET" method I would suggest updating to the latest version. Commits can be found here -> https://github.com/DavidJClark/phpVMS-PopUpNews/commits/master Module can be found here -> https://github.com/DavidJClark/phpVMS-PopUpNews
  6. If you are still in need of help with this module please open a ticket at http://www.noticeablehosting.com/clients/ and it will be addressed.
  7. You need to replace the link in your template that is in place for the default schedules with this one.
  8. Looks like the server you are using does not have the php zip extension installed.
  9. This will only work if you have installed phpVMS using git originally. If this is the case you can run the commands from the same directory using your command line (SSH) depending on how you have GIT installed on your server. If you did not install it using git it is just as easy to use the method above the GIT method here -> http://forum.phpvms.net/page/index.html/_/getting-started/upgrading-r3 When I update a site I usually use the command line and get the new files directly from github using wget and then unpack them on the server, this saves the time involved with updating all the files using FTP.
  10. If you are using the TopPilot module I wrote a couple of years ago it is part of the reason for the increased memory usage. When I wrote it I did not figure on VA's having 10k + PIREPs in their database. Try removing that module and see if the memory usage declines some. There are also some other calculations that go on when a PIREP is accepted within the core of phpVMS. I have moved most of those to the daily maintenance function that is run using a cronjob for my own va. I have been thinking that there needs to be a way to archive PIREPs that are older than X months or years and remove them from the main table.
  11. You should be able to remove the functions you do not want and modify the existing jumpseat functionality to work as a stand alone module.
  12. All files are located on my GitHub account. Link in my signature.
  13. In the main index.php file there are two lines that you can change depending what version of the template system you are using; $BaseTemplate->Set('title', MainController::$page_title .' - '.SITE_NAME); $BaseTemplate->Set('page_title', MainController::$page_title .' - '.SITE_NAME);
  14. You can place that in the template where you would like the map to display.
  15. The system automatically builds a link for each page you create in the system and injects it into the navigation template using the line <?php echo $MODULE_NAV_INC;?> You can remove that line and manually link the pages as you would like without ny problems with the system, just in the future when you create a page you will have to manually add the link to your site.
  16. I have had a client requesting me to modify this template for their va and I found some interesting things. "Design By Luiz Fernando" - No Once again Luiz you are distributing copyrighted material. http://themeforest.n...emplate/2543290 http://themeforest.n...preview/2543290 I am removing the download link and will lock the thread if you can not supply a full extended license for the template from the author.
  17. I made a bunch of changes for a VA in order to make all the maps upload. You can find all the changes on my extended version of phpVMS on my GitHub account, it is the FSFK.php module file that you need to change. https://github.com/D...phpVMS_extended
  18. The error message tells me that either there is no user "username" or that the password is not "password"
  19. Answered here -> http://forum.phpvms.net/topic/2599-eventbooking-beta-13/page__st__120#entry57302
  20. Yes, you can use the function "get_upcoming_events()" from the EventsData.class.php file and use the returned data array to populate your calendar.
  21. You should be able to, as long as you only have one class with that name to avoid any collisions.
  22. Eddie is correct, I have nothing to do with the GLO VA site, I really have no idea where that would have come from.
  23. You can adapt the Vatsim data reader that I have on GitHub. Vatsim and IVAO has the same type of data file as the wazzup.txt file you are refering to. You will just need to adjust the parameters to meet your client section so when it parses the data it knows where to start going through the clients connected. There is also a Google map adaptation included in the package. Forum Thread -> http://forum.phpvms.net/topic/5946-vatsim-data-reader/ GitHub Link -> https://github.com/DavidJClark/phpVMS-VatsimDataReader
  24. In frontschedulesdata.class.php try adding another AND statement; change this public function findschedules($arricao, $depicao, $airline, $aircraft) { $query = "SELECT phpvms_schedules.*, phpvms_aircraft.name AS aircraft, phpvms_aircraft.registration FROM phpvms_schedules, phpvms_aircraft WHERE phpvms_schedules.depicao LIKE '$depicao' AND phpvms_schedules.arricao LIKE '$arricao' AND phpvms_schedules.code LIKE '$airline' AND phpvms_schedules.aircraft LIKE '$aircraft' AND phpvms_aircraft.id LIKE '$aircraft"; return DB::get_results($query); } to this; public function findschedules($arricao, $depicao, $airline, $aircraft) { $query = "SELECT phpvms_schedules.*, phpvms_aircraft.name AS aircraft, phpvms_aircraft.registration FROM phpvms_schedules, phpvms_aircraft WHERE phpvms_schedules.depicao LIKE '$depicao' AND phpvms_schedules.arricao LIKE '$arricao' AND phpvms_schedules.code LIKE '$airline' AND phpvms_schedules.aircraft LIKE '$aircraft' AND phpvms_aircraft.id LIKE '$aircraft' AND phpvms_schedules.enabled = '1'"; return DB::get_results($query); } and also change; public function findschedule($arricao, $depicao, $airline) { $query = "SELECT phpvms_schedules.*, phpvms_aircraft.name AS aircraft, phpvms_aircraft.registration FROM phpvms_schedules, phpvms_aircraft WHERE phpvms_schedules.depicao LIKE '$depicao' AND phpvms_schedules.arricao LIKE '$arricao' AND phpvms_schedules.code LIKE '$airline' AND phpvms_aircraft.id LIKE phpvms_schedules.aircraft"; return DB::get_results($query); } to this; public function findschedule($arricao, $depicao, $airline) { $query = "SELECT phpvms_schedules.*, phpvms_aircraft.name AS aircraft, phpvms_aircraft.registration FROM phpvms_schedules, phpvms_aircraft WHERE phpvms_schedules.depicao LIKE '$depicao' AND phpvms_schedules.arricao LIKE '$arricao' AND phpvms_schedules.code LIKE '$airline' AND phpvms_aircraft.id LIKE phpvms_schedules.aircraft AND phpvms_schedules.enabled = '1'"; return DB::get_results($query); }
  25. A link back to my site somewhere on your site would be greatly appreciated, it does not have to be directly in the module layout. Front Schedules I do not believe is set to skip inactive schedules. You should be able to add it to the data query though. As far as not allowing pilots to fly a flight on a non-scheduled day, you could probably do it a few different ways. You could check the schedule when the user tries to get the bid from the site using acars, but if they already have it loaded into their client from a previous connection they will be able to get past the check. You can also check it on the submission of the PIREP and reject the PIREP if it is filed on a non-scheduled day, although I think a pilot may get a little miffed if he just flew a long flight only to have it rejected. You could also check it everytime that acars data is submitted to update the live map, although short of sending a message back to the pilot I don't know how you would actually stop them from flying the flight. The other thing I would think about is server time versus fs time from the user, if they are not the same I think it would cause some issues if a flight is close to midnight.
×
×
  • Create New...