Jump to content

North Air

Members
  • Posts

    10
  • Joined

  • Last visited

Posts posted by North Air

  1. We´re using an mail-address powered by the webserver. Nothing special and sending via Thunderbird works fine, but we always need to update the mailing-list per hand and that´s lots of work.

    So the mass-mail-function by PHPVMS would be perfect to use, but nothing works after we changed the address ...

  2. Nobody an idea? Currently we´re using a a different mail-address and Thunderbird for our mailings. But it would be much easier using the still available function in PHPVMS ...

    Hopefully someone can help.

    Good night from Germany

    Tobias

    CEO North Air Virtual Airline

    www.northair-va.de

  3. Good day from Germany!

    We changed the webmasters mail-address and now we´re unable to send any mails via tha mass-mail function, even we received the message "sent complete". Nothing received by any pilot. Anyone knows where to set up correctly?

    Sorry, I tried to search a similar topic, but nothing found in here.

    Hoepfully someone can help.

    Thanks a lot an best wishes for a wonderful weekend.

    Tobias

    CEO North Air Virtual Airline

    www.northair-va.de

  4. realschedulelight_index.tpl

    <?php
    //simpilotgroup addon module for phpVMS virtual airline system
    //
    //simpilotgroup addon modules are licenced under the following license:
    //Creative Commons Attribution Non-commercial Share Alike (by-nc-sa)
    //To view full license text visit http://creativecommons.org/licenses/by-nc-sa/3.0/
    //
    //@author David Clark (simpilot)
    //@copyright Copyright (c) 2009-2010, David Clark
    //@license http://creativecommons.org/licenses/by-nc-sa/3.0/
    
    echo '<h3>Available Aircraft For '.SITE_NAME.'</h3>';
    //If pilot is logged in find their location
    //If they have not filed a PIREP yet place them at their hub
    if(Auth::LoggedIn() == true)
    {
       $location = RealScheduleLiteData::get_pilot_location(Auth::$userinfo->pilotid);
       if(!$location)
       {
           $icao = Auth::$userinfo->hub;
       }
       else
       {
           $icao = $location->arricao;
       }
    
       $stranded = '0';
       foreach($aircrafts as $aircraft)
       {
           $check = RealScheduleLiteData::get_aircraft_location($aircraft->id);
           if($check->arricao == $icao)
           {
               $stranded++;
           }
       }
       $curlocation = OperationsData::getAirportInfo($icao);
       echo Auth::$userinfo->firstname.', You are currently at '.$curlocation->name.' ('.$curlocation->icao.')<br />';
       if(!$location->jumpseats)
       {
           echo 'du hast keine Jumpseattickets gekauft!<br /><br />';
       }
       else
       {
           echo 'Du hast '.$location->jumpseats.' Tickets gekauft.<br /><br />';
       }
    }
    if($stranded == 0)
    {
       echo 'An deinem Standort gibt es keine Flugzeuge. Jumpseats sind für dich kostenlos.<br /><br />';
    }
    echo 'Klick auf den ICAO-Code um Flüge anzunehmen.<br /><br />';
    echo '<table width="100%" border="1px">';
    echo '<tr><th width="5%">ICAO</th><th width="40%">Flughafen</th><th>Land</th><th>Verfügbare Flugzeuge</th>';
    //If pilot is logged in allow him to jumpseat to another airport
    if(Auth::LoggedIn() == true)
    {
       echo '<th>Jumpseat Tickets</th>';
    }
    echo '</tr>';
    $i = 0;
    foreach ($airports as $airport)
    {
       if ($i == 0)
       {
           echo '<tr>';
       }
       echo '<td><a href="'.SITE_URL.'/index.php/RealScheduleLite/get_airport?icao='.$airport->icao.'">'.$airport->icao.'</a></td>';
       if($airport->hub == 1)
       {
           echo '<td><font color="#FF0000">HUB - '.$airport->name.'</font></td>';
       }
       else
       {
           echo '<td>'.$airport->name.'</td>';
       }
       echo '<td>'.$airport->country.'</td><td>';
       $aircrafts = OperationsData::getAllAircraft('true');
       $count = 0;
       if(!$aircrafts)
       {
           echo 'The Airline Has No Aircraft';
       }
       else
       {
           foreach ($aircrafts as $aircraft)
           {
               $location = RealScheduleLiteData::get_aircraft_location($aircraft->id);
               $airfield = $location->arricao;
               if(!$location)
               {
                   $location = RealScheduleLiteData::get_aircraft_start($aircraft->id);
                   $airfield = $location->depicao;
               }
               else
               {
                   $airfield = $location->arricao;
               }
               if ($airfield == $airport->icao)
               {
                   if ($count == 0)
                   {
                       echo '| ';
                   }
                   echo ''.$aircraft->registration.' | ';
                   $count++;
               }
           }
           if ($count == 0)
           {
               echo '<font color="#6D7B8D"><i>No Aircraft Available</i></font>';
           }
           echo '</td>';
       }
       //If pilot is logged in allow him to jumpseat to another airport
    
       if(Auth::LoggedIn() == true)
       {
           if($curlocation->icao == $airport->icao)
           {
               echo '<td align="center">You Are<br />Here</td>';
           }
           else
           {
               //check to see if he is stranded with no aircraft
               if($count == 0)
               {
                   echo '<td> </td>';
               }
               else
               {
                   if($stranded == '0')
                   {
                       $cost = '0';
                       echo '<td align="center">Cost - $'.$cost.'<br /><a href="'.url('/realschedulelite/jumpseat').'?id='.$airport->icao.'&cost='.$cost.'"><b>Purchase</b></a></td>';
                   }
                   else
                   {
                       $distance = round(SchedulesData::distanceBetweenPoints($curlocation->lat, $curlocation->lng, $airport->lat, $airport->lng), 0);
                       $permile = Config::Get('JUMPSEAT_COST');
                       $cost = ($permile * $distance);
                       echo '<td align="center">Cost - $'.$cost.'<br /><a href="'.url('/realschedulelite/jumpseat').'?id='.$airport->icao.'&cost='.$cost.'"><b>Purchase</b></a></td>';
                   }
               }
           }
       }
    }
    echo '</table>';
    ?>

    Good day to all coders and readers,

    Is there any possibility to show just those flights pilots are allowed to fly? If the needed rank is not reached yet, flights won´t be shown on the booking list.

    I really need your help in this case, ´cause currently it´s not possible to limit aircraft by rank and all pilots are able to book and fly every flight.

    Many thanks for you kind assistance and help.

    Hopefully someone could help!

  5. Good eve,

    I tried to fix the problem with double bids, but unfortunately it won´t work. What to do? Here is the code from local.config.php

    # Page encoding options
    Config::Set('PAGE_ENCODING', 'ISO-8859-1');
    
    # Maintenance mode - this disables the site to non-admins
    Config::Set('MAINTENANCE_MODE', false);
    Config::Set('MAINTENANCE_MESSAGE', 'Es sind gerade Wartungsarbeiten auf der Seite am laufen, es dauert nicht lange - versprochen! <br>Das Forum ist weiterhin online und erreichbar unter: ptp-forum.de/forum/ . Wir freuen uns auf euren erneuten Besuch!');
    
    # See more details about these in the docs
    Config::Set('PAGE_EXT', '.htm');        # .htm is fine. You can still run PHP
    Config::Set('PILOTID_OFFSET', 0);        # What # to start pilot ID's from
    Config::Set('PILOTID_LENGTH', 4);        # Length of the Pilot ID
    Config::Set('UNITS', 'nm');                        # Your units: nm, mi or km
    Config::Set('LOAD_FACTOR', '82');        # %age load factor
    Config::Set('CARGO_UNITS', 'kg');
    
    # After how long to mark a pilot inactive, in days
    Config::Set('PILOT_AUTO_RETIRE', true);
    Config::Set('PILOT_INACTIVE_TIME', 15);
    
    # Automatically confirm pilots?
    Config::Set('PILOT_AUTO_CONFIRM', false);
    
    # Automatically calculate ranks?
    Config::Set('RANKS_AUTOCALCULATE', true);
    
    # For how many hours a pilot can edit their submitted PIREP (custom fields only)
    Config::Set('PIREP_CUSTOM_FIELD_EDIT', '48');
    
    # If someone places a bid, whether to disable that or not
    Config::Set('DISABLE_SCHED_ON_BID', false);
    Config::Set('DISABLE_BIDS_ON_BID', false);
    
    # If you want to count transfer hours in rank calculations
    Config::Set('TRANSFER_HOURS_IN_RANKS', true);
    
    # The StatsData::UserOnline() function - how many minutes to check
    Config::Set('USERS_ONLINE_TIME',5);
    
    # Jumpseat Ticket Cost Per NM
    Config::Set('JUMPSEAT_COST', '.50');
    
    # Pilot pilots to only fly aircraft they're ranked to
    Config::Set('RESTRICT_AIRCRAFT_RANKS', true);
    
    # Google Map Options
    Config::Set('MAP_WIDTH', '800px');
    Config::Set('MAP_HEIGHT', '600px');
    # Valid types are G_NORMAL_MAP, G_SATELLITE_MAP, G_HYBRID_MAP, G_PHYSICAL_MAP
    Config::Set('MAP_TYPE', 'G_SATELLITE_MAP');
    Config::Set('MAP_LINE_COLOR', '#ff0000');
    Config::Set('MAP_CENTER_LAT', '51.165');
    Config::Set('MAP_CENTER_LNG', '10.455278');
    Config::Set('MAP_ZOOM_LEVEL', 30);
    
    # ACARS options
    #  Minutes, flights to show on the ACARS
    #  Default is 720 minutes (12 hours)
    Config::Set('ACARS_LIVE_TIME', 15);
    Config::Set('ACARS_DEBUG', false);
    
    
    /*
     This is the unit of money. For non-dollars, use :
           Dollars ($), enter "$"
           Euro (€), enter "€"
           Yen (Â¥), enter "¥"
           Pounds (£), enter "£"
    
     For example, to set EUROS:
           Config::Set('MONEY_UNIT', '€');
    */
    
    Config::Set('MONEY_UNIT', '€');
    
    # FSPassengers Settings
    # Units settings
    Config::Set('WeightUnit', '1');   # 0=Kg 1=lbs
    Config::Set('DistanceUnit', '2');   # 0=KM 1= Miles 2=NMiles
    Config::Set('SpeedUnit', '1');   # 0=Km/H 1=Kts
    Config::Set('AltUnit', '1');   # 0=Meter 1=Feet
    Config::Set('LiquidUnit', '2');   # 0=liter 1=gal 2=kg 3=lbs
    Config::Set('WelcomeMessage', 'North Air - Herzlich Willkommen Pilot!'); # Welcome Message
    
    /* FSFK Settings
           Your FTP Server, and path to the lib/images folder (from where the FTP connects from), IE
           ftp://phpvms.net/phpvms/lib/fsfk or ftp://phpvms.net/public_html/phpvms/lib/fsfk
    
           You want the path from when you connect to the FTP down to where the /lib/fsfk folder is
    */
    Config::Set('FSFK_FTP_SERVER', '');
    Config::Set('FSFK_FTP_PORT', '21');
    Config::Set('FSFK_FTP_USER', '');
    Config::Set('FSFK_FTP_PASS', '');
    Config::Set('FSFK_FTP_PASSIVE_MODE', 'TRUE');
    Config::Set('FSFK_IMAGE_PATH', '/lib/fsfk'); // web path from SITE_ROOT
    
    # Options for the signature that's generated
    Config::Set('SIGNATURE_TEXT_COLOR', '#000');
    Config::Set('SIGNATURE_SHOW_EARNINGS', true);
    Config::Set('SIGNATURE_SHOW_RANK_IMAGE', true);
    Config::Set('SIGNATURE_SHOW_COPYRIGHT', true);
    
    # Avatar information
    Config::Set('AVATAR_FILE_SIZE', 50000);
    Config::Set('AVATAR_MAX_WIDTH', 80);
    Config::Set('AVATAR_MAX_HEIGHT', 80);
    
    # Email Settings
    Config::Set('EMAIL_FROM_NAME', 'North Air Team');
    Config::Set('EMAIL_FROM_ADDRESS', '');
    
    Config::Set('EMAIL_USE_SMTP', false);
    # Add multiple SMTP servers by separating them with ;
    Config::Set('EMAIL_SMTP_SERVERS', 'smtp.googlemail.com');
    Config::Set('EMAIL_SMTP_PORT', '465');
    Config::Set('EMAIL_SMTP_USE_AUTH', false);
    Config::Set('EMAIL_SMTP_USER', 'northairva');
    Config::Set('EMAIL_SMTP_PASS', 'adminnxaceo');
    
    # Debug mode is off by default
    Config::Set('DEBUG_MODE', false);
    Config::Set('ERROR_LEVEL', E_ALL ^ E_NOTICE);
    
    Config::Set('SESSION_LOGIN_TIME', (60*60*24*30)); # Expire after 30 days, in seconds
    
    /* Days of the Week
           The compacted view, and the full text
           DON'T CHANGE THE ORDER!! And yes, Sunday is in there twice
    */
    Config::Set('DAYS_COMPACT',  array('Su', 'M', 'T', 'W', 'Th', 'F', 'S', 'Su'));
    
    Config::Set('VACENTRAL_ENABLED', true);
    Config::Set('VACENTRAL_API_SERVER', 'http://api.phpvms.net');
    Config::Set('VACENTRAL_API_KEY', 'a5b53f2dfc72b6e05afef71c577e6bef');
    
    Config::Set('DAYS_LONG',
                   array('Sunday',
                             'Monday',
                             'Tuesday',
                             'Wednesday',
                             'Thursday',
                             'Friday',
                             'Saturday',
                             'Sunday'
                   )
           );

    I tried both possibilities with true and false, nothing worked

    # If someone places a bid, whether to disable that or not
    Config::Set('DISABLE_SCHED_ON_BID', false);
    Config::Set('DISABLE_BIDS_ON_BID', false);

    Any help?

    What a about the aircraft limited to the rank? Any chances to add as well?

    Thanks a lot for your help and good night from Germany

    Tobias

  6. Good eve to all!

    Short question: would it be possible to reset pilots_list.tpl to default PHP-VMS one? We´ve now RealScheduleLite installed, but unfortunately it´s unable to restrict pilots usage of aircraft (limited by ranks) and double bids.

    Could someone post the code of the default which still includes the above mentioned features?

    Many thanks and best wishes for a silent night from rainy Germany

    Tobias

    www.northair-va.de

×
×
  • Create New...