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(){
	header("content-type: application/x-javascript");
	$page=CurrentPageName();
    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"])) {