include_once dirname(__FILE__) . '/includes/functions/parse-user-agent.php'; include_once dirname(__FILE__) . '/includes/classes/statistics.class.php'; // This is our global WP_Statitsics class that is used throughout the plugin. $WP_Statistics = new WP_Statistics(); // Check to see if we're installed and are the current version. $WPS_Installed = get_option('wp_statistics_plugin_version'); if ($WPS_Installed != WP_STATISTICS_VERSION) { include_once dirname(__FILE__) . '/wps-install.php'; } // Load the update functions for GeoIP and browscap.ini (done in a separate file to avoid a parse error in PHP 5.2 or below) include_once dirname(__FILE__) . '/wps-updates.php'; // Load the rest of the required files for our global functions, online user tracking and hit tracking. include_once dirname(__FILE__) . '/includes/functions/functions.php'; include_once dirname(__FILE__) . '/includes/classes/hits.class.php'; // If GeoIP is enabled and supported, extend the hits class to record the GeoIP information. if ($WP_Statistics->get_option('geoip') && wp_statistics_geoip_supported()) { include_once dirname(__FILE__) . '/includes/classes/hits.geoip.class.php'; } // Finally load the widget, dashboard, shortcode and scheduled events. include_once dirname(__FILE__) . '/widget.php'; include_once dirname(__FILE__) . '/dashboard.php'; include_once dirname(__FILE__) . '/editor.php'; include_once dirname(__FILE__) . '/shortcode.php'; include_once dirname(__FILE__) . '/schedule.php'; include_once dirname(__FILE__) . '/ajax.php'; // This function outputs error messages in the admin interface if the primary components of WP Statistics are enabled. function wp_statistics_not_enable() { global $WP_Statistics; // If the user had told us to be quite, do so. if (!$WP_Statistics->get_option('hide_notices')) {
include_once dirname(__FILE__) . '/vendor/donatj/phpuseragentparser/Source/UserAgentParser.php'; include_once dirname(__FILE__) . '/includes/classes/statistics.class.php'; // This is our global WP_Statitsics class that is used throughout the plugin. $WP_Statistics = new WP_Statistics(); // Check to see if we're installed and are the current version. $WPS_Installed = get_option('wp_statistics_plugin_version'); if ($WPS_Installed != WP_STATISTICS_VERSION) { include_once dirname(__FILE__) . '/wps-install.php'; } // Load the update functions for GeoIP and browscap.ini (done in a separate file to avoid a parse error in PHP 5.2 or below) include_once dirname(__FILE__) . '/wps-updates.php'; // Load the rest of the required files for our global functions, online user tracking and hit tracking. include_once dirname(__FILE__) . '/includes/functions/functions.php'; include_once dirname(__FILE__) . '/includes/classes/hits.class.php'; // If GeoIP is enabled and supported, extend the hits class to record the GeoIP information. if ($WP_Statistics->get_option('geoip') && wp_statistics_geoip_supported()) { include_once dirname(__FILE__) . '/includes/classes/hits.geoip.class.php'; } // Finally load the widget, dashboard, shortcode and scheduled events. include_once dirname(__FILE__) . '/widget.php'; include_once dirname(__FILE__) . '/dashboard.php'; include_once dirname(__FILE__) . '/editor.php'; include_once dirname(__FILE__) . '/shortcode.php'; include_once dirname(__FILE__) . '/schedule.php'; include_once dirname(__FILE__) . '/ajax.php'; // This function outputs error messages in the admin interface if the primary components of WP Statistics are enabled. function wp_statistics_not_enable() { global $WP_Statistics; // If the user had told us to be quite, do so. if (!$WP_Statistics->get_option('hide_notices')) {