Your IP : 216.73.216.240
<?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;
}
}
?>