Example #1
0
}
if (isset($_GET["USER_SAMBA_ENABLE_PERFORM"])) {
    USER_SAMBA_ENABLE_PERFORM();
    exit;
}
if (isset($_GET["USER_SAMBA_FORM"])) {
    USER_SAMBA_FORM($_GET["userid"]);
    exit;
}
//groups
if (isset($_GET["load_user_section_group"])) {
    echo USER_GROUP($_GET["load_user_section_group"]);
    exit;
}
if (isset($_GET["AddMemberGroup"])) {
    AddMemberGroup();
    exit;
}
//clean
if (isset($_GET["USER_CLEAN_JS"])) {
    echo USER_CLEAN_JS();
    exit;
}
if (isset($_GET["USER_CLEAN_POPUP"])) {
    echo USER_CLEAN_POPUP();
    exit;
}
if (isset($_GET["USER_CLEAN_GROUPS"])) {
    echo USER_CLEAN_GROUPS();
    exit;
}
$loginadminstyleid = $lur['adminstyleid'];
require "../class/user.php";
require "../class/memberfun.php";
if ($enews == 'AddMemberF') {
    AddMemberF($_POST, $logininid, $loginin);
} elseif ($enews == 'EditMemberF') {
    EditMemberF($_POST, $logininid, $loginin);
} elseif ($enews == 'DelMemberF') {
    DelMemberF($_GET, $logininid, $loginin);
} elseif ($enews == 'EditMemberFOrder') {
    EditMemberFOrder($_POST['fid'], $_POST['myorder'], $logininid, $loginin);
} elseif ($enews == 'AddMemberForm') {
    AddMemberForm($_POST, $logininid, $loginin);
} elseif ($enews == 'EditMemberForm') {
    EditMemberForm($_POST, $logininid, $loginin);
} elseif ($enews == 'DelMemberForm') {
    DelMemberForm($_GET, $logininid, $loginin);
} elseif ($enews == "AddMemberGroup") {
    $add = $_POST;
    AddMemberGroup($add, $logininid, $loginin);
} elseif ($enews == "EditMemberGroup") {
    $add = $_POST;
    EditMemberGroup($add, $logininid, $loginin);
} elseif ($enews == "DelMemberGroup") {
    $groupid = $_GET['groupid'];
    DelMemberGroup($groupid, $logininid, $loginin);
} else {
    printerror("ErrorUrl", "history.go(-1)");
}
db_close();
$empire = null;
<?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');
	include_once('ressources/class.contacts.inc');
	
if(isset($_GET["SearchUserNull"])){echo SearchUserNull();exit;}
if(isset($_GET["userid"])){echo Page($_GET["userid"]);exit;}
if(isset($_GET["LoadUsersDatas"])){	echo Page($_GET["LoadUsersDatas"]);exit;}
if(isset($_GET["TreeUserMailBoxEdit"])){UserMailBoxEdit();exit;}
if(isset($_GET["Cyrus_mailbox_apply_settings"])){Cyrus_mailbox_apply_settings();exit;}
if(isset($_GET["TreeUserAddAliases"])){TreeUserAddAliases();exit;}
if(isset($_GET["TreeUserDeleteAliases"])){TreeUserDeleteAliases();exit;}
if(isset($_GET["DeleteUserGroup"])){DeleteUserGroup();exit;}
if(isset($_GET["AddMemberGroup"])){AddMemberGroup();exit;}
if(isset($_GET["SaveLdapUser"])){SaveLdapUser();exit;}
if(isset($_GET["AddnewMember"])){AddnewMember();exit();}
if(isset($_GET["DeleteMember"])){DeleteMember();exit;}
if(isset($_GET["finduser"])){finduser();exit;}
if(isset($_GET["UserAddressSubmitedForm"])){AddressInfosSave();exit;}
	
	
function Page($userid){
	$usermenu=new usersMenus();
	if(!isset($_GET["LoadUsersTab"])){$_GET["LoadUsersTab"]=0;}

	switch ($_GET["LoadUsersTab"]) {
		case 0:$body=Main_page_user($userid);break;
		case 1:$body=PageUserMailBoxForm($userid);break;
		case 2:$body=UserAliases($userid);break;