Jump to content

simpilot

Administrators
  • Posts

    2773
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by simpilot

  1. Taking a couple of guesses here as there is very limited information presented; - Is the route and its waypoints correct? - Is the waypoint in the database correct? - Are there two waypoints named the same for the one your are having trouble with?
  2. Answer is right above your post. The page it is looking for is not there - 404 error
  3. Did you run the update so the old database would be updated? Remember to always backup your database prior to making changes just in case of disaster.
  4. 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
  5. fix: https://github.com/DavidJClark/phpvms_5.5.x/commit/c8a27b803c99ed1f94e1213df0e20ffe17c553e8
  6. 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 } ?>
  7. 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.
  8. Looks like the second now() function is in quotes. It is reading it as 'now()' instead of a time value would be my guess.
  9. 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.
  10. 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.
  11. 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.
  12. 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);
  13. 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?
  14. 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
  15. Have you tried this-> https://github.com/nshahzad/phpVMS/issues/110
  16. 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?
  17. 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.
  18. 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.
  19. 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.
  20. Can you supply traffic figures and revenue from the last 12 months? I will supply an NDA if required.
  21. <?php if(Auth::LoggedIn()) { echo 'You are Logged in as '.Auth::$userinfo->firstname.' '.Auth::$userinfo->lastname.' '.PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid); } ?>
  22. 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.
  23. 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.
×
×
  • Create New...