Ejemplo n.º 1
0
	include_once('ressources/class.artica.inc');
	include_once('ressources/class.ini.inc');
	include_once('ressources/class.squid.inc');
	include_once('ressources/class.dansguardian.inc');
	$user=new usersMenus();
	if($_GET["hostname"]==null){$hostname=$user->hostname;$_GET["hostname"]=$hostname;}else{$hostname=$_GET["hostname"];}
	if($user->SQUID_INSTALLED==false){header('location:users.index.php');exit();}
	if($user->AsSquidAdministrator==false){header('location:users.index.php');exit();}	
	

	if(isset($_GET["squid_ip_client"])){main_network_addsrc();exit;}
	if(isset($_GET["squid_acl_to_delete"])){main_acl_delete_index();exit;}
	if(isset($_GET["auth_allow"])){main_network_ldapenable();exit;}
	if(isset($_GET["add_protocol"])){main_Safe_ports_add();exit;}
	if(isset($_GET["Safe_Ports_delete"])){main_Safe_ports_del();exit;}
	if(isset($_GET["add_deny_ext"])){main_denyext_add();exit;}
	if(isset($_GET["del_deny_ext"])){main_denyext_del();exit;}
	if(isset($_GET["dans_http_port"])){main_network_edit_port_dans();exit;}
	if(isset($_GET["squid_http_port"])){main_network_edit_port_squid();exit;}
	if(isset($_GET["EnableKav4Proxy"])){main_kav4proxy_edit();exit;}
	if(isset($_GET["SquidSimpleKav4ProxyMacro1"])){main_kav4proxy_Macro1();exit;}
	$user=new usersMenus();
	
	
	main_page();
	
function main_page(){
	
	switch ($_GET["main"]) {
			case "network":main_network();exit;break;
			case "Safe_ports":main_Safe_ports();exit;break;
Ejemplo n.º 2
0
    exit;
}
if (isset($_GET["auth_allow"])) {
    main_network_ldapenable();
    exit;
}
if (isset($_GET["add_protocol"])) {
    main_Safe_ports_add();
    exit;
}
if (isset($_GET["Safe_Ports_delete"])) {
    main_Safe_ports_del();
    exit;
}
if (isset($_GET["add_deny_ext"])) {
    main_denyext_add();
    exit;
}
if (isset($_GET["del_deny_ext"])) {
    main_denyext_del();
    exit;
}
if (isset($_GET["dans_http_port"])) {
    main_network_edit_port_dans();
    exit;
}
if (isset($_GET["squid_http_port"])) {
    main_network_edit_port_squid();
    exit;
}
if (isset($_GET["EnableKav4Proxy"])) {