Jump to content

simpilot

Administrators
  • Posts

    2773
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by simpilot

  1. Top landings of a month is here -> http://forum.phpvms.net/topic/2989-touchdownstats-10/page__st__60#entry22804 <- you can adjust it to collect the other scenarios you are asking for. Some extra functions for averages -> http://forum.phpvms.net/topic/2989-touchdownstats-10/page__st__40#entry21572
  2. fix: https://github.com/DavidJClark/phpvms_5.5.x/commit/c8a27b803c99ed1f94e1213df0e20ffe17c553e8
  3. After: include('../core/codon.config.php'); use: <?php if(Auth::LoggedIn()) { //do stuff if they are logged in... } else { //do stuff because they are not logged in } ?>
  4. My experience has been that it is due to a pilot not having the kACARS client configured correctly and trying to fly as pilot #0. I get it once in a while with a new member on my site.
  5. Looks like the second now() function is in quotes. It is reading it as 'now()' instead of a time value would be my guess.
  6. Looking at your other post I would guess that there are some issues installing the database tables. You need to get those figured out first. If the values still do not exist after a clean install, put them in using phpmyadmin or whichever database admin tool your host offers.
  7. I messed with this some and frankly I am surprised that this has ever run correctly. When the script is used it is assigning a pilot id of "0" and then flushing any old sessions, which would not mean much to a cronjob but without some type of authorization there is no way the last couple of items will be run as long as they are looking for proper permissions. It needs to be rewritten. The checkPermissions() items are within the PilotGroups class if you are still looking for them.
  8. The last time you updated core files, did you update the database as well, or vise versa? My guess is that there are some fields missing in the database and/or the data class that is trying to access it.
  9. I can not seem to reproduce it on any of my test installs so I am kind of going in blind but try this; $row = DB::get_row($sql); if($row == NULL){$row->rawdata = new stdClass();} $row->rawdata = unserialize($row->rawdata);
  10. What are you running for a version of phpVMS? I do not get this error running the one of of github or my version, both running on php 5.5.12. Does this only show up when there are no pireps pending or when there are pireps as well?
  11. I think you have two issues.... The pilot data should be updating in the database and should not have anything to do with file permission errors. I would guess there is an error in the script somewhere in that process or a corrupt file, or possibly even the script and/or database being updated to a new version with the other not. For editing pages, have you also set the page files themselves to the proper permissions? BTW - The folder should be 0755 and the files 0644
  12. Have you tried this-> https://github.com/nshahzad/phpVMS/issues/110
  13. Have you added a line to the start of the file? The default one has that on line 26 not 27. -> https://github.com/DavidJClark/phpvms_5.5.x/blob/master/admin/maintenance.php Did the file get uploaded during your upgrade? Did the upload fail for that file possibly? Have you tried uploading it again and see if you get the same error? How are you running it? (direct link, cronjob, or?) If you are running it as a direct link, are you logged in when you do it?
  14. How are you displaying the information? I just looked at the data being returned from a live database and it seems to be returning the correct information.
  15. Just use the airline code option (screenshot below of an example) to give the flight the correct ICAO code for the airline then create some images that are named the same as the code. ie: UAL.png - AAL.png - etc.. Then in your template you can use something like, <img src="PATHTOMYIMAGE/<?php echo $schedule->code; ?>.png" alt="<?php echo $schedule->code; ?>" /> You will have to adjust the variable to whatever it is declared as in the template you are using. That is how I have done it in the past.
  16. All the map issues look like they are javascript related to me. I have attached a couple of pics from Firebug that show a couple of the errors. Looking at your source on the page I would take a good look at the order in which you are loading jQuery. I have run into similar issues using bootstrap, which it looks like you are using as well. The jQuery version that bootstrap uses will not support some of the code written for phpVMS and you will need to make adjustments to your phpvms.js file to support them, especially the map features. As far as your Screenshots error, I am guessing that there is some discrepancy between what is in the screenshot database and what is actually in the /pics folder that holds the actual images.
  17. Can you supply traffic figures and revenue from the last 12 months? I will supply an NDA if required.
  18. <?php if(Auth::LoggedIn()) { echo 'You are Logged in as '.Auth::$userinfo->firstname.' '.Auth::$userinfo->lastname.' '.PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid); } ?>
  19. This module has been extended by Tom and source code is available here -> https://github.com/tomsterritt/VAForum2 <- the forum thread is here -> http://forum.phpvms.net/topic/3748-vaforum-2/ I would recommend using the extended version. Locking thread as module is no longer relevant or current.
  20. I am not exactly sure what you are trying to accomplish with the code you have posted. I think that a couple of things might help you though. 1 - Get rid of the function in your template. 2 - create your variable array ($Numbers) outside, but before the foreach loop, or even better in your controller and then pass the variable to the template. 3 - just put the base code in your table line where you need it, something like: <td><?php echo strtr($flight->flightnum, $Numbers); ?></td> 4 - another thing that may be causing you issue is that the $flight-flightnum possibly has some alpha characters at the start, i am not sure what it holds in that template. Just my opinion but you should also get those database calls out of your template and into a model somewhere.
  21. Your example works for me. Are you sure you are giving it a valid number? A cleaner way to do it and avoiding any left to right character conflict may also be: $FlightNum = strtr($ReplaceText, $Numbers);
  22. Just copy the lines from the app.config.php file and place them in your local.config.php file then update your keys. /* Keys for recaptcha, you can change these if you want to your own but it's a global key so it should just work */ Config::Set('RECAPTCHA_PUBLIC_KEY', '6LcklAsAAAAAAJqmghmMPOACeJrAxW3sJulSboxx'); Config::Set('RECAPTCHA_PRIVATE_KEY', '6LcklAsAAAAAAMeQy5ZBoDu8JOMTP-UL7ek1GedO');
  23. You can take a look here -> https://github.com/DavidJClark/phpvms_5.5.x/commit/bff6cd07674635a389c0336264664506644bf489 <- I made some changes to allow the functions from phpVMS to work with newer versions of jquery, not pretty right now but it does work. You may want to take a look at that and see if you can work it into your site.
×
×
  • Create New...