Jump to content

Nascoli

Members
  • Posts

    36
  • Joined

  • Last visited

  • Days Won

    2

Nascoli last won the day on January 15 2023

Nascoli had the most liked content!

1 Follower

Recent Profile Visitors

1315 profile views

Nascoli's Achievements

Apprentice

Apprentice (3/14)

  • Reacting Well Rare
  • First Post Rare
  • Collaborator Rare
  • Conversation Starter Rare
  • Week One Done

Recent Badges

4

Reputation

  1. 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 @ProAvia.
  2. Unfortunately, I haven't been able to resume development yet. Maybe I'll do this on my vacation! 🤭
  3. Really? It's ok for me! So, try this link bellow. SMPirepValidator v1.2
  4. It's really a shame what's happening with CrazyCreatives. By the way, now I can't even access my login area and I can't even reset my password. I started to develop modules for the community based on my needs. These modules modules are being tested in phpvms 5.5.7.2 and PHP 7.4 versions. Unfortunately, due to my available time, I can't produce faster.
  5. Nascoli

    phpVMS REST API

    Hi Folks, So, I scanned the PHP code and got the result. Let´s go! You can do a quick test using Postman. If you don't have it yet, download it here: https://www.postman.com/downloads/ You need to create an account and password to use it, it's free! See the attached print of my postman that will guide the explanation. Define the method, in this case GET, as I want to bring the list of pilots. Enter your URL remembering to put the folder where your phpVMS is installed. Click Authorization tab Choose the type of authorization, in this case Basic Auth Enter your username. This is where I was wrong and it's not clear from the API documentation. Your username is your ID and not your callsign used when you log into phpVMS. So, ID is the number (unless zeros) that after airline code. Example: My login callsign is XYZ0001, so my username is 1. Type your password Finally, I got a positive response! Here's an example of the PHP code you can make inside your phpVMS using cURL <?php ob_start(); $user = 'type your User ID number'; $pass = 'type your password'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://{your website}/{phpvms folder}/index.php/api/pilots'); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: Basic '.base64_encode($user.':'.$pass))); curl_exec($ch); $result = ob_get_contents(); ob_end_clean(); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); header("Content-Type: text/html; charset=utf8"); echo "$httpCode<br>$result"; I hope I've helped!👍
  6. Nascoli

    phpVMS REST API

    Tom is there? This definitely doesn't work for me. Unless I delete line 81 as presented above by #JefferssonSantos, even using Authorization Basic
  7. Hi guys, I'm making this module available for free. Enjoy! Bug report: contatct@smartmodules.com.br Feel free to contribute improvements! 😉 Download: https://github.com/smmodules/SMPirepValidator /** * SMPirepValidator v.1.3 for phpVMS (tested under PHP 7.4 and phpVMS v5.5.2.72 by @ProAvia) * @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 * @link https://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 * @license http://creativecommons.org/licenses/by-nc-sa/3.0/ */ Install: 1. Download the ZIP file in your computer 2. Extract the zip file into a folder of your choice 3. Go to the folder where you extracted the files and access the phpvms_content folder 4. Upload the ADMIN and CORE folders to your website by placing them in the phpvms root folder 5. 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 /usr/bin/GET https://{your_website}/{your_phpvms_folder}/action.php/SMPirepValidator/run_check 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 @ProAvia) 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.
  8. Hi Guys, Does anyone know if Crazycreatives is active? I have not received support! 🤔 I have already sent several emails, but I have had no awswer.
  9. Great! It´s does work now! Easy! Tks a Lot!
  10. OK thanks! I will try Laragon. I tried Laradoc, but I had the same problem!
  11. Hi guys, I have a problem installing. After following all the steps in the DOC, I installed phphVMS7 on my own machine (localhost). After installation, I typed https: // localhost / phpvms / public / and a screen with the <Head on to the installer> button appears. However, when I click on this button, instead of going to the installation screen, the system redirects me to PhpMyAdmin. Would anyone know what the problem is? I am using XAMPP with PHP v7.4.18
  12. Tks All! I will try to do what you have suggested. Then I will report here if it worked.
×
×
  • Create New...