$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();
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body("{purge_statistics_database}");
	//$html="YahooWin4('821','$page?popup=yes','$title');";
	
Exemplo n.º 2
0
    exit;
}
if (isset($_GET["remove-numeric-members-js"])) {
    remove_numeric_members_js();
    exit;
}
if (isset($_POST["remove-numeric-members"])) {
    remove_numeric_members_perform();
    exit;
}
if (isset($_GET["backup-db-js"])) {
    backup_db_js();
    exit;
}
if (isset($_POST["backup-db-perform"])) {
    backup_db_perform();
    exit;
}
main_page();
function main_page()
{
    //annee=2012&mois=9&jour=22
    $page = CurrentPageName();
    $tplfile = "ressources/templates/endusers/index.html";
    if (!is_file($tplfile)) {
        echo "{$tplfile} no such file";
        die;
    }
    $content = @file_get_contents($tplfile);
    $content = str_replace("{SCRIPT}", "<script>LoadAjax('globalContainer','{$page}?content=yes&year={$_GET["year"]}&month={$_GET["month"]}&day={$_GET["day"]}&week={$_GET["week"]}')</script>", $content);
    echo $content;