Jump to content

Kyle

Moderators
  • Posts

    2282
  • Joined

  • Last visited

Posts posted by Kyle

  1. Perfect, but have a website that has this system, found interesting,

    see, visit the link.

    http://vai.aero/inde...tration#myModal

    At the bottom of the site has a link ( Primeira Etapa ) green, in English the name means FIRST STEP.

    Very good, that programmed them using our system Phpvms and by the way did a great job.

    This site also has the same system, just click on the link below, the site has a version in English.

    http://www.tamvirtua...regulamentation

    I may have to search for IVAO as well. I been looking for it, but no joy to find one like VATSIM. :(

  2. I like to collect TV Shows mostly, I have House, Prison Break, Criminal Minds, CSI Miami, Family Guy, Cleveland Show. I love them to have in as DVD's so I can ever watch it again in the future. For games on X-Box 360, I only play Grand Theft Auto, Call of Duty, Battlefield, Train Simulator 2013. I'm mostly into Simulator Games in general after buying Flight Simulator 2002 and playing for a while. Other things is fixing computers, coding in different languages such as Perl, Ruby and Java. Also not to forget importantly is school and work. :D

  3. I'm not sure if that's unusual for you, but I'm guessing, something with the aircraft on the PIREP report may have been entered the hours too much or rejected PIREPs. I have this query set to count aircraft with only approved flights..

    public static function countHours($id)
    {
     $query = "SELECT SUM(flighttime) as time FROM ".TABLE_PREFIX."pireps WHERE aircraft = {$id} AND accepted = 1";
     $result = DB::get_row($query);
     return $result->time;
    }
    

  4. Kyle (Vansers)

    Thankyou, you know the way I can now get the IVAO?

    stay quiet before doing so I want to make sure if they can release the tool.

    IVAO doesn't have that similar functionally as I know so far.

    So, I guess it's just only for VATSIM.

  5. It can be simple... I done mine when I used to work for SCXVA last year...

    But be careful and be warned, VATSIM Admins would ban your website from their servers if you query too much such as like quering your list of pilots with the VATSIM ID every hour will get you banned. They suggest to run though your pilots every 48 hours.

    This is a start for you here...

    REMEMBER: I'M NOT RESPONSIBLE FOR YOU TO BE BANNED FROM VATSIM SERVERS because you didn't read the warning!

    <?php
    //Ref = http://forums.vatsim.net/viewtopic.php?f=70&t=40152
    //As posted in the forums, don't run this php file every 15 mins, or you could result a ban from it.
    //They suggest to run it at least 48 hours max.
    //Query the VATSIM ID
    $id = '123456';
    //Get the content of a XML Response
    $response = file_get_contents('https://cert.vatsim.net/cert/vatsimnet/idstatus.php?cid='.$id.'');
    //Load the XML String, use simplexml
    $xml = simplexml_load_string($response);
    //Echo out the information.
    echo $xml->user;
    ?>
    

  6. Hello Kyle,

    Can you please check the problem i have on this module? There is a problem with the Total Hours Count on the table for the SX-GRA and SX-GRB. I am using version 1.0 but i can't find anywhere the version 1.1... Thanks in advance!

    I don't know where I lost the version 1.1 after something happened to my Github Account before that time. I'll try to look for it in my old hard drive if I still have the old Operating Systems..

    However. you can fix this by rounding off the numbers like this...

    <?php echo round(vFleetTrackData::countHours($aircraft->id), 2);?>
    

    Then it would return an example number such as 234.53, not long numbers.

    Cheers! ;)

  7. now this just looks really bad in your part!!! you dont only just point it out that we shouldnt do it...you go on and on and on about how we should be looking for staff somewhere else... oooooohhh how the tables have turned!

    I'm not sure what you are getting on about this...it doesn't really have to do anything to what Sava said before about looking for staff somewhere else in a different post. Yet, other virtual airlines does that here as well, not often at all. What I think what Sava was looking for someone here in this community who has been long standing, rather than asking other flight sim forums. I think I seen a few long standing people here in this community.

    You may want to re-read Sava's original post. ;)

    Cheers!

    • Like 1
  8. Did you change anything in the database tables such as table colum changes?

    Although, something for you to try. Back up your database first and run this query.... and see what you got.

    ALTER TABLE `phpvms_pilots`
     ADD CONSTRAINT `phpvms_pilots_ibfk_1` FOREIGN KEY (`code`) REFERENCES `phpvms_airlines` (`code`) ON UPDATE CASCADE;
    

  9. I use easy php and I had the same problem with the newer version but the older version was working just fine. I think it has something to do with the php version and mySQL. Try using the older version of "ëasy php".

    That was the issue. phpVMS doesn't work at specfic versions of php and MySQL.

  10. Remove the <div id="depairport">. It usally comes an issue when I skin for a few VA's.... this code should work, as well, you should change the arrival airport since it does the same.

    <select id="depicao" name="depicao">
    <option value="">Select a departure airport</option>
    <?php
    foreach($allairports as $airport)
    {
    $sel = ($_POST['depicao'] == $airport->icao || $bid->depicao == $airport->icao)?'selected':'';
    
    echo '<option value="'.$airport->icao.'" '.$sel.'>'.$airport->icao . ' - '.$airport->name .'</option>';
    }
    ?>
    </select>
    

    <select id="arricao" name="arricao">
    <option value="">Select an arrival airport</option>
    <?php
    foreach($allairports as $airport)
    {
    $sel = ($_POST['arricao'] == $airport->icao || $bid->arricao == $airport->icao)?'selected':'';
    
    echo '<option value="'.$airport->icao.'" '.$sel.'>'.$airport->icao . ' - '.$airport->name .'</option>';
    }
    ?>
    </select>
    

  11. No - Its my own windows test server. I want to install and get it working and understand it before going live with it.

    David.

    Oh yeah, Windows Servers can be very ecchky with phpVMS. Did that for one VA, and it was an MySQL Issue, spent all night pulling my hair on why it wouldn't work. Switched back to our CentOS.

    What errors are you getting on the message as WelkaT is saying?

  12. Somehow to the error in the picture seems to be preventing phpVMS to install.

    The message "Access Denied for user "macan"" is meaning that, you typed in the database name, and the user does not have the permissions to access that database. You can do this by going to your hosting control panel, look for the databases, then select the database your installing phpVMS and grant the user "macan" full access to the database.

    And that error shouldn't pop up anymore...

    Cheers!

  13. Hey Everyone,

    Since I want to start making add-ons modules and my services again, the only thing that is keeping behind from it is a few installations errors on my dedicated server.

    PHP Version: 5.4.9

    Problem: When I opened the installer, I got a bunch of strict standard errors, just like that -> http://forum.phpvms....age__hl__static

    Did what it was suggested, but still have two more errors...

    Warning: Creating default object from empty value in /home/kyle/public_html/dev/core/classes/Vars.class.php on line 74
    

    Fatal error: Cannot re-assign auto-global variable _FILES in /home/kyle/public_html/dev/core/common/PilotData.class.php on line 436
    

    Any one have ideas what can be causing the issue?

    Cheers!

×
×
  • Create New...