Jump to content

ProSkyDesign

Moderators
  • Posts

    207
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by ProSkyDesign

  1. 7 hours ago, shakamonkey88 said:

    That is definitely weird that it randomly started throwing an error for you. I'd also suggest checking with your provider just in case.

     

    I'd be wary of simply turning off error reporting. That doesn't solve anything and doesn't eliminate errors, it simply hides them. Anyone can sweep problems under the carpet, but "out of sight, out of mind" is not a good approach in my opinion.

    That's ok is not the final solution but he needs to get his site on... Now he should search the final solution... As I said is the "quick solution" :)!

  2. 1 hour ago, djtiger76 said:

    Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/tstamer/public_html/crew/core/classes/Config.class.php on line 108

     

    Not sure what happened between this morning and now, but just went to my site (http://test.americanva.org) and on the home page I have a depreciated message. I don't know what needs to be done to correct it or hide the message. Can someone help?

    Here is the code for that area

     

     

        /**
         * Load all the site settings. Make the settings into define()'s
         *    so they're accessible from everywhere
         */
        public static function LoadSettings() {
            while (list($key, $value) = each(self::$values)) {
                if (!is_array($value)) {
                    if (!defined($key)) {
                        define($key, $value);
                    }
                }
            }

            return true;
        }

    A quick solution should be:

    go to core/local.config.php and find the following in top of file:

    Config::Set('DEBUG_MODE', false);

    and change to true like this:

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

    seems  as a php version debug error

    • Like 1
  3. 40 minutes ago, MrSandyWilly said:

    Hi,

    I have been using PHPVMS on a free web host for testing, and I’m thinking about the future when I come to upgrade to paid hosting.

    How do I migrate to a new web host without loosing data?

    Thanks for your suggestions!

    Compress the folder where you have your phpvms files, and export sql database.

    In your new hosting: upload and unzip the folder and import sql database (you can use phpmyadmin)

    Be sure that change URL, DB name, user and password on core/local.config.php

    and captcha keys on core/app.config.php

  4. 1 hour ago, Haru said:

    This is a major issue. I also tried to set new roles with limited permissions, these also dont have access to dashboard or flights, I even tried to create a new role with ALL permissions, no access either. this appears to be hardcoded to Admin?

    What version of phpvms do you have?

  5. 9 hours ago, rebal15 said:

    Hey, none of my pilots can register, because they can't choose a home airport. Any help is appreciated.

    Sure, please can you share the url of your website, in case you consider this a private information, please send me a PM. Late we can post the solution here :)!

  6. 21 hours ago, eediaz said:

    Hello i recently download the Exam Center Module for my VA, and when i instaled im recibin this

    Deprecated: Non-static method ExamsData::get_setting_info() should not be called statically, assuming $this from incompatible context in /home/u972563037/public_html/core/modules/Exams/Exams.php


    Deprecated: Non-static method ExamsData::check_exam_assigned() should not be called statically, assuming $this from incompatible context in /home/u972563037/public_html/core/templates/exams/exam_list.php 

    Also when i request an exam i recibe this other error, warning in this case

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Exams' does not have a method ''.url('' in /home/u972563037/public_html/core/classes/MainController.class.php on line 218

    where did yoy buy this module?

    the 2 deprecated errors is because you are calling a function staticlly (Example::example()) but in the Model (ExamsData.class.php) the functions aren't static... you should change the public function by public static function.

  7. 1 hour ago, Kursat said:

    Hello;

     

    phpvms 5.0 classic / phpvms 5.5.2 gave the same results

     

    Panel not working fully.

    installation was done again, the problem continues.

    Please help me

     

    M1jyPN.png

    Lvj4Yj.png

    Hi Kursat,

    If you want to start a virtual airline by yourself and you don't have knowledgements about programming I suggest you to read a little about.

    Here's something that will help you: https://www.php.net/manual/en/

    and for phpvms:

     Have a nice day :)!

  8. 10 hours ago, Larsje40 said:

    Hello ProSkyDesign.

    I cant figure out what i'm doing wrong.

    1: i made a new database.

    2: i downloaded the PHPVMS 7 beta version and uploaded this via Filezilla to the website.

    3: i went to www.mywebsite.com/phpvms/config/installer.php

    Than i got the error as shown in the attachment. So i don't know what i did wrong.

     

    Knipsel.zip 189.85 kB · 4 downloads

    With phpvms you only need to go to www.yoursite.com/phpvms/install route (Laravel has a router method to retrieve pretty urls)

    please be sure that the new database you have created is empty!

    If the error persist, please contact me from PM.

    you can run some artisan commands in shared hosting putting this in a file and pointing it to a route then visiting the route.

  9. 32 minutes ago, Larsje40 said:

    Maybe a dumb question, but how do you install this? In version 5.xx you made a database, uploaded all the files to the website and then use the install.php to install. how is this with this new version 7?

    THNX.

     

    is a little different,

    http://docs.phpvms.net/setup

    here's a guide for installation steps, if you have a question about, don't hesitate to send me a message and I will help you ;)!

  10. 2 minutes ago, ProAvia said:

    There is no phpVMS 5.4

    phpVMS versions

    • phpVMS 2.x - legacy version - php 4
    • phpVMS 5.5.2 - simpilot version - php 5.2-5.6
    • phpVMS v2 - legacy version (sometimes wrongly called version 5) - php 7
    • phpVMS 5.5.2.72 - phpVMS 5.5.2 updated to work with php 7.0-7.2
    • phpVMS 7 - not released yet - php 7.2 and above

    great correction, (I used to name that version for the php 5.4 compatibility lol)

  11. 3 hours ago, vicsimvp said:

    Hello all.  I am pretty new to PHPVMS but I am faced with a tough one here.  I keep getting the following error - 

    PHP Deprecated: Non-static method kACARSChatData::getMessage() should not be called statically, assuming $this from incompatible context in /home/virtualu/public_html/core/modules/kACARS_Chat/kACARS_Chat.php on line 51

    I have already made the changes as stated in the referenced link. 

    Any help is appreciated, also please assume I know very little about this.  Your simplicity will be much appreciated.

    Specs - Working on PHP version 5.6.40

    PHPVMS version - 

     

    which version of phpvms do you have?

    Simpilot 5.5.x or phpvms 5.4 (nabeel)?

  12. On 11/19/2019 at 1:59 PM, Nabeel said:

    Hi all,

    I've released phpVMS 7 beta 2, you can download it here:

    http://downloads.phpvms.net/phpvms-7.0.0-beta.2.tar.gz

    This is mostly feature complete, releasing it now to help with testing for bugs and glaring omissions. 

    Thanks!

    I can't install this version, database connection doesn't works (I put the database user, but it execute the query with empty username)

    Attached pic.

    phpvms_beta.zip

  13. 4 minutes ago, perryfincher said:

    Hmmmm

    Thanks for replying ProAvia

    It seems, every time I edit the line, I either get "Oops Something Went Wrong" or get the same previous message "For Developers Purposes Only" and asked if I own the website; which I do.

    Must be doing something wrong.

    Now Google API is a payware service (you will have some request for free but not for all), I suggest use OSM.

  14. 20 minutes ago, perryfincher said:

    I have looked around and cannot find anything within the skin or else where to enter an API Key.

    This is my local.config:

    <?php

    /**
     * This is the phpVMS Main Configuration File
     *
     * This file won't be modified/touched by future versions
     * of phpVMS, you can change your settings here
     *
     * There may also be additional settings in app.config.php
     * To change it, copy the line into this file here, for the
     * settings to take effect
     *
     */
    Config::Set('DEBUG_MODE', false);
    Config::Set('DEBUG_LEVEL', 1); // 1 logs query errors, 2 logs all queries
    Config::Set('ERROR_LEVEL', E_ALL ^ E_NOTICE);

    define('DBASE_USER', );
    define('DBASE_PASS', );
    define('DBASE_NAME', );
    define('DBASE_SERVER', 'localhost');
    define('DBASE_TYPE', 'mysqli');

    define('TABLE_PREFIX', 'phpvms_');

    define('SITE_URL', 'http://www.panamericanva.com/phpvms');

    # Page encoding options
    Config::Set('PAGE_ENCODING', 'ISO-8859-1');

    # Clean URLs - set this to true, and then uncomment
    # the lines indicated in the .htaccess file
    Config::Set('URL_REWRITE', false);

    # Maintenance mode - this disables the site to non-admins
    Config::Set('MAINTENANCE_MODE', false);
    Config::Set('MAINTENANCE_MESSAGE', 'We are currently down for maintenance, please check back soon.');

    /* Whether you have the /admin/maintenance.php script added into cron.
     If you do, set this to true. This saves many DB calls since phpVMS will
     have to 'fake' a cron-job
     */
    Config::Set('USE_CRON', false);

    Config::Set('CHECK_RELEASE_VERSION', true);
    Config::Set('CHECK_BETA_VERSION', false);

    # 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', 'lbs');

    # After how long to mark a pilot inactive, in days
    Config::Set('PILOT_AUTO_RETIRE', false);
    Config::Set('PILOT_INACTIVE_TIME', 90);

    # 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', '24');

    # If someone places a bid, whether to disable that or not
    Config::Set('DISABLE_SCHED_ON_BID', true);
    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', 20);

    # 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_PHYSICAL_MAP');
    Config::Set('MAP_LINE_COLOR', '#ff0000');
    Config::Set('MAP_CENTER_LAT', '45.484400');
    Config::Set('MAP_CENTER_LNG', '-62.334821');
    Config::Set('MAP_ZOOM_LEVEL', 12);

    # ACARS options
    #  Minutes, flights to show on the ACARS
    #  Default is 720 minutes (12 hours)
    Config::Set('ACARS_LIVE_TIME', 720);
    Config::Set('ACARS_DEBUG', false);

    # This is your airline's twitter account, if it exists
    Config::Set('TWITTER_AIRLINE_ACCOUNT', '');
    Config::Set('TWITTER_ENABLE_PUSH', false);
    Config::Set('TWITTER_CONSUMER_KEY', '');
    Config::Set('TWITTER_CONSUMER_SECRET', '');
    Config::Set('TWITTER_OAUTH_TOKEN', '');
    Config::Set('TWITTER_OAUTH_SECRET', '');

    /*
      This is the unit of money. For non-dollars, use :
     Dollars ($), enter "$"
     Euro (
     
     /* Keys for recaptcha, you can change these if you want to your own but it's
     a global key so it should just work */
    Config::Set('RECAPTCHA_PUBLIC_KEY', );
    Config::Set('RECAPTCHA_PRIVATE_KEY', );

     

    This is the core_htmlhead.php inside the skin:

    <?php
    /**
     *  STOP! HAMMER TIME!
     *
     * ====> READ THIS !!!!!
     *
     * I really really, REALLY suggest you don't edit this file.
     * Why? This is the "main header" file where I put changes for updates.
     * And you don't want to have to manually go through and figure those out.
     *
     * That equals headache for you, and headache for me to figure out what went wrong.
     *
     * BUT BUT WAIT, you say... I want to include more javascript, css, etc...!
     * Well - in your skin's header.tpl file, this file is included as:
     *
     * Template::Show('core_htmlhead.tpl');
     *
     * Just add your stuff under that line there. That way, it's in the proper
     * spot, and this file stays intact for the system (and me) to be able to
     * make clean updates whenever needed. Less bugs = happy users (and happy me)
     *
     * THANKS!
     */
    ?>
    <script type="text/javascript">
    var baseurl = "<?php echo SITE_URL;?>";
    var geourl = "<?php echo GEONAME_URL; ?>";
    </script>

    <link rel="stylesheet" media="all" type="text/css" href="<?php echo fileurl('lib/css/phpvms.css')?>" />
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo Config::Get('PAGE_ENCODING');?>" />

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js"></script>
    <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
    <script type="text/javascript" src="<?php  echo fileurl('lib/js/jquery.form.js');?>"></script>
    <script type="text/javascript" src="<?php echo fileurl('lib/js/phpvms.js');?>"></script>
    <?php
    echo $MODULE_HEAD_INC;

     

    This is in my core_htmlhead in /core/templates

    <?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?>
    <?php
    /**
     *  STOP! HAMMER TIME!
     *
     * ====> READ THIS !!!!!
     *
     * I really really, REALLY suggest you don't edit this file.
     * Why? This is the "main header" file where I put changes for updates.
     * And you don't want to have to manually go through and figure those out.
     *
     * That equals headache for you, and headache for me to figure out what went wrong.
     *
     * BUT BUT WAIT, you say... I want to include more javascript, css, etc...!
     * Well - in your skin's header.tpl file, this file is included as:
     *
     * Template::Show('core_htmlhead.tpl');
     *
     * Just add your stuff under that line there. That way, it's in the proper
     * spot, and this file stays intact for the system (and me) to be able to
     * make clean updates whenever needed. Less bugs = happy users (and happy me)
     *
     * THANKS!
     */
    ?>
    <script type="text/javascript">
    var baseurl = "<?php echo SITE_URL;?>";
    </script>

    <link rel="stylesheet" media="all" type="text/css" href="<?php echo fileurl('lib/css/phpvms.css')?>" />
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo Config::Get('PAGE_ENCODING');?>" />

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
    <script type="text/javascript" src=http://maps.google.com/maps/api/js?></script>
    <script type="text/javascript" src="<?php echo fileurl('lib/js/jquery.form.js');?>"></script>
    <script type="text/javascript" src="<?php echo fileurl('lib/js/phpvms.js');?>"></script>

    <?php
    echo $MODULE_HEAD_INC;

     

    search in lib/skins/*skin_name*/core_htmlhead the line:

    <script type="text/javascript" src=http://maps.google.com/maps/api/js?></script>

    and replace with this:

    <script src="//maps.googleapis.com/maps/api/js?key=*APIKEY*&callback=initialize"></script>

    change *APIKEY* with your API key and will work.

  15. 16 hours ago, skyguyt said:

    Worked great, thank you!

    you're welcome

    17 hours ago, ProAvia said:

    But you will loose the ability to update the schedules. And if you just delete the schedules to upload a full set again, if the DB is set to auto-increment the record number (which is the usual default), all your old data will be screwed up. For example - you upload 100 routes to a blank schedules table, so record number 1-100. Now, since you can't update any longer, you delete the old schedules and add the new/updated ones back. The record number will start with 101 - so any data stored in other tables referencing the record numbers of the previous schedules won't be able to locate that data cause you deleted it.

    Seems way more trouble than it's worth - unless you want to manually edit the DB directly.

    as ProAvia said, you will loose that feature, the best thing you can do is import de DB directly from phpmyadmin (or other mysql gestor) instead of use import function in admin panel, this will ignore that rule (because the duplicate check is created with a php if rule so in data table this rule doesn't exist).

    Other thing you can do is add to your csv a column (last column) called id and put the id of the schedule here with the format of autoincrement (starting by 1 and so...)

    in line 359 of admin/module/Import/Import.php you should add $id variable

    // 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];
                $week1 = $fields[16];
                $week2 = $fields[17];
                $week3 = $fields[18];
                $week4 = $fields[19];
                $id = $fields[20];

    in line 437 of admin/module/Import/Import.php in $data array replace the following (adding 'id' value to the data):

    $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,
                    'week1' => $week1, 'week2' => $week2, 'week3' => $week3, 'week4' => $week4,
    				'id' => $id
                );

     

  16. 13 minutes ago, skyguyt said:

    Well, that worked perfectly for adding routes in the admin center. Now I am running into the issue with importing through .csv. Any ideas on that? It goes through and adds everything which should be a little over 6,000 total flights, I go back to the main screen and it only shows a little over 3,000 and none of the duplicate numbers are added. 🤨 Any ideas?

    Open admin/modules/Import/Import.php and go to line 446

    Replace this:

    # 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++;
                }

    with this:

    # Ignore duplicate schedules:          
    $val = SchedulesData::addSchedule($data);
    $added++;
             

    this will allow you import schedules with duplicate flight code but I guess you should delete first all your schedules and then import news because this won't update the duplicate flights this will append data.

  17. I develop a module to calificate your pilots flights with penalties recorded by the flight log, compatible with smartCARS,

    you can modify the value of penalty on admin panel and it will modify automatically the pirep rating.

    Aditional features:

    - Pirep Rating

    - Pilot Average Rating

    - Pirep List Of Penalties

    - Admin Panel Settings

    - Admin Panel Pirep Pending Flight Rating Details

    Check Attached Pics.

    You Can Send me a PM to talk more about.

    Pay method: Paypal

    Price: 30 USD

    This will include life-time updates!

    Don't forget to visit our site: https://www.proskydesign.me

    CAUTION!!: PICTURES ARE ONLY AN EXAMPLE  OF A INTEGRATION IN A WEBSITE, THE MODULE DOESN'T INCLUDE SKINNING TEMPLATE.

    2.png3.png4.png5.png6.png7.png8.png

×
×
  • Create New...