Jump to content

imnemina

Members
  • Posts

    37
  • Joined

  • Last visited

Posts posted by imnemina

  1. Hi guys

    For the problem of hacking, my server has closed my account became infected also other sites.

    They allowed me to backup files and databases.

    Now i got a place on another server, clean the infected files, the went up again and load the database.

    Modify file parameters local.config.php and it seemed that everything worked fine.

    But I have some problems.

    In the admin panel does not show:

    View all pilots - no show anything

    Flight Schedules Routes - no show anything

    Add and edit airpots - no show anything

    In the databases the info exist.

    Any idea?

    Best regards

  2. I do not think I explained myself well.

    What I need to know is if any way of creating a link to flights and filtered to a destination. So that when a pilot click on the city name on the map, the site take you to the page but it leaked flights to that destination.

    Example: http://newaps2012.com.ar/action.php/schedules/view=arricao% 20KJFK

    I try with this but it gives me error.

    The map itself, as I do in JPG with photoshop.

    Regards

  3. I'm thinking of making a map of flights for the pilots can see destinations to fly more graphically. Something like this: http://viajaraargentina.files.wordpress.com/2011/04/ruta-aerolineas-argentinas1.jpg

    It would be a bitmap image mapped with coordinates that when you click on a city to return all available flights to that destination.

    The problem is that the link schedules/view, destinations are not filter for airoport, shows all.

    On our site the link is http://newaps2012.com.ar/index.php/schedules/view

    It should be something like "http://newaps2012.com.ar/index.php/schedules/view = KJFK" or something, but can not find the right way of putting it.

    I honestly do not know if it's posible. Someone comes up as writing the link correctly? Regards

  4. something I'm doing wrong.

    With the original code on scehdules result tpl file:

    <tr>

    <td>

    <a href="<?php echo url('/schedules/details/'.$route->id);?>"><?php echo $route->code . $route->flightnum?>

    <?php echo '('.$route->depicao.' - '.$route->arricao.')'?>

    </a>

    <br />

    my flights are shown:

    original.jpg

    If change the code for this:

    <tr>

    <td>

    <a href="<?php echo url('/schedules/details/'.$route->id);?>"><?php echo $route->code . $route->flightnum?>

    (

    <?php $country = OperationsData::getAirportInfo($route->depicao);

    $imgicao = array_search($country->country, Countries::$countries);

    ?> <img src="<?php echo SITE_URL;?>/lib/images/countries/<?php echo strlower($imgicao);?>.png" alt="<?php echo $imgicao;?>" />

    <?php echo $route->depicao;?> - <?php $country = OperationsData::getAirportInfo($route->arricao);

    $imgicao = array_search($country->country, Countries::$countries);

    ?> <img src="<?php echo SITE_URL;?>/lib/images/countries/<?php echo strlower($imgicao);?>.png" alt="<?php echo $imgicao;?>" />

    <?php echo $route->arricao;?>)</a>

    <br />

    <strong>Salida: </strong><?php echo $route->deptime;?>         <strong>Destino: </strong><?php echo $route->arrtime;?><br />

    <strong>Aeronave: </strong><?php echo $route->aircraft; ?> (<?php echo $route->registration;?>) <strong>Distancia: </strong><?php echo $route->distance . Config::Get('UNITS');?>

    <br />

    <strong>Dias Activo: </strong><?php echo Util::GetDaysCompact($route->daysofweek); ?><br />

    <?php echo ($route->route=='') ? '' : '<strong>Ruta: </strong>'.$route->route.'<br />' ?>

    <?php echo ($route->notes=='') ? '' : '<strong>Notes: </strong>'.html_entity_decode($route->notes).'<br />' ?>

    <?php

    # Note: this will only show if the above code to

    # skip the schedule is commented out

    if($route->bidid != 0)

    {

    echo 'Este vuelo ha sido asignado';

    }

    ?>

    </td>

    The schedules screen change and the info show bad

    infodesordenada.jpg

    It can not be that hard.

    I must be close.

    Any ideas.

    Regards

  5. I am assuming you are gonna used this in the schedules so I am passing $route->depicao for the ICAO you want to search for. Change this to reflect your script if using anywhere else. ;)

    <?php
    $country = OperationsData::getAirportInfo($route->depicao); //or change to pass in the departure icao of the airport...
     $airports = OperationsData::getAllAirports();
     $imgicao = array_search($country->country, Countries::$countries);
    ?>
    <img src="<?php echo SITE_URL;?>/lib/images/countries/<?php echo strlower($imgicao);?>.png" alt="<?php echo $imgicao;?>"
    

    In that file edit this? Location?

    Regards

  6. I have the same problem. Past 120 days, the pilots do not pass to retired status.

    # After how long to mark a pilot inactive, in days

    Config::Set('PILOT_AUTO_RETIRE', true);

    Config::Set('PILOT_INACTIVE_TIME', 120);

    Is this the problem?

    # Config VaCentral

    Config::Set('VACENTRAL_ENABLED', true);

    Config::Set('VACENTRAL_API_SERVER', 'http://api.phpvms.net');

    Config::Set('VACENTRAL_API_KEY', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx');

    Best regards

  7. Thank you very much for your help.

    I had already tried that but I get this error:

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in/nfs/c07/h03/mnt/108529/domains/newaps2012.com.ar/html/core/templates/core_navigation.tpl on line 34

    My core_navigation.tpl

    <li><a href="<?php echo url('/'); ?>">Inicio</a></li>

    <?php

    if(!Auth::LoggedIn())

    {

    // Show these if they haven't logged in yet

    ?>

    <li><a href="<?php echo url('/login'); ?>">Login</a></li>

    <li><a href="<?php echo url('/registration'); ?>">Registrarse</a></li>

    <?php

    }

    else

    {

    // Show these items only if they are logged in

    ?>

    <li><a href="<?php echo url('/profile'); ?>">mi cuenta</a></li>

    <li><a href="<?php echo url('/Exams') ?>">Examenes</a><li>

    <?php

    }

    ?>

    <li><a href="<?php echo url('/pilots'); ?>">Roster</a></li>

    <li><a href="<?php echo url('/schedules/view'); ?>">Vuelos</a></li>

    <li><a href="<?php echo url('/acars') ?>">Mapa</a></li>

    <li><a href="<?php echo url('/vStatsCenter') ?>">Estadisticas</a></li>

    <?php echo $MODULE_NAV_INC;?>

    <?php

    if(Auth::LoggedIn())

    {

    if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN))

    {

    echo '<li><a href="'.fileurl('/admin').'">Admin Center</a></li>';

    echo '<li><a href="<?php echo url('/registration'); ?>">Registrarse</a></li>';

    }

    ?>

    <?php

    $admin = ExamsData::check_admin(Auth::$userinfo->pilotid);

    if ($admin->admin_level >= '1')

    {echo '<li><a href="'.url('/Exams_admin').'">EXAM Admin</a></li>';}

    ?>

    <li><a href="<?php echo url('/logout'); ?>">Desconectarse</a></li>

    <?php

    }

    ?>

  8. Good night

    In my virtual airline, the pilots only are accepted after passed an examination.

    The examination module is in other web site.

    Pilots must register in this site, take the exam and if they do well, a staff member will add to phpvms site manually.

    I can do to make the option "Register" are only visible to staff memebers? As the admin center option. In the core_navigation.tpl

    Best regards

×
×
  • Create New...