exit;
}
if (isset($_POST["linkuser"])) {
    websites_privs_add();
    exit;
}
if (isset($_POST["uid-delete"])) {
    websites_privs_del();
    exit;
}
if (isset($_GET["popup-webserver-tabs"])) {
    websites_popup_tabs();
    exit;
}
if (isset($_POST["servername-edit"])) {
    websites_save();
    exit;
}
if (isset($_POST["website-delete"])) {
    websites_delete();
    exit;
}
if (isset($_GET["popup-webserver-replace"])) {
    websites_popup_webserver_replace_section();
    exit;
}
if (isset($_GET["popup-webserver-replace-search"])) {
    websites_popup_webserver_replace_search();
    exit;
}
if (isset($_GET["popup-webserver-replace-js"])) {
	include_once('ressources/class.squid.categorize.generic.inc');
	header("Pragma: no-cache");	
	header("Expires: 0");
	header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
	header("Cache-Control: no-cache, must-revalidate");	
	$user=new usersMenus();
	if(!$user->AsWebStatisticsAdministrator){
		$tpl=new templates();
		echo "alert('".$tpl->javascript_parse_text("{ERROR_NO_PRIVS}").");";
		exit;
		
	}
	
	
	if(isset($_GET["websites-test"])){websitelist();exit;}
	if(isset($_POST["websites-add"])){websites_save();exit;}
	if(isset($_POST["websites-analyze"])){websites_analyze();exit;}
	if(isset($_POST["ffCatAdd"])){ffCatAdd();exit;}
	if(isset($_GET["AddWebsites-popup"])){AddWebsites_popup();exit;}
	if(isset($_POST["websites-delete"])){websites_delete();exit;}
	if(isset($_POST["PerformProposal"])){PerformProposal();exit;}
	if(isset($_POST["retry-analyze"])){retry_analyze();exit;}
	if(isset($_REQUEST["WEBTESTS"])){WEBTESTS();exit;}
	if(isset($_POST["import-artica"])){import_artica_fr();exit;}
page();


function WEBTESTS(){
	
$www=$_REQUEST["WEBTESTS"];
$q=new mysql_squid_builder();