Jump to content

lorlandi

Members
  • Posts

    173
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by lorlandi

  1. On 6/12/2021 at 3:26 PM, atrdriver said:

    I feel kind of stupid, but I can't get the acars.exe program to run.  I have followed the client install, installed and run makerunways, and I already have the paid version of FSUIPC.  I unzipped the ACARS.zip file to a folder of my choice, and when I try to run it I get a pop up box withe the PHPVMS logo for about 3 or 4 seconds, then it closes and nothing more happens.  I never get the entry screen where you put in your API and url, and select a simulator.  I attempted to follow the docs exactly, as well as the README.txt file in the ACARS.zip file.  Running Win10, with ver 4.8 of .NET framework.  I know I must be doing something wrong, but I sure can't figure out what it is.  Thanks,

     

    john croft

     

    Try creating an exception in your antivirus for the acars.exe file before executing it.

     

    Regards

  2. Hi, I am trying to create a new database to later create a new module. Reading the documentation I must use "php artisan module: make-migration create_sample_table ModuleName" but when executing this instruction I get "In DatabaseServiceProvider.php line 88: Class 'Faker \ Factory' not found" This appears on to create a module or to create a database.

     

    Can hel me about this please.

     

    Many Thanks

     

  3. In the previous version of PHPVMS (V5), each flight could be assigned a specific aircraft, but now I can only do it by subfleet. In our case for the Boeing 777-200 Freighter fleet we have 3 aircraft and now any of them can be selected for flight. As a cargo airline, it is very important to assign a specific aircraft to each flight so that the fleet has a similar use and avoid excessive wear of some of them and also to avoid the same aircraft flying at the same time on different routes.

    For now we have fixed that by assigning each aircraft as a subfleet, we have 22 aircraft and 22 subfleets. Each flight has been assigned to a specific aircraft. The flight_subfleet database has 814 assigned flights.

    Is there any way to assign a flight to a specific plane as it was in version 5 ?

     

    Many Thanks

     

     

  4. A few days ago finally a have installed Version 7, but in the last two days several register were made by address auto generated, for example " .ru "

    Is a installation problem or some missing step for my side.

     

    Thanks for help

  5. Hello, the problem is that you cannot see the pilots on the live map or the route of the flight made?

    For example  can not see the pirep route on the map when the pilots use CCF Traker Free for report the pirep instead kacars who shows just the schedule route saved on database no pirep route made by the pilot.

    My solution was back to older routemap.php based on google maps and now everything is shown nice and good.

    route.zip

  6. Hi all, any chance to convert this map (googlemap) into openstreet map.

    This code can show the schedule route and route made in the same map. Now i have a map were only show a schedule route in openstreet map.

     

    <section class="page-contents">
    <div class="container">
    <div class="mapcenter" align="center">
        <div id="routemap" style="width:1106px; height: <?php echo Config::Get('MAP_HEIGHT')?>"></div>

    <?php
    /**
     *
     * This is the new Google Maps v3 code. Be careful of changing
     * things here, only do something if you know what you're doing.
     *               
     * These are some options for the map, you can change here.
     *
     * This map is used for schedules and PIREPS
     *
     * By default, the zoom level and center are ignored, and the map
     * will try to fit the all the flights in. If you want to manually set
     * the zoom level and center, set "autozoom" to false.
     *
     * If you want to adjust the size of the map - Look at the above
     * "routemap" div with the CSS width/height parameters. You can
     * easily adjust it from there.
     *
     * And for reference, you want to tinker:
     * http://code.google.com/apis/maps/documentation/v3/basics.html
     */
     
     
    if(isset($pirep))
        $mapdata = $pirep;
    if(isset($schedule))
        $mapdata = $schedule;
        
        
    $image = fileurl('/images/airline/'.$pirep->code.'.gif');

    ?>
    <?php
    /*    This is a small template for information about a navpoint popup
        
        Variables available:
        
        <%=nav.title%>
        <%=nav.name%>
        <%=nav.freq%>
        <%=nav.lat%>
        <%=nav.lng%>
        <%=nav.type%>    2=NDB 3=VOR 4=DME 5=FIX 6=TRACK
     */
    ?>


    <script type="text/html" id="navpoint_bubble">
        <span style="font-size: 10px; text-align:left; width: 100%" align="left">
        <strong>Name: </strong><%=nav.title%> (<%=nav.name%>)<br />
        <strong>Type: </strong>
        <?php    /* Show the type of point */ ?>
        <% if(nav.type == 2) { %> NDB <% } %>
        <% if(nav.type == 3) { %> VOR <% } %>
        <% if(nav.type == 4) { %> DME <% } %>
        <% if(nav.type == 5) { %> FIX <% } %>
        <% if(nav.type == 6) { %> TRACK <% } %>
        <br />
        <?php    /* Only show frequency if it's not a 0*/ ?>
        <% if(nav.freq != 0) { %>
        <strong>Frequency: </strong><%=nav.freq%>
        <% } %>
        </span>
    </script>

    <?php
    /*
        IMAGES IN THE POSITION INFO BUBBLE
        In the Bubble template below you can add img refernces
        Links, etc.  use standard HTML coding
        <img src="http://www.airlinelogos.net/albums/p/panam-old.gif"><br />
        The above link can be added to the space below.  at the top of the
        bubble will be displayed the Pan Am logo.  Obviously you can
        change this to what every you wish.
        
        FYI - The same applies to the acarsmap.tpl
    */
    ?>    

    <script type="text/html" id="position_bubble">
        <span style="font-size: 10px; text-align:left; width: 100%" align="left">
            
        <strong>Altitude: </strong><%=nav.alt%><br />
        <strong>Ground Speed: </strong><%=nav.gs%><br />
        <strong>Heading: </strong><%=nav.head%><br />
        <strong>Phase: </strong><%=nav.phase%><br />
        <strong>Latitude: </strong><%=nav.lat%><br />
        <strong>Longitude: </strong><%=nav.lng%><br />
        <?php    /* Only show frequency if it's not a 0*/ ?>
        <% if(nav.warn != 0) { %>
        <strong>Warning: </strong><%=nav.warndetail%>
        <% } %>
        
        </span>
    </script>


    <?php
    /*    Below here is all the javascript for the map. Be careful of what you
        modify!! */
        
        $icondep = fileurl('/lib/images/icon_dep.png');
        $iconarr = fileurl('/lib/images/icon_arr.png');

    ?>
    <script type="text/javascript">
    var options = {
        mapTypeId: google.maps.MapTypeId.ROADMAP
    }

    var map = new google.maps.Map(document.getElementById("routemap"), options);
    var dep_location = new google.maps.LatLng(<?php echo $mapdata->deplat?>,<?php echo $mapdata->deplng;?>);
    var arr_location = new google.maps.LatLng(<?php echo $mapdata->arrlat?>,<?php echo $mapdata->arrlng;?>);

    var bounds = new google.maps.LatLngBounds();                                                                                                     
    bounds.extend(dep_location);
    bounds.extend(arr_location);

    var depMarker = new google.maps.Marker({
        position: dep_location,
        map: map,
        icon: "<?php echo $icondep;?>",
        title: "<?php echo $mapdata->depname;?>"
    });
    <?php
    /* Populate the route */
    if(is_array($mapdata->route_details))
    {
        $list = array();
        
        foreach($mapdata->route_details as $route)
        {
            if($route->type == NAV_VOR)
                $icon = fileurl('/lib/images/icon_vor.png');
            else
                $icon = fileurl('/lib/images/icon_fix.png');
                
            $lat = str_replace(",", ".", $route->lat);
            $lng = str_replace(",", ".", $route->lng);
            
            /*    Build info array for the bubble */
            ?>
            var v<?php echo $route->name?>_info = {
                freq: "<?php echo $route->freq ?>",
                name: "<?php echo $route->name ?>",
                title: "<?php echo $route->title ?>",
                type: "<?php echo $route->type ?>",
                lat: "<?php echo $lat ?>",
                lng: "<?php echo $lng ?>"
            };
            
            var v<?php echo $route->name?>_navpoint_info = tmpl("navpoint_bubble", {nav: v<?php echo $route->name?>_info});
            var v<?php echo $route->name?>_coords = new google.maps.LatLng(<?php echo $lat?>, <?php echo $lng?>);
            var v<?php echo $route->name?>_marker = new google.maps.Marker({
                position: v<?php echo $route->name?>_coords,
                map: map,
                icon: "<?php echo $icon; ?>",
                title: "<?php echo $route->title; ?>",
                infowindow_content: v<?php echo $route->name?>_navpoint_info
            });
            
            bounds.extend(v<?php echo $route->name?>_coords);
            
            google.maps.event.addListener(v<?php echo $route->name?>_marker, 'click', function()
            {
                info_window = new google.maps.InfoWindow({
                    content: this.infowindow_content,
                    position: this.position
                });
                
                info_window.open(map, this);
            });
            
            <?php
                
            // For the polyline
            $list[] = "v{$route->name}_coords";
        }
    }
    ?>
    var arrMarker = new google.maps.Marker({
        position: arr_location,
        map: map,
        icon: "<?php echo $iconarr;?>",
        title: "<?php echo $mapdata->arrname;?>"
    });

    var flightPath = new google.maps.Polyline({
        path: [dep_location, <?php if(is_array($list)) { echo implode(',', $list).','; }?> arr_location],
        strokeColor: "#FF0000", strokeOpacity: 1.0, strokeWeight: 2
    }).setMap(map);

    // Resize the view to fit it all in
    map.fitBounds(bounds);
    </script>


    <script type="text/javascript">
    <?php
    /* Populate the route */

    $res = @unserialize($mapdata->rawdata);
    if($res !== false) { $mapdata->rawdata = $res; unset($res); }

    if(is_array($mapdata->rawdata['points']))
    {
        $list = array();

        foreach($mapdata->rawdata['points'] as $point)
        {    
            $detail = "";
            if ($point['alt'] < 10 && $point['warning'] == 0)
            {            
                $icon = fileurl('/lib/images/ground.png');
            }
            if ($point['warning'] == 1)
            {
                $icon = fileurl('/lib/images/warning.png');
            }
            if ($point['alt'] > 10 && $point['warning'] == 0)
            {
                $icon = fileurl('lib/images/inair/'.$point['head'].'.png');
            }
            
            if ($point['warning'] == 1)
            {
                $detail = ' | Warning: '.$point['warningdetail'];
            }
            
            $latP = str_replace(",", ".", $point['lat']);
            $lngP = str_replace(",", ".", $point['lng']);
            
            if ($latP == '0') continue;

            
            // FILL THIS IN WITH THE PROPER STUFF, ALL INSTANCES OF
            // $route WITH $point?>
            var v<?php echo $point['name'] ?>_info = {
                alt: "<?php echo $point['alt'] ?>",
                gs: "<?php echo $point['gs'] ?>",
                head: "<?php echo $point['head'] ?>",
                phase: "<?php echo $point['phase'] ?>",
                lat: "<?php echo round($latP, 4) ?>",
                lng: "<?php echo round($lngP, 4) ?>",
                warn: "<?php echo $point['warning'] ?>",
                warndetail: "<?php echo $point['warningdetail'] ?>"
            };

            // ALSO THE POINTS HERE
            var v<?php echo $point['name']?>_coords = new google.maps.LatLng(<?php echo $latP?>, <?php echo $lngP?>);
            var v<?php echo $point['name']?>_navpoint_info = tmpl("position_bubble", {nav: v<?php echo $point['name']?>_info});
            // YOU CAN ADD A CUSTOM ICON FROM HERE ON EACH POINT
            var v<?php echo $point['name']?>_marker = new google.maps.Marker({
                position: v<?php echo $point['name']?>_coords,
                map: map,
                icon: "<?php echo $icon; ?>", // THIS IS THE LINK TO AN ICON
                title: "<?php echo $point['phase'];?>",
                    
                infowindow_content: v<?php echo $point['name']?>_navpoint_info
            });

            bounds.extend(v<?php echo $point['name']?>_coords);

            google.maps.event.addListener(v<?php echo $point['name']?>_marker, 'click', function()
            {        
                info_window = new google.maps.InfoWindow({
                    content: this.infowindow_content,
                    position: this.position
                });
                
                info_window.open(map, this);

            });

            <?php
            
            // For the polyline
            $list[] = "v{$point['name']}_coords";
        }
    }
    ?>

    var kACARSPath = new google.maps.Polyline({
        path: [dep_location, <?php if(count($list) > 0) { echo implode(',', $list).','; }?> arr_location],
        strokeColor: "#0000FF", strokeOpacity: 1.0, strokeWeight: 2
    }).setMap(map);

    // Resize the view to fit it all in
    map.fitBounds(bounds);
    </script>

    </section>
    <br>
    <br>

     

     

    Many Thanks

    Luis

  7. You must have this lines at the beginning of your Kacars_Free.php file :

     

    <?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 Jeffrey Kobus
     * @copyright Copyright (c) 2010, Jeffrey Kobus
     * @link http://www.fs-products.net
     * @license http://creativecommons.org/licenses/by-nc-sa/3.0/
     * @ v1.0.1.1
     */

    class kACARS_Free extends CodonModule
    {    
        
        public function index()
        {
            if($_SERVER['REQUEST_METHOD'] === 'POST')
            {
                
                // Site Settings

     

    The instruction "class kACARS_Free extends CodonModule" in my file is located on line 22.

  8. Well, i had the same problem with mass email and contact email also, two weeks involved searching the solution and nothing. My email is from a telephone company and used for many years.

    The final solution to this issued was change the webmaster email and also my email to gmail account and all going well.

     

    At this time with many test all is full working.

     

    My local config as follow

     

    # Email Settings
    Config::Set('EMAIL_FROM_NAME', '');
    Config::Set('EMAIL_FROM_ADDRESS', '');

    Config::Set('EMAIL_USE_SMTP', false);
    # Add multiple SMTP servers by separating them with ;
    Config::Set('EMAIL_SMTP_SERVERS', '');
    Config::Set('EMAIL_SMTP_PORT', '25');
    Config::Set('EMAIL_SMTP_USE_AUTH', true);
    Config::Set('EMAIL_SMTP_SECURE', 'ssl'); # must be "ssl" for Google Apps
    Config::Set('EMAIL_SMTP_USER', '');
    Config::Set('EMAIL_SMTP_PASS', '');

     

    App config with no changes.

     

    Regards

    Luis

    • Like 1
  9. Hello, try to go in kacars  on "info" then "settings" and unmark  the option "search flight" , save the new options and then close kacars, open again, and try "Get fly Info".

     

    Regards

  10. Hello all, after couple of years i'm back again. Well, i made the conversions to openstreet map, in the page schedule route map all is nice and good but in mi old pireps when i look the route just show the tower in departure and arrival airport no route made. Have any an idea whow can i solve that issue.

     

    Thanks

  11. Hello, you must go were the kacars is installed, example "C:\Program Files (x86)\FS Products\......" right click on kacars aplication and then select "run as administrator".

    Regards

×
×
  • Create New...