Jump to content

Valerio Cowboy

Members
  • Posts

    21
  • Joined

  • Last visited

Posts posted by Valerio Cowboy

  1. I have scales but the point is sbfz, do not know why this error is giving

    and the file that is giving this error /core/modules/RandomFlights/RandomFlights.php, is not the randomsearch.tpl

    how many you have scales? they are interlinked?

  2. You can add a line to your local.config.php file to tell the system how you want schedules sorted.

    For example,

    Config::Set('SCHEDULES_ORDER_BY', 's.flightnum ASC');

    would sort schedules by flight number in a ascending order.

    is still out of order.post-584-036813100 1281896644_thumb.gif

  3. LOL, it happens, but I also installed this version in FS9 and still the same error

    Incidentally, this forum ta not sending email when someone replies to topic

  4. my k-ACARS 1.8, this gives an error in FSUIPC, why? the other programs typically connects

    ---------------------------

    kACARS - ERROR

    ---------------------------

    FSUIPC Error #12: FSUIPC_ERR_SENDMSG. Error sending message to FSUIPC.

    ---------------------------

    OK

    ---------------------------

    1.4 operate normally

  5. people. I could do to show on screen the hub of the guy if he did not make any flight. not only managed to make it refer to it when asked to scale. someone who digs php help? help us all.

    open randomsearch.tpl

    <?php
    $pilotid = Auth::$userinfo->pilotid;
    $last_location = PIREPData::getLastReports($pilotid, 1);
    $last_name = OperationsData::getAirportInfo($last_location->arricao);
    $userinfo = PilotData::getpilotdata($userinfo->hub);
    ?>
    
    <table border = "0">
     <tr>
    <th scope="col">Sistema de Reserva de Escala</th>
     </tr>
     <tr><form name="randomflights" id="randomflights" action="<?php echo SITE_URL?>/index.php/randomflights/getRandomFlights" method="post">
       <td>Informe seu Local Atual </td>
         <table>
           <tr>
    		<td width ="25%"><b>Aeroporto Atual:</b></td>
    		<td width ="75%"><select id="depicao" name="depicao">
    		  <?php 
    if (!$last_location == null)
       { ?> 
    	<option value="<?php echo $last_location->arricao?>">
    <?php echo $last_location->arricao?> (<?php echo $last_name->name?>)</option>
    			<?php 
    			}
    			else
     				  { ?>
    	<option value="<?php echo $userinfo->hub?>">
    <?php echo $userinfo->hub?> (<?php echo $userinfo->hub?>)</option>
    <?php 	}
     ?>	</select>
    		</td>		
    	</tr>
    	<tr>
    		<td width ="25%"><b>Você Vai Receber uma Reserva de :</b></td>
    		<td width ="75%"><select id="count" name="count">			  
    		  <option value="4">4</option>
    
    		</select>Vôos</td>
    		<td><input type="submit" name="submit" value="Gerar Escala"></td>
    	</tr>
      </table>	  	
       </form>
     </tr>
    </table>
    
    

  6. PT-BR

    Achei um metodo de se fazer.

    Vo tentar aqui, mais vo compartilhar se alguem sabe escrever php melhor do q eu.

    primeiro crie um aquivo so com esse comando e ponha ele como includ no head.php assim toda hora que acessar algo do vms chama ele e verifica.

    no script criar

    SELECT * FROM phpvms_pireps where accepted = '0'

    em acho que é 0 mesmo pra nao aceito

    levando em conta que em negativo qnto maior o numero. menor ele é.

    ai faz a condição

    if landingrate => '-500'

    then

    update phpvms_pireps set accepted = '2'

    ou seja nao autoriza em baixo

    else

    update phpvms_pireps set accepted = '1'

    creio que se pode por varias condições, mais me esbarro em varios lugares.

    como por qual pirep ele autorizar?

    mais acho que ai ja deu pra ajudar a alguem a escrever ne.

    EN

    I found a method to do.

    Vo try here, see you share more if anyone knows how to write php q better than me.

    first create a File only with this command and put him as includ head.php on all the time so that access vms something he calls and checks.

    create the script

    SELECT * FROM phpvms_pireps WHERE accepted = '0 '

    to think it is not acceptable even for 0

    taking into account that in negative qnto higher the number. smaller it is.

    ai is the condition

    if landingrate => '-500'

    then

    accepted September update phpvms_pireps = '2 '

    that is not authorized below

    else

    accepted September phpvms_pireps update = '1 '

    One can think of several conditions, most bumping me in several places.

    As for what he authorize PIREP?

    i think i already gave you help someone to write ne.

    excuse the english google translate

  7. PT-BR

    Prezados, Olá,

    Bom, procurei e nao achei nada. Queria saber se existe um codigo em que, o proprio sistema faz uma analise do pirep e autorize o aceite dele ou nao.

    Ex. Peso de saida, Flaps, Gear Up, Gear Down, Touch Down.

    Procurei e revirei e nao achei nada do tipo.

    EN

    Dear, Hello,

    Well, I tried and not found anything. Wondered whether there is a code that, his own analysis of the system makes a PIREP and authorize him to accept it or not.

    Eg weight of output, Flaps, Gear Up, Gear Down, Touch Down.

    I rolled and looked and not found anything like that.

    Thanks

  8. Onde eu ponho isso?

    Thats what im using bb3, here is the code for phpbb3. as you are taking the data from a sanitised source all of the safe guards have been removed, valid email etc.... This code takes the data from the existing redistration page and puts it directly in to bb3 db. I have not had chance to check fully but will be testing tonight.

    <?php
    /**
    * Created on 22-nov-2008 17:10:39
    *
    * Phpbb3 -- register_extern.php
    * @author   Ramon Fincken http://www.ramonfincken.com/permalink/topic82.html
    * @author   Mr Kirkland      http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/
    */
    define('IN_PHPBB', true);
    $phpbb_root_path = '';  // Your path here
    $phpEx = substr(strrchr(__FILE__, '.'), 1);
    include($phpbb_root_path . 'common.php');
    
    // Start session management
    $user->session_begin();
    $auth->acl($user->data);
    $user->setup();
    
    require($phpbb_root_path .'includes/functions_user.php');
    
    
    $username = '';
    $password = ''; // Do NOT encrypt !
    $email  = ''; // Please validate this email yourself ! Phpbb will accept non-valid emails.
    
    
    // Do a check if username is allready there, same for email, otherwhise a nasty error will occur
    
    $user_row = array(
    'username' => $username,
    'user_password' => md5($password), 'user_email' => $email,
    'group_id' => 2, #Registered users group
    'user_timezone' => '1.00',
    'user_dst' => 0,
    'user_lang' => 'en',
    'user_type' => '0',
    'user_actkey' => '',
    'user_dateformat' => 'd M Y H:i',
    'user_style' => 1,
    'user_regdate' => time(),
    );
    
    $phpbb_user_id = user_add($user_row); 
    echo "New user id = ".$phpbb_user_id; /code]
    

    ?>

    Let me know if you get it working  ;D  hopefully find the time tonight fingers crossed.....

×
×
  • Create New...