Jump to content

Kairon

Members
  • Posts

    88
  • Joined

  • Last visited

Posts posted by Kairon

  1. In the schedules we can create income for each flight by creating a price per seat. My question is what can we do with this besides add a little realism to the flight? Compete against other VA's?

    Yes, on the VA Central for example.

  2. Test it ;)

    $flights = ACARSData::GetACARSData();
    
    if(!$flights) 
    $flights = array();
    
    $this->acarsflights = array();
    foreach($flights as $flight)
    {	
    if($flight->route == '')
    {
    $flight->route_details = array();
    }
    else
    {
    $flight->route_details = NavData::parseRoute($flight->route);
    }
    
    $c = (array) $flight; // Convert the object to an array
    
    $c['pilotid'] = PilotData::GetPilotCode($c['code'], $c['pilotid']);
    
    $totaldistance = round(SchedulesData::distanceBetweenPoints($flight->deplat, $flight->deplng, $flight->arrlat, $flight->arrlng));
    $percomplete = ABS(number_format(((($totaldistance - $flight->distremain) / $totaldistance) * 100), 2));
    
    if($percomplete <= '0'){ $percomplete = '100'; } else { $percomplete = $percomplete; }
    
    $c['percomplete'] = $percomplete;

  3. Does anyone know what this error may be?

    I had to migrate from hosting after login it appears:

    Warning: unserialize() expects parameter 1 to be string, object given in /home/europask/public_html/core/classes/SessionManager.class.php on line 76

    Line 76:

    return unserialize($_SESSION[$key]);

    Check Install:

    phpVMS Virtual Airline Administration Software
    Install Check 
    
    phpVMS Build Number: 2.1.934
    
    Checking PHP version
    [OK] PHP version is 5.2.17.x
    
    ASP Tags
    [OK] ASP-style tags are disabled
    
    Checking connectivity...
    [OK] Can contact outside servers
    
    Checking for SimpleXML module...
    [OK] SimpleXML module exists!
    
    OK,'No errors found!
    
    

    :huh: :huh:

  4. Installing the tables...

    Fatal error: Uncaught <blockquote><font face=arial size=2 color=000099><b>Last Error --</b> [<font color=000000><b>Access denied for user 'virtualf_flyvms'@'localhost' to database 'virtualf_vms' (1044)</b></font>]<br />[<font color=000000><b></b></font>]</font><p> </blockquote><hr noshade color=dddddd size=1> thrown in /home/virtualf/public_html/vmsbackend/core/classes/ezdb/ezdb_mysql.class.php on line 140

    Cheers guys.

    This error happens when the password, the user or host your database is wrong.

    The only solution is to review the data to access the database and make sure they are correct.

  5. It's not a file. It is actually located in the Admin Center. If you click on to expand the Pilots & Groups and click on Ranks, add a rank and place a price to pay each pilot for every hour they fly for that rank. Then you can choose how many hours until they reach the next rank. You can then up the pilot pay a little at a time for every rank they reach.

    Hello Jeff,

    Thanks for your reply, but it is not.

    It is set when each should receive for their rating PIREPS.

    This is really a bug that is happening.

    Anybody else got any answers?

  6. Hello,

    I'm having a problem with the payments of the pilots, when the pilot sends the PIREP, the pilotpay is always 0.00.

    I have a basic knowledge in php, could someone tell me where the file responsible for calculating the pilotpay?

    If you tell me what is the file, or how to fix this bug, I'll be grateful.

    :rolleyes:

  7. You can do this:

    Search this: AwardsData::AddAwardToPilot($this->post->pilotid, $this->post->awardid);

    Add this after in: admin/modules/PilotAdmin/PilotAdmin.php

    		# Send an email to the admin that a PIREP was submitted
    	$sub = "Add Award for you";
    	$message="Dear; {$pilot->firstname} {$pilot->lastname}, <p>"
    			."Contrulations! Add award for you...<p>";
    
    	$email = Config::Get('EMAIL_NEW_AWARD');
    	if(empty($email))
    	{
    		$email = $pilot->email;
    	}
    
                   Util::SendEmail($email, $sub, $message);
    

    Sorry for my bad english :huh:

    Thumbs up :)

    • Like 4
  8. Better late than never! :D

    To view the total distance of the flight the pilot add:

    $c['totaldistance'] = OperationsData::getAirportDistance($c['depicao'], $c['arricao']);

    This file in core / modules / ACARS.php

    To view when he flown add:

    $depapt = OperationsData::GetAirportInfo($c['depicao']);
    $arrapt = OperationsData::GetAirportInfo($c['arricao']);
    $c['distflown'] = round(SchedulesData::distanceBetweenPoints($c['lat'], $c['lng'], $depapt->lat, $depapt->lng));

    This is the core / modules / ACARS.php

    To use indicate the total miles use this:

    <%=flight.totaldistance%>

    To show how many miles the pilot flown use this:

    <%=flight.distflown%>

    On your tpl "acarsmap.tpl"

    Any questions just ask me, I'm an expert in editing acarsmap :D

    I am bad English ... :(

    Thumbs up on me! :)

    • Like 1
  9. Is to do this, but I find it hilarious.

    At least in my country it does not work like that, and flight times is not to be displayed as a prize, the pilot must do the procedures correctly.

    Buy a flight to later add the hours in flight times of the pilot is hilarious.

    I do not recommend friend. :lol:

  10. Is there a way to have same flight number for multiple routes? Use real world flight numbers and always use -1 -2 -3 so forth. AAL343 AAL343-1 so on..When using excel after done with airline have to go back and add the dashes or routes will get overwritten. Been doing this for months but curious if there is a work around.

    Yes!

    I'll give you a hint:

    You enter the system with a flight number and then another with AAL243 number, after add flight AAL243A then you edit the flight AAL243A for AAL243.

    it's easy:)

  11. Better late than never B) , see if it is:

    <h3>Roster</h3>
    <p>
    <table width="100%"> 	
    <tr bgcolor="#FF0000" align="center">
    <th height="30px" bgcolor="#FF0000"><font color="#FFFFFF">Callsign</font></th>
    <th height="30px" bgcolor="#FF0000"><font color="#FFFFFF">Name</font></th>
    <th height="30px" bgcolor="#FF0000"><font color="#FFFFFF">Total Flights</font></th>
    <th height="30px" bgcolor="#FF0000"><font color="#FFFFFF">Total Hours</font></th>
    <th height="30px" bgcolor="#FF0000"><font color="#FFFFFF">Rank</font></th>
    <th height="30px" bgcolor="#FF0000"><font color="#FFFFFF">Hub</font></th>
    </tr>
    <?php 
    $query="SELECT * FROM phpvms_pilots ORDER BY joindate DESC";
    $list=DB::get_results($query);
    foreach ($list as $pilot)
    {
       $callsign = PilotData::GetPilotCode($pilot->code, $pilot->pilotid);
    	echo '<tr bgcolor="#F5F5F5" align="center"><td height="25px">'.$callsign.'</td>
           <td height="25px">'.$pilot->firstname.' '.$pilot->lastname.'</td>
           <td height="25px">'.$pilot->totalflights.'</td>
           <td height="25px" >'.$pilot->totalhours.'</td>
           <td height="25px">'.$pilot->rank.'</td>
           <td height="25px" width="15%">'.$pilot->hub.'</td>
           </tr>';
    
    }
    echo '</table>'
    
    ?> 
    
    
    
    

×
×
  • Create New...