Jump to content

thefiercepilot

Members
  • Posts

    13
  • Joined

  • Last visited

Posts posted by thefiercepilot

  1. @Parkho

    Warning: Invalid argument supplied for foreach() in /storage/ssd3/285/3946285/public_html/core/templates/toppilot/bestrevenue.php on line 4
    PILOT ID	NAME	RANK	AMOUNT

    I saw @parthprakash1 Error above too. Could it be because all the pireps that r in are manual or because there is no user other than me?

  2. I don;t know if it is a problem on my end but sava's loa repo is not opening. I am getting these errors on client side:

    Deprecated: Non-static method LoAData::CheckPilotID() should not be called statically, assuming $this from incompatible context in /storage/ssd3/285/3946285/public_html/core/modules/LoA/LoA.php on line 66
    
    Deprecated: Non-static method LoAData::AddLoa() should not be called statically, assuming $this from incompatible context in /storage/ssd3/285/3946285/public_html/core/modules/LoA/LoA.php on line 76

    And these on the admin side:

    Deprecated: Non-static method LoAData::GetAllRequests() should not be called statically, assuming $this from incompatible context in /storage/ssd3/285/3946285/public_html/admin/modules/LoA/LoA.php on line 35
    
    Warning: fgetcsv() expects parameter 1 to be resource, boolean given in /storage/ssd3/285/3946285/public_html/admin/modules/LoA/LoA.php on line 83
    
    Warning: fclose() expects parameter 1 to be resource, boolean given in /storage/ssd3/285/3946285/public_html/admin/modules/LoA/LoA.php on line 84

     

  3. I was wondering if there was a way we could check if pireps are accepted or unaccepted. I was think of something like we can check if the user is an admin or not if he is then the system would check if there are unaccepted pireps. If there are the user would be redirected to the admin page or could be given a notification?

  4. phpVMS Build Number: simpilot 5.5.2 
    
    Checking PHP version
    [OK] PHP version is 5.5.38.x
    
    ASP Tags
    [OK] ASP-style tags are disabled
    
    Checking connectivity...
    [OK] Can contact outside servers
    
    Checking for SimpleXML module...
    [OK] SimpleXML module exists!
    
    Checking file hashes for corrupt or mismatched files
    [Checksum failed] /admin/modules/Reports/Reports.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/modules/PilotRanking/PilotRanking.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/modules/Import/Import.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/modules/Dashboard/Dashboard.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/modules/MassMailer/MassMailer.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/modules/VACentral/VACentral.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/modules/TemplateDiffs/TemplateDiffs.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/modules/Operations/Operations.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/lib/phpvmsadmin.js did not match, possibly corrupt or out of date
    [Error] ../admin/lib/layout_dark/footer.tpl doesn't exist
    [Error] ../admin/lib/layout/header.tpl doesn't exist
    [Checksum failed] /admin/maintenance.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/sidebar_groups.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/diff_showdiff.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/core_sidebar.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/downloads_categoryform.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/sidebar_customfields.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/pireps_list.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/groups_groupform.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/settings_addsetting.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/reports_aircraft.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/ops_airportform.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/pilots_addawards.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/sidebar_import.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/settings_pirepfieldsform.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/logs_index.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/route_map.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/sidebar_aircraft.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/settings_customfieldsform.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/settings_addpirepfield.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/ranks_allranks.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/pilots_addtogroup.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/sidebar_downloads.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/sidebar_editschedule.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/sidebar_dashboard.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/sidebar_addpage.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/pilots_list.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/import_aircraftform.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/maintenance_changepilotid.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/vacentral_index.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/finance_summarysheet.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/sidebar_mailer.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/pirep_edit.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/pirepadmin_approved.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/ops_scheduleform.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/sidebar_airlines.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/sidebar_airports.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/finance_balancesheet.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/finance_expenseform.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/ops_aircraftform.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/sidebar_ranks.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/core_error.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/pilots_detailtabs.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/ranks_rankform.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/pages_allpages.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/sidebar_pirepfields.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/core_htmlreq.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/pireps_filter.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/sidebar_maintenance.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/news_list.php did not match, possibly corrupt or out of date
    [Checksum failed] /admin/templates/news_additem.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/vendors/orm/paris.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/modules/Pilots/Pilots.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/modules/Activity/Activity.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/modules/Profile/Profile.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/modules/ACARS/ACARS.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/modules/kACARS_Free/kACARS_Free.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/app.config.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/hooks/system/autoload.php.1 did not match, possibly corrupt or out of date
    [Checksum failed] /core/classes/CodonEvent.class.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/classes/TemplateSet.class.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/classes/ezdb/ezdb_base.class.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/common/ActivityData.class.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/common/ACARSData.class.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/common/Countries.class.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/common/FuelData.class.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/common/OperationsData.class.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/common/FinanceData.class.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/common/PilotData.class.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/common/PIREPData.class.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/common/SettingsData.class.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/common/PilotGroups.class.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/downloads_list.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/login_complete.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/download_item.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/login_notfound.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/registration_autoconfirm.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/login_already.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/login_rejected.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/pireps_airportdropdown.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/news_newsitem.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/fsfk_pirep_config.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/xacars_config.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/frontpage_recentpilots.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/fsfk_vaconfig.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/registration_sentconfirmation.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/profile_myroutesmap.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/finance_header.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/registration_customfields.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/pilots_list.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/login_form.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/core_navigation.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/finance_summarysheet.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/contact_sent.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/registration_complete.php did not match, possibly corrupt or out of date
    [Error] ../core/templates/fsfk_log_flig.phpan.tpl doesn't exist
    [Checksum failed] /core/templates/reqlogin.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/fsfk_liveacars_config.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/frontpage_main.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/schedule_searchform.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/activity_list.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/fspax_config.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/schedule_bids.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/schedule_boarding_pass.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/pages_notfound.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/core_htmlreq.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/email_pilot_retired.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/pirep_editform.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/flown_routes_map.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/profile_main.php did not match, possibly corrupt or out of date
    [Checksum failed] /core/templates/core_success.php did not match, possibly corrupt or out of date
    [Checksum failed] /lib/js/phpvms.js did not match, possibly corrupt or out of date
    [Checksum failed] /install/sql/install.sql did not match, possibly corrupt or out of date
    [Checksum failed] /install/dbtest.php did not match, possibly corrupt or out of date
    [Error] ../install/templates/header.tpl doesn't exist
    [Error] ../install/templates/config.tpl doesn't exist
    [Error] ../install/templates/s2_site_setup.tpl doesn't exist
    [Error] ../install/templates/error.tpl doesn't exist
    [Error] ../install/templates/footer.tpl doesn't exist
    [Checksum failed] /index.php did not match, possibly corrupt or out of date

    Is what I get when I try to install. I have removed all files twice deleted and reloaded all databases redownloaded and reuploaded the files. But still I get these errors. Is it normal or something is wrong with the install?

  5. I am trying to make charts for the pilot as well as va no of flights per month. The code I am currently using is-

    var chartSales = new Chart(chartSalesContainer, {
                    type: 'line',
                    data: {
                        labels: ['JAN','FEB','MAR'],
                        datasets: [
                            {
                                label: 'Months',
                                fill: true,
                                backgroundColor: 'rgba(255,193,7,.75)',
                                borderColor: 'rgba(255,193,7,1)',
                                pointBackgroundColor: 'rgba(255,193,7,1)',
                                pointBorderColor: '#fff',
                                pointHoverBackgroundColor: '#fff',
                                pointHoverBorderColor: 'rgba(255,193,7,1)',
                                data: [0,12,13]
                            }
                          ]
                    },
                    options: {
                        scales: {
                            yAxes: [{
                                ticks: {
                                    suggestedMax: 50
                                }
                            }]
                        },
                        tooltips: {
                            callbacks: {
                                label: function(tooltipItems, data) {
                                    return ' ' + tooltipItems.yLabel + ' Flights';
                                }
                            }
                        }
                    }
                });

    How should I change my code so that instead of manually typing data: [0,12,13] and labels: ['JAN','FEB','MAR'] it automatically gets data form the VMS? Can someone provide me with a link to or the code it self.

    Thanks!

  6. 15 hours ago, lorathon said:
    
    public static function get_landing_average($pilotid)
        {
            $sql = 'SELECT (SUM(landingrate) / COUNT(pirepid)) as avg FROM `' . TABLE_PREFIX . 'pireps`
                       WHERE landingrate < 0
                       AND pilotid = ' . $pilotid . '
                       ORDER BY landingrate DESC';
            
            $res = DB::get_row($sql);        
            return $res->avg;
        }
        

     

    @lorathon 2 things-

    • Where do I put this code
    • Which variable contains the pilot's individual landing rate?

    I'm guessing it's $res->avg?

  7. I tried some code but got this :

    Fatal error: Cannot redeclare TouchdownStatsData::pilot_stats() in /storage/ssd5/341/1107341/public_html/core/common/TouchdownStatsData.class.php on line 99

    I had used:

    public function pilot_stats($pilotid)   {
           $query = "SELECT pilotid, code, flightnum, depicao, arricao, aircraft, landingrate, submitdate FROM `".TABLE_PREFIX."pireps`
                       WHERE landingrate < '0'
                       AND pilotid = '$pilotid'
                       ORDER BY landingrate DESC";
    
           return DB::get_results($query);
       }
    
       public function pilot_average($pilotid) {
           $stats = self::pilot_stats($pilotid);
           $total = 0;
           $count = 0;
    
           foreach ($stats as $stat)
               {
               $total = $total + $stat->landingrate;
               $count++;
           }
           $average = $total / $count;
    
           return $average;
       }
    
       public function airline_average() {
           $stats = self::get_all_stats();
           $total = 0;
           $count = 0;
    
           foreach ($stats as $stat)
               {
               $total = $total + $stat->landingrate;
               $count++;
           }
           $average = $total / $count;
    
           return $average;
       }

    I'm sure I'm not redeclaring

    @servetas

×
×
  • Create New...