exit;
}
if (isset($_GET["search-stats-categories"])) {
    site_infos_categories();
    exit;
}
if (isset($_POST["action_delete_from_category"])) {
    action_delete_from_category();
    exit;
}
if (isset($_POST["action_compile_category"])) {
    action_compile_category();
    exit;
}
if (isset($_GET["ChangeFilterCatz-popup"])) {
    ChangeFilterCatz_popup();
    exit;
}
// json();exit;}
start();
function whoissave_js()
{
    $page = CurrentPageName();
    $idcallbackJS = null;
    $idcallback = $_GET["idcallback"];
    if ($idcallback != null) {
        $idcallbackJS = "if(document.getElementById('{$idcallback}')){LoadAjax('{$idcallback}','squid.search.statistics.php?site-infos={$_GET["whoissave-js"]}&idcallback={$idcallback}&disposition={$_GET["disposition"]}&gen-thumbnail={$_GET["gen-thumbnail"]}');}";
    }
    $html = "\nvar x_WhoisSave= function (obj) {\n\tvar tempvalue=obj.responseText;\n\tif(tempvalue.length>3){alert(tempvalue);}\n\tif(document.getElementById('search-stats-forms')){SearchLeftInfos();}\n\t{$idcallbackJS}\n}\t\t\n\t\n\t\n\tfunction WhoisSave(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('whoissave','{$_GET["whoissave-js"]}');\n\t\tAnimateDiv('search-stats-forms');\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_WhoisSave);\t\n\t}\t\n\tWhoisSave();\n\t";
    echo $html;
}
	include_once('ressources/class.artica.graphs.inc');
	
	$users=new usersMenus();
	if(!$users->AsWebStatisticsAdministrator){die();}
	if(isset($_GET["search-stats-forms"])){left_forms();exit;}
	if(isset($_GET["search-stats-results"])){right_datas();exit;}
	if(isset($_GET["ok"])){if(isset($_POST["qtype"])){json();exit;}}
	if(isset($_GET["familysite-show"])){jstable_familysite();exit;}
	if(isset($_GET["familysite"])){json_familysite();exit;}
	if(isset($_GET["site-infos"])){site_infos();exit;}
	if(isset($_GET["whoissave-js"])){whoissave_js();exit;}
	if(isset($_POST["whoissave"])){whoissave_perform();exit;}
	if(isset($_GET["search-stats-categories"])){site_infos_categories();exit;}
	if(isset($_POST["action_delete_from_category"])){action_delete_from_category();exit;}
	if(isset($_POST["action_compile_category"])){action_compile_category();exit;}
	if(isset($_GET["ChangeFilterCatz-popup"])){ChangeFilterCatz_popup();exit;}
	
	
	// json();exit;}
	start();
	
function whoissave_js(){
	$page=CurrentPageName();
	$idcallbackJS=null;
	$idcallback=$_GET["idcallback"];
	if($idcallback<>null){
		$idcallbackJS="if(document.getElementById('$idcallback')){LoadAjax('$idcallback','squid.search.statistics.php?site-infos={$_GET["whoissave-js"]}&idcallback=$idcallback&disposition={$_GET["disposition"]}&gen-thumbnail={$_GET["gen-thumbnail"]}');}";
	}
	
	$html="
var x_WhoisSave= function (obj) {