Beispiel #1
0
    exit;
}
if (isset($_GET["cache_dir"])) {
    main_cache_add();
    exit;
}
if (isset($_GET["SquidCacheDelete"])) {
    main_cache_delete();
    exit;
}
if (isset($_GET["graph"])) {
    main_graph();
    exit;
}
if (isset($_GET["dns_nameservers"])) {
    main_networking_adddns();
    exit;
}
if (isset($_GET["squid_dnsserver_delete"])) {
    main_networking_deldns();
    exit;
}
if (isset($_GET["StartError"])) {
    main_status_analyse_viewstarterrors();
    exit;
}
function main_switch()
{
    if (!isset($_GET["tab"])) {
        $_GET["tab"] = "status";
    }
Beispiel #2
0
	if(isset($_GET["save_icap_service"])){main_icap_service_save();exit;}
	if(isset($_GET["SquidIcapDeleteService"])){main_icap_service_delete();exit;}
	if(isset($_GET["SquidIcapAddServiceFromTable"])){main_icap_class_addservice_ajax();exit;}
	if(isset($_GET["SquidIcapDeleteServiceInClass"])){main_icap_class_delservice_ajax();exit;}
	if(isset($_GET["SquidIcapAddNewClass"])){main_icap_class_add_ajax();exit;}
	if(isset($_GET["SquidIcapAddAccessRule"])){main_icap_access_ruleadd_ajax();exit;}
	if(isset($_GET["SquidIcapAccessSwitchEnable"])){main_icap_access_ruleswitch();exit;}
	if(isset($_GET["SquidIcapInsertAclRuleAjax"])){main_icap_access_acladd_ajax();exit;}
	if(isset($_GET["SquidIcapDeleteAccessAcl"])){main_icap_access_acldel_ajax();exit;}
	if(isset($_GET["SquidIcapDeleteAccessRule"])){main_icap_access_del_ajax();exit;}
	if(isset($_GET["SquidIcapAccessMove"])){main_icap_access_rulemove();exit;}
	if(isset($_GET["SquidIcapDeleteClass"])){main_icap_class_del_ajax();exit;}
	if(isset($_GET["cache_dir"])){main_cache_add();exit();}
	if(isset($_GET["SquidCacheDelete"])){main_cache_delete();exit;}
	if(isset($_GET["graph"])){main_graph();exit;}
	if(isset($_GET["dns_nameservers"])){main_networking_adddns();exit;}
	if(isset($_GET["squid_dnsserver_delete"])){main_networking_deldns();exit;}
	if(isset($_GET["StartError"])){main_status_analyse_viewstarterrors();exit;}
	
	


function main_switch(){
	if(!isset($_GET["tab"])){$_GET["tab"]="status";};
	$squid=new squid();
	if($_GET["hostname"]==null){
		$users=new usersMenus();
		$_GET["hostname"]=$users->hostname;
		}	

	switch ($_GET["tab"]) {