Jump to content

Artjom

Members
  • Posts

    120
  • Joined

  • Last visited

Posts posted by Artjom

  1. Hello all,

    problem with the calculation of money after the decimal point a lot of numbers, an example 63.3333 (see photo), how to do that was not 63.3333, but only two digits after the decimal point, example 63.33

    thanks in advance for your help!

    Regards 

    Artjom

    post-424-009794200 1276724717_thumb.png

  2. Guys, I think I have figured out what you are trying to do. I have created a module that creates a "status" image depending on the pilots current flight status. It is similar to the vatsim indicators function except it is tied to the phpvms system.

    What I have done,

    Get all pilots and check to see if there is acars data available

    if there is acars data available check and see if it is more than 10 minutes old

    if it is current create a "online" status indicator image with the pilot name, id , flight, and phase detail from acars

    if it is more than 10 min old create a "offline" status indicator image with the pilot name, id , flight, and phase detail (should be Arrived) from acars

    In the case there is no acars data look for the last pirep

    if there is a pirep use the newest one to create a "offline" status indicator image with the pilot name, id , last flight, and the date it was filed as "Last Seen"

    if there are no PIREPS filed for the pilot create a "offline" image showing the pilot name and pid and the text "No Flights Filed"

    This is all seperate from the signature badges. Is this what you are thinking. This is what I get....

    http://www.westjetvi...Status/show_all

    Hello simpilot!

    yes this is it!

    can you give us your script?

  3. I've created a output Phasedetail!

    here is the code

    <?php
         $acars = ACARSData::get_flight_by_pilot($userinfo->pilotid);
    ?>
    <?php echo $acars->phasedetail; ?>

    It works perfect!

    I needed the dynamic signature I've create this code:

    if($status->old <> $status->new)
    { pilotdata::regeneratesiggy($pilot->id);}

    Output working perfect in signature, but regenarating doesn't work...

    here is a status (Test):  http://live-mix.ath....ures/KNI001.png    (at the left bottom)

  4. Hello all,

    I have an a problem with installation on a paid hosting! There is a WINDOWS HOSTING!!!

    This is a site: http://www.kdavia.st...all/install.php

    I getting this error: PHP Warning: fopen(E:\WorkWeb\kdaa\Web\core//local.config.php) [function.fopen]: failed to open stream: Permission denied in E:\WorkWeb\kdaa\Web\install\Installer.class.php on line 56

    what can i do?

    Regards

    Artjom

    PS. CHMOD rights are writtable, that's tell me Hosting provider.

  5. a conclusion in the two tables, first table of Boeing 737 and the second table all Airbus

    how can I create this?

    First Table is (list of all Boeing aircraft's)

    Boeing B737-300

    EI-CHH, total flight time 00:12:50. 

    Located at the airport Cologne Bonn (EDDK).

    Second Table is (list of all Airbus aircraft's)

    Airbus A319-100

    VP-BBG, total flight time 01:20:15. 

    Located at the airport Munich (EDDM).

    please help!!

    I've created this code but, this code show all  aircraft's in list, but i needet 2 tabeles! :mellow:

    <?php foreach ($fleet as $aircraft) 
    {
    ?>
     <?php $airbus = explode("EI", $aircraft->registration); echo $airbus[0];?>,  total flight time <?php echo $aircraft->totaltime; ?>.<br>  Located at the airport<?php
    $params = (array('a.registration'=>$aircraft->registration, 'p.accepted'=>PIREP_ACCEPTED));
    
    $pirep = PIREPData::findPIREPS($params);
    $current_location = $pirep[0]->arricao;
    $current_location2 = $pirep[0]->arrname;
            {
                echo ''.$current_location2.' ('.$current_location.')';
            }
    ?>.<br><br>
    <?php } ?>

  6. when cache files were deleted, it will show me this erorr

    index.php/finances

    Warning: file_put_contents(C:\Program Files (x86)\VertrigoServ\www\938\core\cache/phpvms_months_since_2010-05-26 00:53:17.cache) [function.file-put-contents]: failed to open stream: Invalid argument in C:\Program Files (x86)\VertrigoServ\www\938\core\classes\CodonCache.class.php on line 210

×
×
  • Create New...