if (!$usersmenus->AllowAddUsers) {
    writelogs("Wrong account : no AllowAddUsers privileges", __FUNCTION__, __FILE__);
    if (isset($_GET["js"])) {
        $tpl = new templates();
        $error = "{ERROR_NO_PRIVS}\\n{AllowAddUsers}:False\\n";
        echo $tpl->_ENGINE_parse_body("alert('{$error}')");
        die;
    }
    header("location:domains.manage.org.index.php?ou={$_GET["ou"]}&dn=" . urlencode($_GET["dn"]));
}
if (isset($_GET["js"])) {
    js();
    exit;
}
if ($_GET["tab"] == "groups") {
    LIST_GROUPS_FROM_OU();
    exit;
}
if (isset($_GET["groups-area-search"])) {
    LIST_GROUPS_FROM_OU_search();
    exit;
}
if (isset($_GET["ChangeGroupDescription"])) {
    ChangeGroupDescription();
    exit;
}
if (isset($_POST["SaveGrouPdescript"])) {
    ChangeGroupDescription_save();
    exit;
}
if (isset($_GET["FindInGroup"])) {
Example #2
0
	//if(count($_POST)>0)
	$usersmenus=new usersMenus();
	if(!$usersmenus->AllowAddUsers){
		writelogs("Wrong account : no AllowAddUsers privileges",__FUNCTION__,__FILE__);
		if(isset($_GET["js"])){
			$tpl=new templates();
			$error="{ERROR_NO_PRIVS}\\n{AllowAddUsers}:False\\n";
			echo $tpl->_ENGINE_parse_body("alert('$error')");
			die();
		}
		header("location:domains.manage.org.index.php?ou={$_GET["ou"]}");
		}
	
		
	if(isset($_GET["js"])){js();exit;}	
	if($_GET["tab"]=="groups"){LIST_GROUPS_FROM_OU();exit;}
	if(isset($_GET["groups-area-search"])){LIST_GROUPS_FROM_OU_search();exit;}
	
	
	if(isset($_GET["FindInGroup"])){MEMBERS_SEARCH_USERS();exit;}
	if(isset($_POST["groupid"])){MEMBERS_UPLOAD_FILE();exit();}
	if(isset($_POST["DeleteFromGroup"])){MEMBER_DELETE_FROM_GROUP();exit;}
	
	
	if(isset($_GET["addgroup"])){AddGroup();exit;}
	if(isset($_GET["GroupPriv"])){echo GROUP_PRIVILEGES($_GET["GroupPriv"]);exit;}
	if(isset($_GET["PrivilegesGroup"])){EditGroup();exit;}
	if(isset($_GET["DeleteMember"])){DeleteMember();exit;}
	if(isset($_GET["DeleteNotAffectedUsers"])){MEMBERS_NOT_AFFECTED_DELETE($_GET["ou"]);exit;}