Jump to content

Junior

Members
  • Posts

    87
  • Joined

  • Last visited

Everything posted by Junior

  1. Sorry for my bad english btw Hi guys! Is there any module or code I can use to recalculate a route's flight time based in the last 20 flights? I mean, get the average flight the pilots are doing in that route? ty
  2. Tom, I found the error (but unfortunatel idk how to fix). I get this error everytime I reupload the app.config file. I just changed the Config::Set('ACARS_LIVE_TIME', 720); to 10.
  3. Hi, after set Config::Set('ACARS_LIVE_TIME', 2); in my app.config now im having issues with accents in every page of my website (local). I already set my local.config and app.config to # Page encoding options Config::Set('PAGE_ENCODING', 'UTF-8'); Config::Set('DB_CHARSET_NAME', 'utf8'); I already set the layout.tpl <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <title><?php echo $page_title; ?></title> I already set all my mysql tables to utf-8_bin What else can I do ? ty
  4. its working like a CHARM, great module, thank you a lot!!
  5. Hi, I was using VAFs before.. so I add "transfered hours" to my pilots but they still in the 1st rank.. so how can I add the hours manually? Is there any way I can fix their ranks? Thanks!
  6. cool design mate, can you share your flightboard? ty
  7. thank you, now the table is in the right place.. you`re the man! but I still have a little problem.. there are no pilots (my VA is running trhough a LAN btw) and I have no "Looks Like our Pilots are taking a rest! There is no current flights online." message. Also I still have a little bug under "Ultimos Voos Realizados" tab.. Also something is wrong.. because the flightboard is with a 30 minutes delay I mean.. I set parking breaks, file the pirep, exit the sim and the acars and my info remains as "In Flight" for 30 minutes...
  8. template or skin folder m8?
  9. hi! awesome template mate.. but im having a problem.. im running the site offlime atm and I just cant fix the flightboard.. can you give me a hand please? Thank you a lot!! http://forum.phpvms.net/topic/20807-flight-board-bug/
  10. Please, someone can help? I can pay....
  11. tried already.. when I remove a </div> messes everything edit: now I can see only 1 flight there but still in the wrong place and still 30min outdated
  12. Hi mates, thank you for the amazing support! I`m experiencing a problem in my FlightBoard. Im running the site offline, but everything is ok in my comp/setup. But idk what else I can do to fix the problem... I cant see any flight on my flightboard also the "there are no flights" message also disappeared. Can you give me a hand please? Thank you a lot!! My frontpage_main: <style> #innerwrapper{ background:none; border:none; padding:0px; } </style> <img style="border:1px solid lightgrey;"src="<?php echo SITE_URL;?>/lib/skins/Zumeweb.Pacific.V1/images/default/web_banner.png"/> <div class="row-fluid"> <div class="span9"> <h3><center>UM NOVO CONCEITO!</h3> <div class="box"> <p>A Virtual Pilots Alliance é uma Virtual Airline focada em tudo aquilo que os simuladores de vôo podem proporcionar. Não prezamos apenas a diversão mas também uma certa seriedade no que diz respeito a simulação aérea. Contamos com rotas e frotas diversas, servidor de TeamSpeak 3, Grupo no Facebook, Fórum e muito mais! Faça parte desse grande grupo de entusiastas, pilotos reais, pilotos virtuais, colegas e amigos afinal de contas, somos todos apaixonados por aviação!.</p> </div> </div> <div class="span3"> <h3>Navigation</h3><div class="box"><ul class="nav nav-list"> <li class="active"><a href="c:\wamp\www\va\index.php\index.php/"><i class="icon-home icon-white"></i> Home</a></li> <li><a href="c:\wamp\www\va\index.php\"><i class="icon-home"></i> VPA Site</a></li> <li><a href="c:\wamp\www\va\index.php\schedules"><i class="icon-plane"></i> Agendar Vôo</a></li> <li><a href="c:\wamp\www\va\index.php\vFleetTracker"><i class="icon-plane"></i> Rastreio de Frota</a></li> <li><a href="c:\wamp\www\va\index.php\airports"><i class="icon-road"></i> Aeroportos</a></li> <li><a href="c:\wamp\www\va\index.php\timetable"><i class="icon-time"></i> Horários</a></li> <li><a href="c:\wamp\www\va\index.php\pireps\mine"><i class="icon-plane"></i> Minhas PIREPS</a></li> <li><a href="c:\wamp\www\va\index.php\pireps\routesmap"><i class="icon-plane"></i> Meu Mapa de Vôos</a></li> <li><a href="c:\wamp\www\va\index.php\finances"><i class="icon-signal"></i> Finanças da VA</a></li> <li><a href="https://www.facebook.com/groups/vvirtual/"><i class="icon-plane"></i> Grupo no FaceBook</a></li> </ul> </div> <h3><center><strong>Dados </strong>da VPA</h3> <div class="box"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><b><span class="badge badge-info"><?php echo StatsData::PilotCount(); ?></div></b></td> <td>Pilotos</td> </tr> <tr> <td><b><span class="badge badge-info"><?php echo StatsData::TotalAircraftInFleet(); ?></div></b></td> <td>Aeronaves</td> </tr> <tr> <td><b><span class="badge badge-info"><?php echo StatsData::TotalSchedules(); ?></div></b></td> <td>Vôos</td> </tr> <tr> <td><b><span class="badge badge-info"><?php echo StatsData::TotalFlights(); ?></div></b></td> <td>Vôos Efetuados</td> </tr> <tr> <td><b><span class="badge badge-info"><?php echo StatsData::TotalFlightsToday(); ?></div></b></td> <td>Vôos de Hoje</td> </tr> <tr> <td><b><span class="badge badge-info"><?php echo round(StatsData::TotalFuelBurned(), 0); ?></div></b></td> <td>Combustível Queimado</td> </tr> <tr> <td><b><span class="badge badge-info"><?php echo StatsData::TotalHours(); ?></div></b></td> <td>Horas Voadas</td> </tr> <tr> <td><b><span class="badge badge-info"><?php echo StatsData::TotalMilesFlown(); ?></div></b></td> <td>Milhas Voadas</td> </tr> </table> </div> </div> </div> <div class="row-fluid"> <div class="span9"><h3>Vôos em Andamento</h3><div class="box"> <?php $q = "SELECT * FROM phpvms_acarsdata"; $l = DB::get_results($q); if($l != null){ ?> <table border="0" width="100%" cellspacing="4" class="acarsmap"> <thead> <tr> <td><b>Piloto</b></td> <td><b>Nº do Vôo</b></td> <td><b>Origem</b></td> <td><b>Saída</b></td> <td><b>Situação</b></td> <td><b>Altitude</b></td> <td><b>Velocidade</b></td> <td><b>Tempo Restante</b></td> </tr> </thead> <tbody id="pilotlist"> <? foreach($l as $fl) { $lu = strtotime($fl->lastupdate); $min_u = strtotime(date("Y-m-d") - 900); if($lu > $min_u) { echo("<tr>"); echo("<td>".$fl->pilotname."</td>"); echo("<td>".$fl->flightnum."</td>"); echo("<td>".$fl->depicao."</td>"); echo("<td>".$fl->arricao."</td>"); echo("<td>".$fl->phasedetail."</td>"); echo("<td>".$fl->alt." feet</td>"); echo("<td>".$fl->gs." knots</td>"); echo("<td>".$fl->timeremaining."</td>"); echo("</tr>"); } } }else{ ?> <div class="alert alert-danger"> <strong>Looks Like our Pilots are taking a rest!</strong> There is no current flights online. </div> <?php } ?> </tbody> </table> </div> </div> <div class="span3"><h3>Últimas Novidades</h3><div class="box"></div></div> </div> <div class="row-fluid"> <div class="span12"> <div class="box"> <table width="100%" border="0" bordercolor="#FFFFFF"> <h3><center>Últimos vôos Realizados (Horários em Zulu)</h3> </div> <?php $count = 5; $pireps = PIREPData::getRecentReportsByCount($count); ?> <style type="text/css"> table th { text-align: center; color:black; font-weight:bold;} table td { text-align: center; } </style> <thead> <tr> <style type="text/css"> { text-align: center; } </style> <th>Nº do Vôo</th> <th>Piloto</th> <th>Origem</th> <th>Destino</th> <th>Duração do Vôo</th> <th>Aeronave</th> <th>Matrícula</th> <th>Data do Vôo</th> <th>Situação</th> </tr> </font> <tbody> <?php if(count($pireps) > 0) { foreach ($pireps as $pirep) { { $pilotinfo = PilotData::getPilotData($pirep->pilotid); $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); if($pirep->accepted == '0') $status = 'REJECTED'; if($pirep->accepted == '1') $status = 'ACCEPTED'; else $status = 'PENDING'; /*$aircraft = OperationsData::getAircraftInfo($pirep->aircraft);*/ } ?> <tr> <td class="small"><a href="<?php echo SITE_URL?>/index.php/pireps/view/<?php echo '' . $pirep->pirepid . ''; ?>"><?php echo $pirep->code.$pirep->flightnum; ?></a></td> <td class="small"><a href="<?php echo SITE_URL?>/index.php/profile/view/<?php echo '' . $pilotinfo->pilotid . ''; ?>"><?php echo $pilotinfo->firstname.' '.$pilotinfo->lastname; ?></td> <td class="small"><?php echo '<a href=" '.SITE_URL.'/index.php/airports/get_airport?icao='.$pirep->depicao.'">'.$pirep->depicao.'</a>';?></td> <td class="small"><?php echo '<a href=" '.SITE_URL.'/index.php/airports/get_airport?icao='.$pirep->arricao.'">'.$pirep->arricao.'</a>';?></td> <td class="small"><?php echo $pirep->flighttime; ?> horas</td> <td class="small"><a href="<?php echo SITE_URL?>/index.php/vFleetTracker/view/<?php echo '' . $pirep->registration . ''; ?>"><?php echo $pirep->aircraft; ?></a></td> <td class="small"><a href="<?php echo SITE_URL?>/index.php/vFleetTracker/view/<?php echo '' . $pirep->registration . ''; ?>"><?php echo $pirep->registration; ?></a></td> <td class="small"><?php echo date(DATE_FORMAT, $pirep->submitdate); ?></td> <td class="small"><?php if($pirep->accepted == PIREP_ACCEPTED) { if($pirep->submitdate+($pirep->flighttime*60*60)>time()) echo '<font color="blue">Em Vôo</font>'; // as long as a single flight duration has not elapsed, show it as in flight else echo '<font color="blue">Pousou</font>'; //more than a flight duration has elapsed, show it as landed } elseif($pirep->accepted == PIREP_REJECTED) echo '<font color="red">Rejected</font>'; elseif($pirep->accepted == PIREP_PENDING) echo '<font color="orange">Aguardando Informações</font>'; elseif($pirep->accepted == PIREP_INPROGRESS) echo '<font color="blue">In Flight</font>'; ?> <?php if($pirep->accepted == PIREP_ACCEPTED && !($pirep->submitdate+($pirep->flighttime*60*60)>time())): ?><font color="blue">às <?php echo date('H:i', $pirep->submitdate+($pirep->flighttime*60*60));?>z</font><?php endif; ?> <?php $schedule = SchedulesData::getScheduleByFlight($pirep->code,$pirep->flightnum); $fltime = explode(".", $schedule->flighttime); $minstar = substr($fltime[1],0,1); $minstarmin = substr($fltime[1],1,2); $flmin = $minstar * 10; $flhou = $fltime[0] * 60; $flminu = $flhou + $flmin + $minstarmin; $actfltime = explode(".", $pirep->flighttime); $actminstar = substr($actfltime[1],0,1); $actminstarmin = substr($actfltime[1],1,2); $actflmin = $actminstar * 10; $actflhou = $actfltime[0] * 60; $actflminu = $actflhou + $actflmin + $actminstarmin; if (!($pirep->submitdate+($pirep->flighttime*60*60)>time())) { // new line if(($flminu - 20) > $actflminu) { echo '<font color="blue">and Was Early</font>'; } elseif (($flminu + 15) < $actflminu) { echo '<font color="red">ATRASADO</font>'; } else { echo '<font color="green">SEM ATRASO</font>'; } } // new line ?> </li> </td> </tr> <?php } } else { echo '<tr><td>There are no recent flights!</td></tr>'; } ?> </tbody> </div> </table> <br /> <p><?php MainController::Run('FrontBids', 'RecentFrontPage', 5); ?><font color="yellow"></font></p> </div>
  13. Please can an Admin close/delete this topic, I found the problem.. it was not the tracking, im going to create other post with the correct title, thanks!
  14. Update: The problem is the tracking! After 10 hours rying to understand what is wrong I noticed that the "Latest Flights and the "Upcoming Flights" are accurate. But the "Current Flights" and the Tracking information (under acars map) is not working AT ALL. Someone can help me please? Thank you a lot
  15. thank you but something is really weird. I have 3 flights screens on my site 1 - Actual Flights 2 - Last 5 Flights 3 - Acars MAP. But all of them shows different informations. My friend did a flight 2 hours ago (now he is offline) and the screens atm are: 1 - Actual Flights: (Name) Felipe Vieira (Flight) VPX0018(From) SBSM(To) SBPA(Status) Taxiing to Gate(Alt) 0 feet (Speed)2 knots (Time Remaining)0:30 minutes 2 - Last 5 Flights: Landed On Time 3 - Acars MAP: No Flights Found. Any ideas? ty EDIT: now there is 1 pilot flying. The acars map shows everything ok but the Actual Flights shows nothing. My "Actual Flights" board: <div class="row-fluid"> <div class="span9"><h3>Vôos Atuais</h3><div class="box"> <?php $q = "SELECT * FROM phpvms_acarsdata"; $l = DB::get_results($q); if($l != null){ ?> <table border="0" width="100%" cellspacing="4" class="acarsmap"> <thead> <tr> <td><b>Piloto</b></td> <td><b>Nº do Vôo</b></td> <td><b>Saída</b></td> <td><b>Chegada</b></td> <td><b>Status</b></td> <td><b>Altitude</b></td> <td><b>Velocidade</b></td> <td><b>Tempo Restante</b></td> </tr> </thead> <tbody id="pilotlist"> <?
  16. ty for the module! I have a problem.. the module is installed ok, the settings are configured but I still have to approve de pireps.. any tips? ty
  17. im getting an error installing this module. The installation was ok, the sql was loaded without problem but im getting 404... already triple checked and the files/folder are in the right place.. any tips? ty
  18. getting an error, Warning: Invalid argument supplied for foreach() in /home/voovirtu/public_html/va/lib/skins/Zumeweb.Pacific.V1/frontpage_main.tpl on line 299
  19. COOL!!! thank you a lot for this mate +1
  20. I set to 1 and I still have the problem... there are no pilots online and the acars are showing 2 flights
  21. now the acars is cleared. im going to test ASAP and post the results here... but seems fixed, thank you a lot for this!
  22. Ty for the answer but its not that... there are no pending pireps, the only 2 pireps sent (by me and a friend) are approved. Also, I dont think is a scenery bug because i used a scenery and he dont and we're locked in the same position (but the flights are completed and approved). ALSO, another friend tried to fly but had an FS Crash in the middle of the flight (2 hours ago) and he still in the same crash position now. Seems a bug where Tracking are not reseting the disconnected flights.
×
×
  • Create New...