Jump to content

CedGauche

Members
  • Content Count

    110
  • Joined

  • Last visited

Everything posted by CedGauche

  1. Hi, yesterday I've updated to PHP5.6, since this update we have problems with our live map. Sometimes it's working, sometimes not (without changing something). It seems to be a javascript issue, the error is: I am usign phpvms classic, but also tried another acarsmap.js file (5.5), but this is also not working. Google API has been updated. When switching back to 5.4 the map is back again
  2. CedGauche

    Live Map Problems after PHP Update

    It's phpvms classic (not the 5.5 version)
  3. CedGauche

    [NOTICE] - Open Flash Chart Exploit

    @mischka I've tried your code, but there is no graph, it's empty and there is only a "loading image"
  4. CedGauche

    [NOTICE] - Open Flash Chart Exploit

    at the finances and in the pilot public profile (aircraft usage) are some more of these old
  5. CedGauche

    Error - Double Expenses

    We have expenses to simulate a real airline, but since 2 month every expense is doubled without changing something. The doubled expandes came in the database at the beginning of the monnth. In the phpvms_expenselog the expanses are twice, so that me make a big loss and the end of the month. Is there an option to fix that?
  6. CedGauche

    Double Pireps

    Hi, sometimes a pirep is send up twice to the page, it's exaclty the same pirep at the same time. How can we solve this problem? We use kacars custom. thx
  7. CedGauche

    Fuel Rate average per pilot

    just use the avg sql statement: https://www.w3schools.com/sql/sql_func_avg.asp
  8. Hey, every time when we reject a pirep the pilot lost about 30% of his total money. How can we fix that? thx
  9. Hi, a pilot of our va reported me an error when sending a notam, it seems that the airmal was sent probably. Thanks for help Fatal error: Uncaught exception 'Exception' with message 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's message inbox on 09/22/2014', '25', '1411389143')' at line 2' in /var/www/web1112/html/va/core/common/MailData.class.php:92 Stack trace: #0 /var/www/web1112/html/va/core/modules/Mail/Mail.php(138): MailData::send_new_mail('33', '16', 'Vorschlag eines...', 'You received a ...', 25, 1411389143) #1 /var/www/web1112/html/va/core/modules/Mail/Mail.php(38): Mail->send() #2 [internal function]: Mail->index() #3 /var/www/web1112/html/va/core/classes/MainController.class.php(218): call_user_func_array(Array, Array) #4 /var/www/web1112/html/va/index.php(60): MainController::RunAllActions() #5 {main} thrown in /var/www/web1112/html/va/core/common/MailData.class.php on line 92
  10. CedGauche

    Cronjob inactive Users - Help

    I think that my host stopped the cron after memory issues, the recalulate hours script at the end of the maintenance.php was enough I deactivated this script and the cronjob ist working again.
  11. CedGauche

    Cronjob inactive Users - Help

    Hi, the maintenance script is planed as a cronjob every day at 01:00 am and it worked for 2 years now. But I noticed, that the script stopped marking pilots as retired. Only when I manually start the script by entering the url in the navbar the pilots are inactive. Anybody can help?
  12. CedGauche

    PHP Memory size issue

    I have the same memory problems, so I disabeld the StatsData::UpdateTotalHours(); and the pirpep approval worked again! But Now I get this memory error when running the maintenance.php script or the reset hours function in the Admin menu. Is this a big problem? Or is there a way to reduce memory usage of the StatsData::UpdateTotalHours(); function? We have 13774 Pireps and a Memory Size of 128 MB.
  13. CedGauche

    Memory Issues

    Hello, after marking an inactive pilot to active and saving the profile I get the following Message at the top of the Admin Menu. Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 8339 bytes) in/var/www/web1112/html/va/core/classes/ezdb/ezdb_mysql.class.php on line 282 I have also a cronjob which is cleaning the pireps table every month and no problems with memory issues until now. The DB is only 56 MB in size.
  14. CedGauche

    Memory Issues

    134217728 is the max memory available from my host
  15. But you get only a message, if the pitch angle was 2deg. If you want to have it for other values, you can copy it and change the angle of pitch here
  16. CedGauche

    Livemap and Inair

    this is the wrong variable: data[i].code == "A330" It has to be data[i].aircraftname == "A330-300" or data[i].aircraftname == "B737-800"
  17. CedGauche

    phpVMS Stock Market?

    Hey, I had this idea some months ago: A virtual Stock market for pilots of your VA. The pilots can spend their money and all pilots are in a competition, who is the best trader (of the month, of the year...). You can add virtual stocks and they are randomly generated or you are able to use an API like Yahoo Finance to get real values. As an option you can add your own VA into the stock market and it depends on the flights and revenue if the share rises or fall. We can code this script together, but my knowledge in php is not the best. I can make the conent and the layout or design.
  18. CedGauche

    phpVMS Stock Market?

    Yes, but it only works with VA-Central...
  19. CedGauche

    The rating for their flight.

    Nice snippet, thx! Is there a way to add variables, if these were not in the log? Like: if(!preg_match('/Overspeed!/i', $line)) $sover = -2; Don't work in my case
  20. CedGauche

    Including TPL files

    Hi, I want to include some sub tpl files, these tpl files are in the same directory as the index file (poker.tpl): This is the module: When I start the game it works fine, but when the game wants to start it's included tpl, I get an error: This is the code inside the poker.tpl for the include: I am working on this for hours now..thx for help
  21. CedGauche

    Including TPL files

    Ok thx, that worked for me...but I think it's to complex to add external scripts or modules to phpvms. Now the error is: Fatal error: Cannot redeclare checkWinner() (previously declared in /var/www/web1112/html/va/core/templates/spiel4/card_results.tpl:59) in/var/www/web1112/html/va/core/templates/spiel4/card_results.tpl on line 95 The code from card_results.tpl:
  22. CedGauche

    Including TPL files

    edited
  23. CedGauche

    Including TPL files

    Okay, this is my module now: And this is the function: But the error is the same again: Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'spiel4' does not have a method 'card_results.tpl' in /var/www/web1112/html/va/core/classes/MainController.class.php on line 218 Sorry for my questions, this is complete new for me and I am not an native english speaker
  24. CedGauche

    Including TPL files

    Ok, thx.. is still need some help, how do I create the second function in the module?
  25. CedGauche

    Virtual Stock

    Okay, thx for the information! But I was more searching for a va intern module
×