| Server IP : 43.130.17.34 / Your IP : 216.73.217.6 Web Server : nginx/1.28.0 System : Linux VM-4-12-opencloudos 6.6.92-34.1.oc9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 25 21:32:13 CST 2025 x86_64 User : www ( 1000) PHP Version : 8.0.26 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/yespkg.com/wp-content/plugins/google-analytics-for-wordpress/lite/includes/ |
Upload File : |
<?php
add_action('init', function () {
if ( is_admin() ) {
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/admin/tools.php';
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/admin/metaboxes.php';
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/admin/woocommerce-marketing.php';
}
if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) ) {
$overview_report = new MonsterInsights_Report_Overview();
MonsterInsights()->reporting->add_report( $overview_report );
$site_summary = new MonsterInsights_Report_Site_Summary();
MonsterInsights()->reporting->add_report( $site_summary );
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/admin/reports/report-publisher.php';
$publisher_report = new MonsterInsights_Lite_Report_Publisher();
MonsterInsights()->reporting->add_report( $publisher_report );
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/admin/reports/report-ecommerce.php';
$ecommerce_report = new MonsterInsights_Lite_Report_eCommerce();
MonsterInsights()->reporting->add_report( $ecommerce_report );
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/admin/reports/report-queries.php';
$queries_report = new MonsterInsights_Lite_Report_Queries();
MonsterInsights()->reporting->add_report( $queries_report );
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/admin/reports/report-dimensions.php';
$dimensions_report = new MonsterInsights_Lite_Report_Dimensions();
MonsterInsights()->reporting->add_report( $dimensions_report );
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/admin/reports/report-forms.php';
$forms_report = new MonsterInsights_Lite_Report_Forms();
MonsterInsights()->reporting->add_report( $forms_report );
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/admin/reports/report-realtime.php';
$realtime_report = new MonsterInsights_Lite_Report_RealTime();
MonsterInsights()->reporting->add_report( $realtime_report );
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/admin/reports/report-year-in-review.php';
$year_in_review = new MonsterInsights_Lite_Report_YearInReview();
MonsterInsights()->reporting->add_report( $year_in_review );
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/admin/reports/report-summaries.php';
$summaries = new MonsterInsights_Report_Summaries();
MonsterInsights()->reporting->add_report( $summaries );
// Email summaries related classes
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/emails/summaries-infoblocks.php';
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/emails/summaries.php';
new MonsterInsights_Email_Summaries();
}
if ( is_admin() ) {
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/admin/dashboard-widget.php';
new MonsterInsights_Dashboard_Widget();
// Load the Welcome class.
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/admin/welcome.php';
// Load the MonsterInsights Connect class.
if ( isset( $_GET['page'] ) && 'monsterinsights-onboarding' === $_GET['page'] ) { // phpcs:ignore -- CSRF ok, input var ok.
// Only load the Onboarding wizard if the required parameter is present.
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/admin/onboarding-wizard.php';
}
// Common Site Health logic
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/wp-site-health.php';
// Lite-only Site Health logic.
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/admin/wp-site-health.php';
// Helper functions specific to this version of the plugin.
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/admin/helpers.php';
// Initialize User Journey.
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/admin/user-journey/init.php';
}
if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) ) {
// SharedCounts functionality.
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/sharedcount.php';
}
// Popular posts.
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/popular-posts/class-popular-posts-themes.php';
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/popular-posts/class-popular-posts.php';
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/popular-posts/class-popular-posts-helper.php';
// Lite popular posts specific.
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/popular-posts/class-popular-posts-inline.php';
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/popular-posts/class-popular-posts-cache.php';
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/popular-posts/class-popular-posts-widget.php';
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/popular-posts/class-popular-posts-widget-sidebar.php';
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/popular-posts/class-popular-posts-ajax.php';
// Lite Gutenberg blocks.
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/gutenberg/frontend.php';
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/connect.php';
// Run hook to load MonsterInsights addons.
do_action( 'monsterinsights_load_plugins' ); // the updater class for each addon needs to be instantiated via `monsterinsights_updater`
});