if (!$usersmenus->AsDansGuardianAdministrator) { $tpl = new templates(); $alert = $tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}'); echo "<H2>{$alert}</H2>"; die; } if (isset($_POST["enabled-all"])) { acl_rule_enable_all(); exit; } if (isset($_POST["disable-all"])) { acl_rule_disable_all(); exit; } if (isset($_POST["aclrulename-group"])) { acl_rule_group_save(); exit; } if (isset($_POST["aclname-save"])) { acl_rule_save(); exit; } if (isset($_GET["acls-list"])) { acl_list(); exit; } if (isset($_GET["Addacl-js"])) { acl_js(); exit; } if (isset($_GET["Addacl-group"])) {
include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.mysql.inc'); include_once('ressources/class.dansguardian.inc'); include_once('ressources/class.squid.inc'); include_once('ressources/class.system.network.inc'); $usersmenus=new usersMenus(); if(!$usersmenus->AsDansGuardianAdministrator){ $tpl=new templates(); $alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}'); echo "<H2>$alert</H2>"; die(); } if(isset($_POST["aclrulename-group"])){acl_rule_group_save();exit;} if(isset($_POST["aclname-save"])){acl_rule_save();exit;} if(isset($_GET["acls-list"])){acl_list();exit;} if(isset($_GET["Addacl-js"])){acl_js();exit;} if(isset($_GET["Addacl-group"])){acl_group_js();exit;} if(isset($_GET["acl-rule-settings-group"])){acl_group_settings();exit;} if(isset($_GET["acl-rule-group"])){page();exit;} if(isset($_GET["acl-rule-tabs"])){acl_rule_tab();exit;} if(isset($_GET["acl-rule-settings"])){acl_rule_settings();exit;} if(isset($_POST["acl-rule-delete"])){acl_rule_delete();exit;} if(isset($_POST["acl-rule-enable"])){acl_rule_enable();exit;} if(isset($_POST["acl-rule-move"])){acl_rule_move();exit;} if(isset($_POST["acl-rule-order"])){acl_rule_order();exit;} if(isset($_POST["aclrulename"])){acl_main_rule_edit();exit;} if(isset($_POST["ApplySquid"])){squid_compile();exit;}