include_once('ressources/class.artica.inc');
	include_once('ressources/class.ini.inc');
	include_once('ressources/class.squid.inc');
	include_once('ressources/class.system.network.inc');
	
	
	$user=new usersMenus();
	if($user->AsWebStatisticsAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}	
	
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["tabs"])){tabs();exit;}
	if(isset($_GET["title"])){tables_title();exit;}
	if(isset($_GET["schedules"])){schedules();exit;}
	if(isset($_GET["purge-bydate"])){purge_bydate();exit;}
	if(isset($_POST["ArticaProxyStatisticsBackupFolder"])){Save();exit;}
	
	if(isset($_GET["backup-db-js"])){backup_db_js();exit;}
	if(isset($_POST["backup-db-perform"])){backup_db_perform();exit;}
	
	if(isset($_GET["remove-db-js"])){remove_database_js();exit;}
	if(isset($_POST["remove-all-data"])){remove_database_perform();exit;}
	
	
	
js();

function js(){
}
if (isset($_GET["search-events-daemon"])) {
    events_table_daemon();
    exit;
}
$PRIV = GetPrivs();
if (!$PRIV) {
    header("location:miniadm.index.php");
    die;
}
if (isset($_GET["status"])) {
    status();
    exit;
}
if (isset($_GET["db-stats"])) {
    tables_title();
    exit;
}
if (isset($_GET["settings"])) {
    engine_params();
    exit;
}
if (isset($_POST["max_connections"])) {
    tune_save();
    exit;
}
if (isset($_GET["events"])) {
    events();
    exit;
}
if (isset($_GET["events-rotate"])) {