Jump to content

CN@ndo

Members
  • Posts

    96
  • Joined

  • Last visited

Everything posted by CN@ndo

  1. Enter the site and send to Mike Salter He developed the template and the more he sent me this with the same problem. We are the Brazil of the template that I use is the same and I'm changing.
  2. Jeff, Changed over the problem is not there. This script will insert the logo disappears.
  3. I did, But it did not work.
  4. I have a problem, My site has a system of rotating pictures, when I insert the script <? php / * This is required, so the output phpVMS Can Necessary libraries it needs * / echo $ page_htmlhead; ?> My Photos rotating does not work. Can someone help me? If I remove the script, the message error (No route passed)
  5. What is your website? Post here the script that you made ​​the change, So I can see and help you.
  6. I'm using firefox. When you add the script in the page layout my logo disappears. Add this before the </head> tag <?php /* This is required, so phpVMS can output the necessary libraries it needs */ echo $page_htmlhead; ?>
  7. Thank you Gabriel, I'm wainting Some predictions for post? ************************************************************** Obrigado Gabriel, Estou aguardando Alguma previsão de postar?
  8. Hello Tks, Pefect, more now rotating the photos does not work. why?
  9. sorry have posted in the wrong place Ok I will take the test and post the result here.
  10. Hello friends, I'm having trouble booking my routes, as researched various topics in the forum helped me any. Please help me I have a new template is www.voeazulvirtual.com/ my skin When I access my page and refer profile_main.tpl my routes, book by clicking the error message appears. PASSED ON ROUTE ". My Acarsmap.tpl does not work, can someone help me? My code is the layout.tpl. <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"> <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type"> <meta name="description" content="Template designed by Smartik" /> <meta name="keywords" content="New, Line, Company, Smartik" /> <meta name="author" content="Smartik" /> <!--========= STYLES =========--> <link rel="stylesheet" href="<?php echo SITE_URL?>/lib/skins/2012/css/reset.css"> <link rel="stylesheet" href="<?php echo SITE_URL?>/lib/skins/2012/css/grid_12.css"> <link rel="stylesheet" href="<?php echo SITE_URL?>/lib/skins/2012/css/skitter.styles.css" /> <link rel="stylesheet" href="<?php echo SITE_URL?>/lib/skins/2012/css/style.css"> <link rel="stylesheet" href="<?php echo SITE_URL?>/lib/skins/2012/css/colorbox.css"> <link rel="stylesheet" href="<?php echo SITE_URL?>/lib/skins/2012/css/config.css"> <link type="text/css" href="<?php echo SITE_URL?>/lib/css/phpvms.css" rel="stylesheet" /> <!--============ JQUERY =============--> <script type="text/javascript" src="http://www.voeflexvirtual.com/lib/js/phpvms.js"></script> <script src="<?php echo SITE_URL?>/lib/skins/2012/js/jquery.js" type="text/javascript"></script> <script src="<?php echo SITE_URL?>/lib/skins/2012/js/jquery.colorbox.js" type="text/javascript"></script> <script src="<?php echo SITE_URL?>/lib/skins/2012/js/jquery.animate-colors-min.js" type="text/javascript"></script> <script src="<?php echo SITE_URL?>/lib/skins/2012/js/jquery.easing.1.3.js" type="text/javascript"></script> <script src="<?php echo SITE_URL?>/lib/skins/2012/js/jquery.skitter.js" type="text/javascript"></script> <script src="<?php echo SITE_URL?>/lib/skins/2012/js/cufon-yui.js" type="text/javascript"></script> <script src="<?php echo SITE_URL?>/lib/skins/2012/js/qlassik.cufonfonts.js" type="text/javascript"></script> <script src="<?php echo SITE_URL?>/lib/skins/2012/js/scripts_call_head.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function(){ $('.box_skitter_slider').skitter({dots: true}); }); </script> <!--=== ENABLE HTML5 TAGS FOR IE ===--> <!--[if IE]> <script src="<?php echo SITE_URL?>/lib/skins/2012/js/html5.js"></script> <![endif]--> <title>Azul Linhas Aerea Virtuais - Tudo Novo Tudo Azul</title> <meta charset="UTF-8"></head> <body> <header class="main_header"> <section class="container"> <div class="top"> <a class="logo" href="<?php echo SITE_URL?>"></a> <nav id="horizontal"> <ul id="nav"> <li><a href="<?php echo SITE_URL?>">Home<span></span></a> </li> <li><a href="#">Empresa<span></span></a> <ul> <li><a href="<?php echo SITE_URL?>/index.php/pages/staff">Administradores</a></li> <li><a href="<?php echo SITE_URL?>/index.php/finances/viewreport">Estatisticas</a></li> <li><a href="<?php echo SITE_URL?>/index.php/pages/historia">Historia</a></li> <li><a href="<?php echo SITE_URL?>/index.php/pages/parceiros">Parceiros AZULv </a></li> <li><a href="<?php echo SITE_URL?>/index.php/contact">Fale Conosco</a></li> </ul> </li> <li><a href="#">Membros<span></span></a> <ul> <li><a href="<?php echo SITE_URL?>/index.php/pilots">Time de Aguias </a></li> <li><a href="<?php echo SITE_URL?>/index.php/pages/regulamento">Regulamento</a></li> <li><a href="<?php echo SITE_URL?>/index.php/pages/carreira">Plano de Carreira</a></li> </ul> </li> <li><a href="#">Operacional<span></span></a> <ul> <li><a href="<?php echo SITE_URL?>/index.php/TouchdownStats">Ultimos Vôos</a></li> <li><a href="<?php echo SITE_URL?>/index.php/acars.php" target="blank">Tracking</a></li> </ul> </li> <li><a href="<?php echo SITE_URL?>/index.php/Screenshots">Screenshorts</a><a href="<?php echo SITE_URL?>/index.php/contact"><span></span></a></li> <?php Template::Show('core_navigation.tpl'); ?> <li></li> </ul> </nav> <!-- End of menu --> <!-- Sidearea Starts --> <div id="sidearea"> </div> </section> <div class="border1"></div> </header> <section id="wrap"> <div class="top_bg"></div> <section class="container layout"> <div class="grid_12 placeslider"> <div class="box_skitter box_skitter_slider"> <ul> <li><img src="<?php echo SITE_URL?>/lib/skins/2012/images/assets/slide1.jpg" class="block" alt="" /></li> <li><img src="<?php echo SITE_URL?>/lib/skins/2012/images/assets/slide2.jpg" class="cube" alt="" /></li> <li><img src="<?php echo SITE_URL?>/lib/skins/2012/images/assets/slide3.jpg" class="default" alt="" /></li> <li><img src="<?php echo SITE_URL?>/lib/skins/2012/images/assets/slide4.jpg" class="directionBottom" alt="" /></li> <li><img src="<?php echo SITE_URL?>/lib/skins/2012/images/assets/slide5.jpg" class="fadeFour" alt="" /></li> <li><img src="<?php echo SITE_URL?>/lib/skins/2012/images/assets/slide6.jpg" class="cubeJelly" alt="" /></li> </ul> </div> <div class="clear"></div> </div> <?php echo $page_content; ?> <footer class="main_footer"> <section class="container"> <div class="grid_3"> <h3 class="ft_title">IVAO</h3> <ul class="vnav"> <li><a href="http://ivao.co.uk/" target="blank">IVAO UK</a></li> <li><a href="http://br.ivao.aero" target="blank">IVAO BR</a></li> <li><a href="http://us.ivao.aero/" target="blank">IVAO USA</a></li> </ul> </div> <div class="grid_3"> <h3 class="ft_title">Mapa do Site</h3> <ul class="vnav"><li><a href="<?php echo SITE_URL?>/index.php/staff">Administradores</a></li> <li><a href="<?php echo SITE_URL?>/index.php/pages/regulamento">Regulamento</a></li> <li><a href="<?php echo SITE_URL?>/index.php/pilots">Tripulantes</a></li> </ul> </div> <div class="grid_6"> <h3 class="ft_title">Social Azul Virtual </h3> <p>Acesse nossas redes sociais e saiba mais um pouco sobre a Azul Virtual..</p> <div class="social"> <a href="http://www.twitter.com/britishvirtual" class="twitter" target="blank"></a> <a href="#" class="facebook"></a> <a href="#" class="flickr"></a> </div> </div> </section> <section class="mini_footer"> <div class="container"> </nav> <p> </p> </div> </section> <div class="border2"></div> </footer> <!-- End .main_footer --> <!-- JAVASCRIPTS --> <script src="<?php echo SITE_URL?>/lib/skins/2012/js/scripts.js" type="text/javascript"></script> </body> </html> Help-me please.
  11. Hello I am posting some files to develop a system of approving pireps with automatic scoring system of points and penalties of the pilot during flight. Whoever wants to help develop the system download the files, in case I'm using only the ATR and EJ-195. File to Downlods
  12. Just seeing your CVC to see the problem, I also recentimente had problems sending the file import.php my cvc. Post it here we can see if there is any fault.
  13. Problem is I believe not ,because it was not work the other routes, you moved the original TPL? Which airport is the route you have registered Correctly, if it does not import the phpvms, enter your database and register for this route table phpvms_shedules.sql, Take the test and tell if the problem occurs so we can help.
  14. Please help me. Layou am changing the badge of the pilot, but the data are not showing up so I can make adjustments, can someone help me? My PilotData.Class.php public function generateSignature($pilotid) { $pilot = self::getPilotData($pilotid); $pilotcode = self::getPilotCode($pilot->code, $pilot->pilotid); if(Config::Get('TRANSFER_HOURS_IN_RANKS') === true) { $totalhours = $pilot->totalhours + $pilot->transferhours; } else { $totalhours = $pilot->totalhours; } # Configure what we want to show on each line $output = array(); $output[] = $pilotcode.' '. $pilot->firstname.' '.$pilot->lastname; $output[] = $pilot->rank.', '.$pilot->hub; $output[] = 'Total Flights: ' . $pilot->totalflights; $output[] = 'Total Hours: ' . $totalhours; if(Config::Get('SIGNATURE_SHOW_EARNINGS') == true) { $output[] = 'Total Earnings: ' . $pilot->totalpay; } # Load up our image # Get the background image the pilot selected if(empty($pilot->bgimage)) $bgimage = SITE_ROOT.'/lib/signatures/background/background.png'; else $bgimage = SITE_ROOT.'/lib/signatures/background/'.$pilot->bgimage; if(!file_exists($bgimage)) { # Doesn't exist so use the default $bgimage = SITE_ROOT.'/lib/signatures/background/background.png'; if(!file_exists($bgimage)) { return false; } } $img = @imagecreatefrompng($bgimage); if(!$img) { $img = imagecreatetruecolor(250, 350); } $height = imagesy($img); $width = imagesx($img); $txtcolor = str_replace('#FFFFFF', '', Config::Get('SIGNATURE_TEXT_COLOR')); $color = sscanf($txtcolor, '%2x%2x%2x'); $textcolor = imagecolorallocate($img, $color[0], $color[1], $color[2]); $font = 3; // Set the font-size $xoffset = Config::Get('SIGNATURE_X_OFFSET'); # How many pixels, from left, to start $yoffset = Config::Get('SIGNATURE_Y_OFFSET'); # How many pixels, from top, to start $font = Config::Get('SIGNATURE_FONT_PATH'); $font_size = Config::Get('SIGNATURE_FONT_SIZE'); if(function_exists('imageantialias')) { imageantialias($img, true); } Translation Nome = Name Matricula = Pilot ID Cargo = Rank My link of the Badge View now At the moment there appears no information
  15. Hello friend Anyone know where I can download the module Discounts To Subtract From Pilot Salary, the link with the topic: http://forum.phpvms..../page__p__28736 Not working, anyone can post? thank you
  16. When I search for airport example: LPPT to SBGR Not only shows the route, the system shows all the routes of VA. How can I solve? I added the script in my local.config.php Config:: Set ('JUMPSEAT_COST', '.25'); When I realschedulelite_index.tpl page does not appear in the cash value of the transfer. You were transfered to: (Campinas Airport) Ticket cost: $ There appears the cash value and also the airport does not appear that the system will change. why?
  17. IberworldVA Yes I scored, over the error continues. WHAT can be when I export the current routes and care work, care more when the new does not work.
  18. I did this, See photo. Erro to import. DO NOT REFRESH OR STOP THIS PAGE Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /home/voeazulv/public_html/acars/admin/modules/Import/Import.php on line 90 Airline with code AZU;4090;SBCT;SBKP;PNG UW47 RDE DCT CGO DCT;PR-AZC;FL290;188 does not exist! Skipping... Airline with code AZU;4091;SBVT;SBKP;VTR UW50 USABA CPN;PR-AZC;FL280;416 does not exist! Skipping... More still showing the above error.
  19. Friends I'm changing the reporting flight information online, I'm trying to put a picture in the background, plus I'm not getting to do alone. I want to make the information with the same fund the work I did on the front page,. Can someone help me? This is the script I need to put the fund to appear on Live Map ?> <script type="text/html" id="acars_map_row"> <tr class="<%=flight.trclass%>"> <td><a href="<?php echo url('/profile/view');?>/<%=flight.pilotid%>"><%=flight.pilotname%></a></td> <td><%=flight.flightnum%></td> <td><%=flight.depicao%></td> <td><%=flight.arricao%></td> <td><%=flight.phasedetail%></td> <td><%=flight.alt%></td> <td><%=flight.gs%></td> <td><div class="progress-container"> <div style="width: <%=flight.percomplete%>%"><%=flight.percomplete%>%</div> </div> </td> </tr> </script> My background Link http://www.voeazulvi...mages/board.png That's the picture of the work done and needs to be done on my map.
  20. friends I can not import my routes, Can someone help me? Error Message DO NOT REFRESH OR STOP THIS PAGE Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /home/voeazulv/public_html/acars/admin/modules/Import/Import.php on line 90 Airline with code AZU;4090;SBCT;SBKP;PNG UW47 RDE DCT CGO DCT;PR-AZC;FL290;188 does not exist! Skipping... Airline with code AZU;4091;SBVT;SBKP;VTR UW50 USABA CPN;PR-AZC;FL280;416 does not exist! Skipping...
  21. I installed KSACARS, I booked a route on the site, when I click the "Bid Filght Get Info" does not meet my flight plan. What is the problem?
  22. My Script <?php /** * phpVMS - Virtual Airline Administration Software * Copyright (c) 2008 Nabeel Shahzad * For more information, visit www.phpvms.net * Forums: http://www.phpvms.net/forum * Documentation: http://www.phpvms.net/docs * * phpVMS is licenced under the following license: * Creative Commons Attribution Non-commercial Share Alike (by-nc-sa) * View license.txt in the root, or visit http://creativecommons.org/licenses/by-nc-sa/3.0/ * * @author Nabeel Shahzad * @copyright Copyright (c) 2008, Nabeel Shahzad * @link http://www.phpvms.net * @license http://creativecommons.org/licenses/by-nc-sa/3.0/ */ class Import extends CodonModule { function HTMLHead() { switch($this->controller->function) { case '': default: case 'processimport': $this->set('sidebar', 'sidebar_import.tpl'); break; } } public function index() { $this->render('import_form.tpl'); } public function export() { $this->render('export_form.tpl'); } public function processexport() { $export=''; $all_schedules = SchedulesData::GetSchedules('', false); if(!$all_schedules) { echo 'No schedules found!'; return; } header('Content-Type: text/plain'); header('Content-Disposition: attachment; filename="schedules.csv"'); $fp = fopen('php://output', 'w'); $line=file_get_contents(SITE_ROOT.'/admin/lib/template.csv'); fputcsv($fp, explode(',', $line)); foreach($all_schedules as $s) { $line ="{$s->code},{$s->flightnum},{$s->depicao},{$s->arricao}," ."{$s->route},{$s->registration},{$s->flightlevel},{$s->distance}," ."{$s->deptime}, {$s->arrtime}, {$s->flighttime}, {$s->notes}, " ."{$s->price}, {$s->flighttype}, {$s->daysofweek}, {$s->enabled}"; fputcsv($fp, explode(',', $line)); } fclose($fp); } public function processimport() { echo '<h3>Processing Import</h3>'; if(!file_exists($_FILES['uploadedfile']['tmp_name'])) { $this->set('message', 'File upload failed!'); $this->render('core_error.tpl'); return; } echo '<p><strong>DO NOT REFRESH OR STOP THIS PAGE</strong></p>'; set_time_limit(270); $errs = array(); $skip = false; $fp = fopen($_FILES['uploadedfile']['tmp_name'], 'r'); if(isset($_POST['header'])) $skip = true; /* Delete all schedules before doing an import */ if(isset($_POST['erase_routes'])) { SchedulesData::deleteAllSchedules(); } $added = 0; $updated = 0; $total = 0; echo '<div style="overflow: auto; height: 400px; border: 1px solid #666; margin-bottom: 20px; padding: 5px; padding-top: 0px; padding-bottom: 20px;">'; while($fields = fgetcsv($fp, 1000, ',')) { // Skip the first line if($skip == true) { $skip = false; continue; } // list fields: $code = $fields[0]; $flightnum = $fields[1]; $depicao = $fields[2]; $arricao = $fields[3]; $route = $fields[4]; $aircraft = $fields[5]; $flightlevel = $fields[6]; $distance = $fields[7]; $deptime = $fields[8]; $arrtime = $fields[9]; $flighttime = $fields[10]; $notes = $fields[11]; $price = $fields[12]; $flighttype = $fields[13]; $daysofweek = $fields[14]; $enabled = $fields[15]; if($code == '') { continue; } // Check the code: if(!OperationsData::GetAirlineByCode($code)) { echo "Airline with code $code does not exist! Skipping...<br />"; continue; } // Make sure airports exist: if(!($depapt = OperationsData::GetAirportInfo($depicao))) { $this->get_airport_info($depicao); } if(!($arrapt = OperationsData::GetAirportInfo($arricao))) { $this->get_airport_info($arricao); } # Check the aircraft $aircraft = trim($aircraft); $ac_info = OperationsData::GetAircraftByReg($aircraft); # If the aircraft doesn't exist, skip it if(!$ac_info) { echo 'Aircraft "'.$aircraft.'" does not exist! Skipping<br />'; continue; } $ac = $ac_info->id; if($flighttype == '') { $flighttype = 'P'; } if($daysofweek == '') $daysofweek = '0123456'; // Replace a 7 (Sunday) with 0 (since PHP thinks 0 is Sunday) $daysofweek = str_replace('7', '0', $daysofweek); # Check the distance if($distance == 0 || $distance == '') { $distance = OperationsData::getAirportDistance($depicao, $arricao); } $flighttype = strtoupper($flighttype); if($enabled == '0') $enabled = false; else $enabled = true; # This is our 'struct' we're passing into the schedule function # to add or edit it $data = array( 'code'=>$code, 'flightnum'=>$flightnum, 'depicao'=>$depicao, 'arricao'=>$arricao, 'route'=>$route, 'aircraft'=>$ac, 'flightlevel'=>$flightlevel, 'distance'=>$distance, 'deptime'=>$deptime, 'arrtime'=>$arrtime, 'flighttime'=>$flighttime, 'daysofweek'=>$daysofweek, 'notes'=>$notes, 'enabled'=>$enabled, 'price'=>$price, 'flighttype'=>$flighttype); # Check if the schedule exists: if(($schedinfo = SchedulesData::getScheduleByFlight($code, $flightnum))) { # Update the schedule instead $val = SchedulesData::updateScheduleFields($schedinfo->id, $data); $updated++; } else { # Add it $val = SchedulesData::addSchedule($data); $added++; } if($val === false) { if(DB::errno() == 1216) { echo "Error adding $code$flightnum: The airline code, airports, or aircraft does not exist"; } else { $error = (DB::error() != '') ? DB::error() : 'Route already exists'; echo "$code$flightnum was not added, reason: $error<br />"; } echo '<br />'; } else { $total++; echo "Imported {$code}{$flightnum} ({$depicao} to {$arricao})<br />"; } } CentralData::send_schedules(); echo "The import process is complete, added {$added} schedules, updated {$updated}, for a total of {$total}<br />"; foreach($errs as $error) { echo ' '.$error.'<br />'; } echo '</div>'; } protected function get_airport_info($icao) { echo "ICAO $icao not added... retriving information: <br />"; $aptinfo = OperationsData::RetrieveAirportInfo($icao); if($aptinfo === false) { echo 'Could not retrieve information for '.$icao.', add it manually <br />'; } else { echo "Found: $icao - ".$aptinfo->name .' ('.$aptinfo->lat.','.$aptinfo->lng.'), airport added<br /><br />'; return $aptinfo; } } }
  23. The error continues Jeff, you can upload your file import.php
×
×
  • Create New...