Jump to content

simpilot

Administrators
  • Posts

    2773
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by simpilot

  1. Try adding the last column "chartlink" and just put a 0 in it.
  2. 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
  3. When hosts change things nothing is out of the question.....
  4. 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
  5. 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
  6. 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
  7. 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.
  8. http://forum.phpvms.net/topic/23473-fatal-error-when-installing/#entry123746
  9. 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>';}
  10. 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>
  11. 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>'; } ?>
  12. 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.
  13. 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.
  14. either remove or close <div class="indent">
  15. 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.
  16. 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?
  17. 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.
  18. 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.
  19. 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
  20. 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.
  21. 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.
  22. What are you using for a template. This is most likely going to best achieved with floating <div>'s rather than a table.
  23. http://forum.phpvms.net/topic/21299-kacars-unhandled-expectation/ http://forum.phpvms.net/topic/8745-solvederror-switchpirep http://forum.phpvms.net/topic/8167-kacars-free-switch-verify-error http://forum.phpvms.net/topic/7552-xacars-setupinstall-solved http://forum.phpvms.net/topic/7930-kacars-free-guide/
  24. My guess may be that you are blocking yourself with your hot link script since it has to be a full url and not a relative path.
  25. I agree on both not being able to please everyone and that it was more fair than the original. It is funny, the hate mails that I got about it I returned asking what their solution would be and never heard anything but from one.
×
×
  • Create New...