| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Real Time Visitor Statistics |
| 4 |
* Plugin URI: http://plugins-market.com/contact-us |
| 5 |
* Description: This plugin will track the web analytics for each page and show various analytics report in admin panel as well as in front end. |
| 6 |
* Version: 2.4 |
| 7 |
* Author: osamaesh |
| 8 |
* Author URI: http://plugins-market.com/ |
| 9 |
* Developer: Prism I.T. Systems |
| 10 |
* Developer URI: http://www.prismitsystems.com |
| 11 |
* Text Domain: wp-stats-manager |
| 12 |
* Domain Path: /languages |
| 13 |
* Copyright: � 2009-2017 PRISM IT SYSTEMS. |
| 14 |
* License: GNU General Public License v3.0 |
| 15 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html |
| 16 |
**/ |
| 17 |
if ( ! defined( 'ABSPATH' ) ) { |
| 18 |
die( 'Access denied.' ); |
| 19 |
} |
| 20 |
require_once( ABSPATH. 'wp-includes/pluggable.php'); |
| 21 |
//error_reporting(E_ALL ^ E_NOTICE); |
| 22 |
|
| 23 |
|
| 24 |
define( 'WSM_PREFIX','wsm' ); |
| 25 |
define( 'WSM_NAME',__('Visitor Statistics (Free)') ); |
| 26 |
define( 'WSM_DIR', plugin_dir_path( __FILE__ ) ); |
| 27 |
define( 'WSM_URL', plugin_dir_url( __FILE__ ) ); |
| 28 |
define( 'WSM_FILE', __FILE__ ); |
| 29 |
define( 'WSM_ONLINE_SESSION',15 ); //DEFINE ONLINE SESSION TIME IN MINUTES |
| 30 |
define( 'WSM_PAGE_LIMIT',10 ); //DEFINE ONLINE SESSION TIME IN MINUTES |
| 31 |
global $wsmAdminColors,$wsmAdminJavaScript,$wsmAdminPageHooks,$wsmRequestArray,$arrCashedStats; |
| 32 |
$wsmAdminJavaScript=''; |
| 33 |
$wsmAdminPageHooks=array(); |
| 34 |
$wsmRequestArray=array(); |
| 35 |
if(isset($_REQUEST) && is_array($_REQUEST)){ |
| 36 |
$wsmRequestArray=$_REQUEST; |
| 37 |
} |
| 38 |
include_once(WSM_DIR .'includes/'. WSM_PREFIX."_init.php"); |
| 39 |
wsmInitPlugin::initWsm(); |