Jump to content

Parkho

Moderators
  • Posts

    1371
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by Parkho

  1. On 1/7/2024 at 2:37 AM, Rod said:

    So are live flights listed in the pireps table or only flights that have landed and been submitted?

     

     

    Only submitted pireps will be recorded in pireps table. Live flights are recorded in acars table and will be deleted after the pirep is submitted. 

  2. 10 minutes ago, Rod said:

    Is their a way to recover his deleted account. Then reactivate it so he is listed in the active roster, then look him up in the phpvms admin / Pilots & Groups / View All Pilots.... to get his IP then block it?

    It is not possible to recover the deleted account unless he registers with the same email address. There is one more possibility, Check the bids table, he might still have a bidded flight after account termination. I know acars softwares check for flight bids table to fetch some data

  3. 11 minutes ago, Rod said:

    His pilot id is not in the pilots table anymore, he was already deleted from the pilots table. If the flight is still live how would it be listed in the pireps table until filed? 

     

    Thank you for your assistance Parkho

    You're welcome, the acars table only updates when the software is connected to the website and is sending flight data, so he might have some other access accounts to your website like the main email and password (just a guess).

  4. Like I said the acars software is still on and makes the table refresh, check the pilots table for the pilotid, if it's there, delete their record manually

     Repeat this process for them in pireps table.

  5. Hello there, if the flight comes back up after removing it from acarsdata table, that means the guy is still connected to your website through the acars software and that means their account is still active on your system

  6. On 4/2/2022 at 8:38 PM, Virtualei said:

    Could a search function be added to this module to find out what pilot flew the most hours of a particular month. I know the display shows for the current month but I would like to find out who flew the most hours last month. Thanks in advance

     

    Yes it could but only if you're willing to do a donation 🙂

  7. 18 minutes ago, DisposableHero said:

    Technically, what the main question owner wants does not need a private token or a private api access ... Those checks can be done simply with the public access (public whazzup data). 

     

    You can fetch the data (with minimum 15 second interval for both networks), do your checks however you wish and then either store the data in a database table or delete it. If your acars software is sending live data to your phpvms, then you can do your checks live and mark the flight online/offline as you wish. If it is sending all the pirep info after the flight then you need to store the live whazzup data with (prefably utc) time codes (like one copy for every 5 mins and keep the last 24 hours) and then check them according to the pirep (prefably utc) times to see if the pilot was online or not during the flight.

     

    Anyway, these are technical details ... I already did it for phpvms v7 with public api access, so it can be done for v5 too. 

     

    Hope you can find your solution for v5.x series.

    This is correct and can be done for v5.x as well

  8. 1 hour ago, YusufBudi said:

    Great..

    This is the documentation link for IVAO APIv2 https://wiki.ivao.aero/en/home/devops/api/documentation-v2.


    I don't know which one you need, but you might want to look at the user session on the private API set.


    Also, to use the private API, va must be listed as official in IVAO, and only then they can request the token to use the API. Which i believe is not difficult for Vielma16 and Srilankan Virtual.

     



     

     

     

    Get a token and send it to me in pv

  9. 33 minutes ago, YusufBudi said:

    IMHO, for IVAO, you can try to parse IVAO whazzup data, and compare it to your pilot's flight data. If something match (can be vid, and/or callsign, and/or strings at the remark), then the system tag it online per whazzup download. So you have to set minimum value for the whole flight to be reported as online flight.

    Or you can try for their private APIv2, which require token for an approved VA.


    But, still i can't write a code for that, so i would like to know too..

    If you get that API then I'll write the code for it! 

  10. On 8/12/2021 at 1:21 PM, VIELMA16 said:

    Hello, 


    I would like to know a code with which the network in which a pilot has flown or is flying online can be detected (IVAO / VATSIM or OFFLINE).

     

    In my airline, taking into account the current regulations, pilots who do not fly ONLINE in IVAO or VATSIM their flights are rejected. We use smartCARS but I have detected that even if they select fly "ONLINE IN IVAO", for example,  they are not flying in IVAO and I want to prevent that.

     

    I really appreciate the help!

     

    Best Regards,

     

    JULIO

    You need API from VATSIM or IVAO in order to be able to get your pilot's log info. If your ACARS client somehow logs their record in VATSIM or IVAO networks then you'll be able to fetch that data and apply rules to it. Otherwise, you'll have to just trust your pilots.

  11. 10 minutes ago, ProAvia said:

    As @Parkho suggests, back up your database first. Then, if it doesn't do what you think, you can always restore.

     

    I always thought it recalculated the PIREP count - but I've never had a reason to use it on my live site. But I have been wrong before (just ask my wife 🤣).

    😅

  12. 17 hours ago, Daniboi said:

    Hello! Just a quick question, what does the Reset Pilot PIREP count actually mean? Does it mean to update it to 0 (zero) or just readjust them to be right?

    I think it will reset the count to zero. Make sure you have a back up before you do the reset.

    • Like 1
  13. Hello everyone,

    This is to announce I have created a Discord channel in case anyone has direct questions or in need of support for my modules. Perhaps it would be best if questions and support requests be posted at the forums so everyone can benefit from them but consider this another way of reaching me. Below is the link to my discord channel.

     

    DISCORD SUPPORT CHANNEL

     

    Regards

    Parkho

    • Thanks 1
  14. On 8/3/2020 at 5:03 AM, perryfincher said:

    Hello;

     

    I may have done something wrong.  After installing, we do not get the table as shown in images posted.

    We get the following all shifted to the left and not tables.

     

    https://paaclippersva.com/index.php/toppilot

     

    Thanks in advance for any help or assistance.

    Check your table prefix, the module's using "phpvms_" as the prefix. If yours is something else, you'll have to change it everywhere inside the module.

  15. 11 hours ago, ProAvia said:

    It almost looks like it isn't pulling the css. 

     

    What directory is phpVMS installed in? Is it /public_html/crewcenter/ ?

    What directory is crewcenter installed in? Is it /public_html/crewcenter/lib/skins/crewcenter/ ?

    Okay! I don't know what to say but I did a fresh install of 5.5x by David and the skin came up but the css is not loading which I think might be the links issue. Thanks for your help guys I much appreciate it.

    Cheers

  16. 20 minutes ago, ProAvia said:

    No idea why you are getting an error referencing header.tpl and footer.tpl - it shouldn't be calling any tpl files. The skin uses app_top.php for the header and app_bottom.php for the footer.

     

    In referende to your error_log - Line 231 of which file? The layout.php file has only 113 lines.

    Please see attached image. This is what I get when the skin loads. To me, the skins doesn't load at all and seems it's being skipped somehow.

     

     

     

    crw.jpg

  17. 5 hours ago, ProAvia said:

    The header and footer won't show if not on the login or registration pages.

     

    See layout.php starting on line 53

     

    
    <body>
            <?php echo $page_htmlreq; ?>
    		<?php
    		// var_dump($_SERVER['REQUEST_URI']);
    		# Hide the header if the page is not the registration or login page
    		# Bit hacky, don't like doing it this way
    		if (!isset($_SERVER['REQUEST_URI']) || ltrim($_SERVER['REQUEST_URI'],'/') !== SITE_URL.'/index.php/login' || ltrim($_SERVER['REQUEST_URI'],'/') !== SITE_URL.'/index.php/registration') {
    			if(Auth::LoggedIn()) {
    				Template::Show('app_top.php');
    			}
    		}
    		?>
            
            <div id="content">
                <?php echo $page_content; ?>
            </div>
            
    		<?php
    		# Hide the footer if the page is not the registration or login page
    		# Bit hacky, don't like doing it this way
    		if (!isset($_SERVER['REQUEST_URI']) || ltrim($_SERVER['REQUEST_URI'],'/') !== SITE_URL.'/index.php/login' || ltrim($_SERVER['REQUEST_URI'],'/') !== SITE_URL.'/index.php/registration') {
    			if(Auth::LoggedIn()) {
    				Template::Show('app_bottom.php');
    			}
    		}
    		?>

     

    Okay! I'm not sure I'm following you on this, All the .php files are in the skin folder, layout.php looks okay and proper but don't know what's wrong. error log says header.tpl and footer.tpl are missing in class floder TemplateGet on line 231 which is the very end line of the file.

×
×
  • Create New...