예제 #1
0
    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"])) {
예제 #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["delete-host-js"])){hosts_js_delete();exit;}
if(isset($_POST["delete-host-id"])){hosts_delete();exit;}
if(isset($_POST["domain"])){domain_save();exit;}

if(isset($_GET["table"])){table();exit;}


js();



function js(){
	header("content-type: application/x-javascript");
	$ID=$_GET["ID"];
	$t=$_GET["t"];
	$page=CurrentPageName();
	$tpl=new templates();