<?php include_once 'ressources/class.templates.inc'; include_once 'ressources/class.ldap.inc'; include_once 'ressources/class.users.menus.inc'; include_once 'ressources/class.user.inc'; if (!checkrights()) { $tpl = new templates(); echo "alert('" . $tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}') . "');"; die; } if (isset($_GET["index"])) { catchall_index(); exit; } if (isset($_GET["catch-all-addr"])) { catchall_save(); exit; } if (isset($_GET["sugaradminpassword"])) { sugar_save(); exit; } js(); function checkrights() { $users = new usersMenus(); if (!isset($_GET["ou"])) { return false; } if (!isset($_GET["domain"])) {
include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.user.inc'); if(!checkrights()){ $tpl=new templates(); echo "alert('".$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}')."');"; die(); } if(isset($_GET["index"])){catchall_index();exit;} if(isset($_GET["catch-all-addr"])){catchall_save();exit;} if(isset($_GET["sugaradminpassword"])){sugar_save();exit;} js(); function checkrights(){ $users=new usersMenus(); if(!isset($_GET["ou"])){return false;} if(!isset($_GET["domain"])){return false;} if($_SESSION["uid"]<>-100){if($_SESSION["ou"]<>$_GET["ou"]){return false;}} if($users->AsMessagingOrg){return true;} if($users->AllowEditOuSecurity){return true;} if($users->AsAnAdministratorGeneric){return true;} return false;