Your IP : 216.73.216.90


Current Path : /home/semix18/public_html/optimum-wycena.pl/modules/Stats/
Upload File :
Current File : /home/semix18/public_html/optimum-wycena.pl/modules/Stats/admin.php

<?php

if (!defined('LOADED_AS_ADMIN_MODULE'))
{ 
		require_once('../../core/Dobi.php');  
		Dobi::exception('dobiExcDirectAccess', 1, '', 'direct');
}

class StatsAdmin implements DobiAdminModule
{
	
	private $adminA_current_action_to_run;
	
	public function __construct($adminA_current_action_to_run)
	{
		$this->adminA_current_action_to_run = $adminA_current_action_to_run;
	}
	
	public function _defaultAction() 
	{
	    return $this->view();	 
	}
	
	public function _executeAction() 
	{
	   	if (!Registry::getObject('session')->getUserAccess(LA_INFORMATION))
	   	{
	   		echo '<span style="font-weight: bold;">'._ACCESS_DENIED_.'</span> ' . _ACCESS_DENIED_MSG_;
			return;   
		}
	    $go = $this->adminA_current_action_to_run;
	    $this->$go();	  
	}
	
	public function view()
	{
		$stats = new stats();  
	 	$online = $stats->getOnline();
	 	$uDaily = $stats->getUniqueDailyStats();
	 	$daily = $stats->getDailyStats();
	 	$uTotal = $stats->getUniqueTotalStats();
	 	$total = $stats->getTotalStats();
		include('modules/Stats/tpl.content.php');	
 	}
	
}

?>