ini_set('error_reporting', E_ALL); ini_set('error_prepend_string', "<p class='text-error'>"); ini_set('error_append_string', "</p>"); if (!isset($_SESSION["uid"])) { header("location:miniadm.logon.php"); } if (isset($_GET["verbose"])) { $GLOBALS["VERBOSE"] = true; } include_once dirname(__FILE__) . "/ressources/class.templates.inc"; include_once dirname(__FILE__) . "/ressources/class.users.menus.inc"; include_once dirname(__FILE__) . "/ressources/class.miniadm.inc"; include_once dirname(__FILE__) . "/ressources/class.user.inc"; include_once dirname(__FILE__) . "/ressources/class.squid.inc"; include_once dirname(__FILE__) . "/ressources/class.squid.reverse.inc"; $PRIV = GetPrivs(); if (!$PRIV) { header("location:miniadm.index.php"); die; } if (isset($_GET["section"])) { section(); exit; } if (isset($_GET["group-search"])) { group_search(); exit; } if (isset($_GET["js-group"])) { group_js(); exit;
$GLOBALS["VERBOSE"] = true; ini_set('display_errors', 1); ini_set('error_reporting', E_ALL); ini_set('error_prepend_string', null); ini_set('error_append_string', null); } if ($_SESSION["uid"] == null) { echo "window.location.href ='logoff.php';"; die; } include_once 'ressources/class.templates.inc'; include_once 'ressources/class.ldap.inc'; include_once 'ressources/class.users.menus.inc'; include_once 'ressources/class.system.network.inc'; $user = new usersMenus(); if (!GetPrivs()) { $tpl = new templates(); echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');"; die; exit; } if (isset($_GET["items"])) { items(); exit; } if (isset($_POST["item-enable"])) { item_enable(); exit; } if (isset($_GET["item-id"])) { item_popup();