Jump to content

simpilot

Administrators
  • Posts

    2773
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by simpilot

  1. I would check the field for location in the pilot profile, I think you will find it empty although that seems strange as the way the registration is set up it would end up having the first option in the list (Afghanistan) in that field if the pilot did not change anything.
  2. What version are you using? It may be a conflict with mysql and mysqli
  3. The 500 error is actually being produced on your site, not the vaCentral site from the way I see your error log. Without much information I would have to guess that there is something going on with an .htaccess file or such on your server.
  4. Some people have just copied the code from the default schedules page although if the bid function does not work on the schedule page then it will not work anywhere else.
  5. Try adding the last column "chartlink" and just put a 0 in it.
  6. Pull the server php error log and see what is there, activate the phpVMS error debugging functions and see what shows up there. http://forum.phpvms.net/page/index.html/_/getting-started/debugging-issues-r31
  7. When hosts change things nothing is out of the question.....
  8. http://forum.phpvms.net/topic/21865-fatal-error-allowed-memory-size-of-134217728-bytes-exhausted http://forum.phpvms.net/topic/8785-out-of-memory/ http://forum.phpvms.net/topic/21622-fatal-error http://forum.phpvms.net/topic/21276-php-memory-size-issue http://forum.phpvms.net/topic/21089-fatal-error-issue-resolved http://forum.phpvms.net/topic/8564-allowed-memory-size-exhausted-need-help
  9. Without some error or debug messages I do not really have anything to give you to try. It is odd that the main site works but the admin side does not, I am having no issue with either on php 7.0.5
  10. Just have to search a little bit http://forum.phpvms.net/topic/21259-live-flight-board-airlines-display-solved http://forum.phpvms.net/topic/19943-live-deaprture-board http://forum.phpvms.net/topic/4969-live-flight-board-problem-solved/page__st__20#entry33478 http://forum.phpvms.net/topic/8050-how-to-change-status-to-gif-animated-image
  11. Looks like you are using the old official release, I have no idea if it will work on php7, doubtful though. It may be as simple as uploading all the admin folder again. I have my version running on php7 without any noticeable issues yet.
  12. http://forum.phpvms.net/topic/23473-fatal-error-when-installing/#entry123746
  13. This will have to be set in the template, the module just gives an array of the data from the database. Maybe something like this could be used as a base; $columns = 1; foreach($lines as $line) { //check to see if we are on the first column of the row if($columns == 1){echo '<tr>';} echo '<td>'.mydata.'</td>'; //check and see if we are on the second column //if we are - end the row and reset the column count //if not - add to the column count if($columns == 2){echo '</tr>'; $columns = 1;} else {$columns++;} } //check if we have an open row if($columns == 2){echo '</tr>';}
  14. Add an anchor style for that page in your css. CSS a.myanchorclass { color: #000000; } Then on your page <a href="my url" class="myanchorclass">Link</a>
  15. I do not know what code you are running prior to the snippet but I think you would be better served by using explode and then in_array, maybe something like this; <?php $daysofweek = explode($route->daysofweek); // We are gonna loop each day of the week for($dayofweek = 0; $dayofweek < 7; $dayofweek++) { // echo our column opening echo '<td>'; // Check if $i (the current day of week) exists if(in_array($dayofweek, $daysofweek) { // there is a flight for this day , so echo that plane icon out echo 'imagehere'; } // Close that column echo '</td>'; } ?>
  16. The code you are using builds a table using the javascript from the acars map which you have cut off. If you do not want the map, just a table, your best bet is probably to load the acars data into a variable like you are doing and then just loop through the data on the template page to create your table rows. Do not use any of the javascript functions, there is no need for them.
  17. You could use the setlocale function and set the LC_NUMERIC category somewhere at the start of the script. -> http://php.net/manual/en/function.setlocale.php No guarantees on this as there is a lot of places in phpVMS thst use various types of numeric values including flight numbers and pilot id's. You will probably end up with things like => Flight # ABC1,234 - most likely you will need to just use number_format where you want your specific format.
  18. either remove or close <div class="indent">
  19. There is currently no option to achieve this. You could probably take the code from the rank vs aircraft functions already built and adapt it to schedules.
  20. Access denied for user 'xxxxxx'@'localhost' (using password: NO) Generally that is simply the wrong credentials for the database but if the site is running on the same thing it doesnt make sense. Are you possibly running two databases, one as a test and one live or something? A link to the server could not be established This one leads me more to believe that the sql server was down or refusing connections when the script went to use it. Again, are there possibly multiple databases in operation? When you changed the system did you move and overwrite all files?
  21. function.move-uploaded-file"]function.move-uploaded-file[/url]]: failed to open stream: Permission denied in [b]/home/woodsdom/public_html/CPC/admin/modules/Import/Import.php[/b] Unable to move '/tmp/phpWOE4OY' to '/home/woodsdom/public_html/CPC/core/cacheschedules_ttz_wip.csv' These two things make me believe that the folder it is trying to save to has permissions set to not allow a file to be saved.
  22. Yes, the template is set to structure as a table. The loop is going to have to be modified to count and allow two listings in each row instead of one.
  23. It is from the coding conventions changing with newer editions of php, basically find all the instances of function or public function and change it to public static function
  24. It is because $route->daysofweek can be anything from a single digit to 01234567. The only time it would only be "1" would be if it was flown on Mondays only. You will have to break it apart and then do your comparison.
  25. I think Inactive is the same as retired in this case. Although the column in the database is titled retired there is no actual retired status by default in the config file. Retired, when true is marked with a "1" and that corresponds with the inactive status. Not sure why they are showing up as on leave. What version of phpvms are you using? Are the accounts actually being marked with a 3 in the retired column? I am not sure how smartcars works as far as login - all the others you simply have to submit a pirep through the acars and your account is reactivated and then you can login again.
×
×
  • Create New...