Ejemplo n.º 1
0
    exit;
}
if (isset($_GET["page-index-squid-status"])) {
    page_index_status();
    exit;
}
if (isset($_GET["kav-error"])) {
    kavicap_license_error();
    exit;
}
if (isset($_GET["ApplyConfig"])) {
    main_apply_conf();
    exit;
}
if (isset($_GET["status"])) {
    main_little_status();
    exit;
}
if (isset($_GET["main"])) {
    main_switch();
    exit;
}
if (isset($_GET["UpdateGeneralConfig"])) {
    main_update_global_conf();
    exit;
}
if (isset($_GET["SquidActionService"])) {
    service_action();
    exit;
}
if (isset($_GET["DansGuardianActionService"])) {
Ejemplo n.º 2
0
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.artica.inc');
	include_once('ressources/class.ini.inc');
	include_once('ressources/class.squid.inc');
	
	
	$user=new usersMenus();
	if($user->SQUID_INSTALLED==false){header('location:users.index.php');exit();}
	if($user->AsSquidAdministrator==false){header('location:users.index.php');exit();}
	
	if(isset($_GET["page-index-squid-status"])){page_index_status();exit;}
	if(isset($_GET["kav-error"])){kavicap_license_error();exit;}
	if(isset($_GET["ApplyConfig"])){main_apply_conf();exit;}
	if(isset($_GET["status"])){main_little_status();exit;}
	if(isset($_GET["main"])){main_switch();exit;}
	if(isset($_GET["UpdateGeneralConfig"])){main_update_global_conf();exit;}
	if(isset($_GET["SquidActionService"])){service_action();exit;}
	if(isset($_GET["DansGuardianActionService"])){service_action();exit;}
	if(isset($_GET["Kav4ProxyActionService"])){service_action();exit;}
	if(isset($_GET["http_port_port"])){main_networking_addport();exit;}
	if(isset($_GET["squid_http_port_delete"])){main_networking_delport();exit;}
	if(isset($_GET["SquidAclAddrule"])){main_acls_add_rule();exit;}
	if(isset($_GET["SquidSelectAcl"])){echo main_acls_add_rule_type();exit;}
	if(isset($_GET["addacl"])){main_acls_add_rule_save();exit;}
	if(isset($_GET["SquidAclActiveRule"])){main_acl_rue_enable();exit;}
	if(isset($_GET["SquidAclLoadDatas"])){main_acls_load_datas();exit;}
	if(isset($_GET["acl_delete"])){main_acls_delete_datas();exit;}
	if(isset($_GET["rule_acl_delete"])){main_acls_delete_rule();exit;}
	if(isset($_GET["AccessSwitch"])){main_access_rules_switch();exit;}