include_once 'ressources/class.squid.users.inc';
$user = new usersMenus();
if (isset($_GET["popup-script"])) {
    popup();
    exit;
}
if (isset($_GET["popup-tabs"])) {
    popup_tabs();
    exit;
}
if (isset($_GET["popup-add-proxy"])) {
    popup_add_proxy();
    exit;
}
if (isset($_GET["proxy_addr"])) {
    popup_add_proxy_save();
    exit;
}
if (isset($_GET["proxylist"])) {
    popup_add_proxy_list();
    exit;
}
if (isset($_GET["del_proxy_addr"])) {
    popup_del_proxy_list();
    exit;
}
if (isset($_GET["view"])) {
    popup_script();
    exit;
}
if (isset($_GET["popup-view-script"])) {
	include_once('ressources/class.squid.inc');
	include_once('ressources/class.system.network.inc');
	
		$user=new usersMenus();
	if($user->AsSquidAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}	
	
	if(isset($_GET["popup-script"])){popup();exit;}
	if(isset($_GET["popup-tabs"])){popup_tabs();exit;}
	
	
	if(isset($_GET["popup-add-proxy"])){popup_add_proxy();exit;}
	if(isset($_GET["proxy_addr"])){popup_add_proxy_save();exit;}
	if(isset($_GET["proxylist"])){popup_add_proxy_list();exit;}
	if(isset($_GET["del_proxy_addr"])){popup_del_proxy_list();exit;}
	if(isset($_GET["view"])){popup_script();exit;}
	if(isset($_GET["popup-view-script"])){popup_script();exit;}
	
	if(isset($_GET["final_proxy_addr"])){popup_add_final_proxy_save();exit;}
	if(isset($_GET["popup-final-proxy"])){popup_add_final_proxy();exit;}
	if(isset($_GET["del_proxy_final_addr"])){popup_del_final_proxy_list();exit;}
	
	
	if(isset($_GET["localHostOrDomainIs"])){popup_localHostOrDomainIs();exit;}
	if(isset($_GET["localHostOrDomainIs-add"])){popup_localHostOrDomainIs_add();exit;}
	if(isset($_GET["localHostOrDomainIs-list"])){popup_localHostOrDomainIs_list();exit;}
	if(isset($_GET["localHostOrDomainIs-del"])){popup_localHostOrDomainIs_del();exit;}