Jump to content

DesComm

Members
  • Posts

    116
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by DesComm

  1. phpVMS version? -  simpilot 5.5.2

    PHP version?  5.6.40
    MySQL/MariaDB version? MySQL 5.7.31

    Shared hosting or VPN? -   Dedicated - Ubuntu 16.04.7 LTS

     

     

  2. Where is the code located that updates a pilots status when "retired"  Two issues.

     

    1. When a pilot is inactive it is getting set as "on Leave" 3 in the database.  Should be set as "inactive" 1 in the database.

    2.  Where are the definitions  located for retired status currently 

    • 0 = Active
    • 1 = Inactive
    • 2 = Locked
    • 3 = On Leave

     

    Thanks hope every is staying healthy

  3. Clicking on the dropdown and typing only causes the list to jump to what ever letter you type.  For example if you were trying to get KLAX the K takes you to the top of the K list and then the L jumps to the L's and A to 'All'.  

    I Am asking if someone has the code already.  

  4. Has anyone modified the way Airports are selected.  Instead of having to scroll down thru a long list, entry by using the IACO code.  Similar to what FlightAware has.  For example only entering KLAX or EDDFF.  There are over 2500 Airports worldwide that have commercial traffic.  It is a real pain having to scroll down thru a list.

  5. 18 hours ago, ProAvia said:

    What version of phpVMS are you using?

    What browser are you using to view the main admin page?

    PHPvms V5.5.2 and all browsers, IE, Chrome, Firefox and IOS on Ipad.  The graph shows some of the time but no data is showing.

    Curious where does the number of Guests data come from?

     

     

     

  6. The graph that shows Pireps Counts during the past 30 days is stuck and "loading: just keeps spinning.  No graph is being displayed.  This was a convenient way for Admins to see a VA's priep counts during the past month.  Is there a fix for this?

     

  7. Where is are the login messages located?  Specifically if a pilot is in active the get the following message on their screen "Your account was marked inactive".  Where is this message in the code so it can be changed?

  8. Currently when a pilot is market inactive/Retired they have to contact Staff to to change their status.  Where is this set in the code?  We want them to be able to file a PIREP and change their status back to active.  The filing can be done either manually or via ACARS.

     

    • Like 1
  9. This from the original file StatsData.Class.php  Here is the section w/ Line 171

     

        /**
         * Get all of the months since a certain date
         */
        public static function getMonthsSinceDate($start) {
            
            $key_month = date('MY', $start);   (note this is Line 171)
            $key = 'months_since_' . $key_month;
            $months = CodonCache::read($key);

            if ($months === false) {
                if (!is_numeric($start)) {
                    $start = strtotime($start);
                }

                $end = date('Ym');

                do {
                    # Get the months
                    $month = date('M Y', $start);
                    $months[$month] = $start; # Set the timestamp
                    $start = strtotime('+1 month +1 day', strtotime($month));

                    # Convert to YYYYMM to compare
                    $check = intval(date('Ym', $start));

                } while ($check <= $end);

                CodonCache::write($key, $months, 'long');
            }

            return $months;
        }

        /**

  10. 1 hour ago, Nabeel said:

    It's best to keep it here in case it helps anyone else. Was there an output from the $start? What if you run the script "by hand" on the command line?

    Output is the same with and w/o $start

     

    When run manually here is what shows:

    1. in /var/www/vhosts/,,,,,,.com/test.,,,,,,,.com/core/common/StatsData.class.php on line 171
    2. Reset PIREP Counts - list of pilots
    3. Updating Total Hours Count - calculating hours this OK
    4. Now counting from PIREPS - OK  Found 127473:46:00 total hours, updated

    When CRON is run this is the message that system sends:

    Notice: A non well formed numeric value encountered in /var/www/vhosts/,,,,,,.com/test.,,,,,,,.com/core/common/StatsData.class.php on line 171
            <div id="codon_crit_error"
                style="font-family: 'Lucida Sans',Verdana;border:#999 1px solid;background-color:#fff;padding:20px 20px 12px 20px;">
                <h1 style="font-family: verdana; font-weight:16px;font-size:18px;color:#6B001B;margin:0 0 4px 0;">An Error Was Encountered</h1>
                <p style="font-size: 16px; color: #001B6B">Unauthorized access - Invalid Permissions.</p>
                <p style="font-size: 10px;"><center><a href="http://test.,,,,,,,,.com">Return to Homepage</a></p>
            </div>

     

     

  11. Has anyone added the new API for Google maps?  If so what changes were necessary.

    I have already read all the conversion info/posts.  Seems like everyone is against giving Google their Credit Card.  Just so haappens we have other products from them and they have all our info already.  There should be a fix giving people an alternative of which product they want to use.

     

×
×
  • Create New...