$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;
include_once ('ressources/class.ini.inc'); include_once ('ressources/class.ocs.inc'); include_once (dirname ( __FILE__ ) . "/ressources/class.cyrus.inc"); 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" );