Exemplo n.º 1
0
    die;
}
if (isset($_GET["hosts"])) {
    hosts();
    exit;
}
if (isset($_GET["host-js"])) {
    hosts_js();
    exit;
}
if (isset($_GET["host-popup"])) {
    hosts_popup();
    exit;
}
if (isset($_GET["host-tab"])) {
    hosts_tab();
    exit;
}
if (isset($_GET["delete-host-js"])) {
    hosts_js_delete();
    exit;
}
if (isset($_POST["delete-host-id"])) {
    hosts_delete();
    exit;
}
if (isset($_POST["ID"])) {
    hosts_save();
    exit;
}
if (isset($_GET["host-aliases"])) {
Exemplo n.º 2
0
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.squid.inc');
	include_once('ressources/class.tcpip.inc');
	
$usersmenus=new usersMenus();
if(!$usersmenus->AsSquidAdministrator){
	$tpl=new templates();
	$alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
	echo "alert('$alert');";
	die();	
}

if(isset($_GET["hosts"])){hosts();exit;}
if(isset($_GET["host-js"])){hosts_js();exit;}
if(isset($_GET["host-popup"])){hosts_popup();exit;}
if(isset($_GET["host-tab"])){hosts_tab();exit;}
if(isset($_GET["delete-host-js"])){hosts_js_delete();exit;}
if(isset($_POST["delete-host-id"])){hosts_delete();exit;}
if(isset($_POST["ID"])){hosts_save();exit;}

if(isset($_GET["host-aliases"])){aliases_table();exit;}
if(isset($_GET["host-aliases-list"])){aliases_list();exit;}
if(isset($_GET["alias-js"])){aliases_js();exit;}
if(isset($_POST["alias-add"])){aliases_add();exit;}
if(isset($_GET["delete-alias-js"])){alias_js_delete();exit;}
if(isset($_POST["delete-alias-id"])){alias_delete();exit;}



table();