Jump to content

simpilot

Administrators
  • Posts

    2773
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by simpilot

  1. vaCentral will automatically set the field to zero if it is not present in the data transmission.
  2. Ew... Lets try this. Change line 117 to; if (is_string($value) && $value != '' && substr($value, -3) == $this->tpl_ext) {
  3. The log, route, and rawdata field for all pireps sent to vaCentral has also been missing in all versions of phpVMS. If you are using version <= 936 you will need to add the following line to CentralData.class.php find (appx line 387) $pirep_xml->addChild('revenue', $pirep->revenue); $pirep_xml->addChild('source', $pirep->source); $pirep_xml->addChild('landingrate', $pirep->landingrate); and add $pirep_xml->addChild('log', $pirep->log); $pirep_xml->addChild('route', $pirep->route); $pirep_xml->addChild('rawdata', $pirep->rawdata); Final config should look like $pirep_xml->addChild('revenue', $pirep->revenue); $pirep_xml->addChild('source', $pirep->source); $pirep_xml->addChild('landingrate', $pirep->landingrate); $pirep_xml->addChild('log', $pirep->log); $pirep_xml->addChild('route', $pirep->route); $pirep_xml->addChild('rawdata', $pirep->rawdata); } If you are using one of my 5.x versions you will have to make a slightly different change to the CentralData.class.php file which you can find here -> https://github.com/D...36627cd84661994 and here -> https://github.com/D...1d30bf0c602d5a1 EDIT: You must also make a change to PIREPData.class.php Find this following around line 320 for versions <= 936 public static function getReportDetails($pirepid) { $sql = 'SELECT p.*, s.*, s.id AS scheduleid, p.route, p.route_details, u.pilotid, u.firstname, u.lastname, u.email, u.rank, and change to public static function getReportDetails($pirepid) { $sql = 'SELECT p.*, s.*, s.id AS scheduleid, p.route, p.route_details, p.rawdata, u.pilotid, u.firstname, u.lastname, u.email, u.rank, If you are running a 5.5.x version the change can be found here -> https://github.com/DavidJClark/phpvms_5.5.x/commit/b746267be2988f7bfdc3017dabd215c2bc20e83d
  4. I think you said you are running 5.5.2 of my version, if that is correct try this; /core/classes/TemplateSet.class.php line 117 should be if (is_string($value) && $value != '' && substr_count($value, $this->tpl_ext) > 0) { change to if (is_string($value) && $value != '' && substr_count($value, $this->tpl_ext."\n\r") > 0) {
  5. Is your server (for flyaka) running on fastcgi for php? It would be in the first section of phpinfo and is labeled -> Server API
  6. Can you put up a phpinfo file and let me know the link? I think it is something in the config on the server, there is another site doing the same thing hosted on a Hostinger server as well. -> http://tamv.net/suav...hp/registration
  7. Try removing the registration form from the front page and see if the error goes away. EDIT: I meant login form
  8. Does any of the airline names have a period (.) in it? If the end of the error message looks something like; <select name="code" id="code"> <opt in /home/u328252270/public_html/suava/demo/core/classes/TemplateSet.class.php on line 96 I would guess the airline name has a period in it or possibly the code of the airline is TPL or PHP
  9. The landingrate field for all pireps sent to vaCentral has been missing in all versions of phpVMS. If you are using version <= 936 you will need to add the following line to CentralData.class.php find (appx line 387) $pirep_xml->addChild('revenue', $pirep->revenue); $pirep_xml->addChild('source', $pirep->source); and add $pirep_xml->addChild('landingrate', $pirep->landingrate); Final config should look like $pirep_xml->addChild('revenue', $pirep->revenue); $pirep_xml->addChild('source', $pirep->source); $pirep_xml->addChild('landingrate', $pirep->landingrate); } If you are using one of my 5.x versions you will have to make a slightly different change which you can find here -> https://github.com/D...a34aa0bee89bc97 This will allow vaCentral to track landing rates.This is going to be part of the new scoring system.
  10. http://forum.phpvms.net/topic/21917-emails-to-webmaster/#entry117360
  11. Do you have the config setup with the correct key and everything? SmartCars does not report live map information if that is what you are looking for, only pirep's. You can find more about it here -> http://www.vacentral.net/faq
  12. A bug has been found in the ACARSData.class.php file that has been preventing the aircraft type to be included on the vaCentral live map. The fix can be found here -> https://github.com/DavidJClark/phpvms_5.5.x/commit/0b60a4797a4c4532bb5ff2c1010bc87bdbd1e859 Thank You to Duncan White for this find.
  13. Try the fix here -> https://github.com/DavidJClark/phpVMS-Timetable/commit/8c3a55e4129eac4d2092f90734f8eaa17c7b04dc
  14. There has been no data transmitted since 9/15 so most likely you did not change the api url. You can find the info here -> http://www.vacentral.net/faq or here -> http://forum.phpvms.net/topic/22786-notice-vacentral-api-server-url-changing-permanently/
  15. Try deleting the .htaccess file in the root. If that works the issue is most likely with the apache config on the server you are on, something your host would have to take care of.
  16. The function is working on the vaCentral end. Looking at your site you do not have any schedules to transmit. -> http://olympicairlinesvirtual.com/index.php/schedules
  17. The auto incremented id of the table will not change for the same pilot number.
  18. I have added it to the feed. $xml->total_airlines It is only active airlines, not the total count.
  19. Example: 10,000 unit goal 3,600 in database Simple math to get percentage -> ((3600 / 10000) * 100) = 36 PHP <?php echo ((StatsData::TotalSchedules() / 10000) * 100); ?> That should give you a percentage between 0 and 100.
  20. The update is triggered by the receipt of ACARs data from a client, there is nothing really to change in phpVMS, it will update as soon as it gets a update. Not sure what you are saying here, or where the code is from. The code I see is; $sql = 'SELECT `id` FROM ' . TABLE_PREFIX . "acarsdata WHERE `pilotid`={$pilotid}"; It is going to pick the record by the pilot id. EDIT: I see where this code is from, it will not update the flight ID, but this is the database ID not a flight number if that is what you are thinking.
  21. The way the ACARS data is updated you are probably better to create a new table and populate it with the data you are looking for, or possibly use the pireps table to gather the data you are looking for. The current configuration updates any previous records by pilot id, even when it is the start of a new flight. This is done to control the size of that table.
  22. There is no difference, unfortunately the terminology has been used both ways in the system. Your pilot ranks will be auto calculated every time the cron maintenance or bootstrap file is run.
  23. This feature is already in place and redirects the registrant to an error page with the email in use message. In registration.php; $ret = RegistrationData::CheckUserEmail($data['email']); if($ret) { $this->set('error', Lang::gs('email.inuse')); $this->render('registration_error.tpl'); return false; }
  24. Looking like things are starting to take shape!
×
×
  • Create New...