exit;
    }
    if (isset($_GET["AddAliasesMailing"])) {
        AddAliasesMailing();
        exit;
    }
    if (isset($_GET["DeleteAliasesMailing"])) {
        DeleteAliasesMailing();
        exit;
    }
    if (isset($_GET["aliases-users-list"])) {
        USER_ALIASES($_GET["uid"]);
        exit;
    }
    if (isset($_GET["delete-aliases"])) {
        USER_ALIASES_DELETE_JS();
        exit;
    }
    $modify_user = 1;
}
//FTP
if (isset($_GET["pureftpd-js"])) {
    USER_FTP_JS();
    exit;
}
if (isset($_GET["UserAddressSubmitedForm"])) {
    AddressInfosSave();
    exit;
}
if (isset($_GET["userid-warning"])) {
    AJAX_USER_WARNING();
Exemple #2
0
if ((isset ($_GET["uid"] )) && (! isset ($_GET["userid"] ))) {$_GET["userid"] = $_GET["uid"];}

//permissions	
$usersprivs = new usersMenus ( );
$change_aliases = GetRights_aliases();
$modify_user = 1;
if ($_SESSION ["uid"] != $_GET["userid"]) {$modify_user = 0;}

if ($change_aliases == 1) {
	if(isset($_GET["AddAliases"])){AddAliases ();exit ();}
	if(isset($_GET["DeleteAliases"])){DeleteAliases ();exit ();}
	if(isset($_GET["AddAliasesMailing"])){AddAliasesMailing ();exit ();}
	if(isset($_GET["DeleteAliasesMailing"])){DeleteAliasesMailing ();exit ();}
	if(isset($_GET["aliases-users-list"])){USER_ALIASES ($_GET["uid"]);exit ();}
	if(isset($_GET["delete-aliases"])){USER_ALIASES_DELETE_JS ();exit ();}
	$modify_user = 1;
}

//FTP
if(isset ($_GET["pureftpd-js"])){USER_FTP_JS ();exit ();}
if(isset ($_GET["UserAddressSubmitedForm"])){AddressInfosSave();exit();}
if(isset($_GET["userid-warning"])){AJAX_USER_WARNING();exit;}

if(isset($_GET["ComputerMacAddressFindUid"])){COMPUTER_CHECK_MAC();exit;}

if ($modify_user == 0) {
	die ( 'No permissions ' . $_SESSION ["uid"] . "\nchange_aliases=$usersprivs->AllowEditAliases\n" );
}

if(isset($_GET["ChangeUserPassword"])){USER_CHANGE_PASSWORD();exit ();}