/**
* SMPirepValidator v.1.3 for phpVMS (tested under PHP 7.4 and phpVMS v5.5.2.72 by )
* @description This module aims to validate if the pilot made his flights online on the IVAO and VATSIM networks
*
* SmartModules addon module for phpVMS virtual airline system
* @linkhttps://smartmodules.com.br
*
* SmartModules addon modules are licensed under the following license:
* Creative Commons Attribution Non-commercial Share Alike (by-nc-sa)
* To view full license text visit http://creativecommons.org/licenses/by-nc-sa/3.0/
*
* @author Ton Nascoli (SmartModules)
* @copyright Copyright (c) 2021, Ton Nascoli
* @licensehttp://creativecommons.org/licenses/by-nc-sa/3.0/
*/
Install:
Download the ZIP file in your computer
Extract the zip file into a folder of your choice
Go to the folder where you extracted the files and access the phpvms_content folder
Upload the ADMIN and CORE folders to your website by placing them in the phpvms root folder
If asked to replace files, click YES
Install sm_onlinelog.sql
Just import the sm_onlinelog.sql file using your PhpMyAdmin
CRON JOB
This is the commonly used command line. If in doubt, consult your host provider
How does work?
After you enable CRON JOB, the module will add all the pilot’s flight logs to the sm_onlinelog table.
When validating the PIREP, the system will show if the LOG was found and will enable the administrator
to see the LOG of the flight performed at IVAO/VATSIM.
ENJOY!!!
NOTE
Tested under PHP 7.4 and phpVMS v5.5.2.72 (by )
We made a little bit change to the original code of the pirep_list.php file to allow the IVAO / VATSIM flight log to be presented when validating PIREP. Therefore, it is important that you back up your file. This file is in the admin/templates folder. We have provided a backup of the original file in the bkp_original_file folder.
This looks like a great module! However, after following the installation instructions, my website was inaccessible (HTTP 500) until I deleted the “SMPirepValidator.php” file from the MODULE folder “SMPirepValidator”… Has anyone else reached out with a similar issue? Thanks! My php version is 7.4, and I’m currently on phpVMS 5.5.2.72
Not sure if you’re responding to me or just commenting in general, since the post says:
But either way, I’ve given up on trying to get this module to work. We’ve been doing good without it, although it would be fun haha.
While it was a general statement, I’m the one who coded phpVMS 5.5.2 to work in php 7.0-7.2 – hence the version phpVMS 5.5.2.72
5.5.2.72 doesn’t fully work/install on php versions above 7.2
There will be errors and incompatibilities.
My guess is it was either installed under php 7.2 and then the php version was changed to 7.4 or possibly error reporting is off or not set up to show pertinent errors - or both.
phpvms 5.5.2.72 is not guaranteed to work under php v7.4. And due to that, the older modules won’t always work right, and may cause these kinds of errors, my suggestion is to move the version of php down to V7.0-7.2 and see if it works fine with that, if not then it could be making too many calls out and causing your server to hang.
So we got that module install, had to fix a few things but I am getting this erro code “PHP Warning: Missing argument 2 for SMPirepValidator::clearField(), called in /core/modules/SMPirepValidator/SMPirepValidator.php on line 61 and defined in /core/modules/SMPirepValidator/SMPirepValidator.php on line 199”
So we got that module install, had to fix a few things but I am getting this erro code “PHP Warning: Missing argument 2 for SMPirepValidator::clearField(), called in /core/modules/SMPirepValidator/SMPirepValidator.php on line 61 and defined in /core/modules/SMPirepValidator/SMPirepValidator.php on line 199”
this is the code that we have
Thanks for your report. I have uploaded a new version which is currently in use and without any errors.
This module was tested on PHP 7.4 and phpVMS v5.5.2.72 .