X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-del_user.php;h=7ce0dedf6d04d793065263342124cc668867cca2;hb=cc59ea1cce3e0fafc2cc6c9e36142698cf2b58ef;hp=56e14dfc3a8521b49b3a5ebe8d8bf4ba835d82ad;hpb=1ebf518b9552f71ee95de6f4b80e6de3a27716d1;p=mailer.git diff --git a/inc/modules/admin/what-del_user.php b/inc/modules/admin/what-del_user.php index 56e14dfc3a..7ce0dedf6d 100644 --- a/inc/modules/admin/what-del_user.php +++ b/inc/modules/admin/what-del_user.php @@ -1,7 +1,7 @@ ".sprintf(getMessage('ADMIN_MEMBER_404'), getRequestElement('userid')).""); + loadTemplate('admin_settings_unsaved', false, '{%message,ADMIN_MEMBER_404=' . bigintval(getRequestParameter('userid')) . '%}'); } -} elseif (isPostRequestElementSet('no')) { +} elseif (isPostRequestParameterSet('no')) { // Do not delete him... - redirectToUrl(adminCreateUserLink(getRequestElement('userid'))); -} elseif (!isGetRequestElementSet('userid')) { + redirectToUrl(adminCreateUserLink(getRequestParameter('userid'))); +} elseif (!isGetRequestParameterSet('userid')) { // Output selection form with all confirmed user accounts listed addMemberSelectionBox(); } else { // Realy want to delete? - $result = SQL_QUERY_ESC("SELECT `email`, `surname`, `family` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `userid`=%s LIMIT 1", - array(bigintval(getRequestElement('userid'))), __FILE__, __LINE__); - - // Found a row? - if (SQL_NUMROWS($result) == 1) { - // Load data - list ($email, $surname, $family) = SQL_FETCHROW($result); - + if (fetchUserData(getRequestParameter('userid'))) { // Prepare content $content = array( - 'email' => generateEmailLink($email, 'user_data'), - 'surname' => $surname, - 'family' => $family, - 'header' => sprintf(getMessage('ADMIN_HEADER_DEL_ACCOUNT'), getRequestElement('userid')), - 'text' => sprintf(getMessage('ADMIN_TEXT_DEL_ACCOUNT'), getRequestElement('userid')), - 'userid' => getRequestElement('userid') + 'email' => generateEmailLink(getUserData('email'), 'user_data'), + 'userid' => bigintval(getRequestParameter('userid')) ); // Display form - loadTemplate('admin_del_user', false, $content); + loadTemplate('admin_delete_user', false, $content); } else { // Account does not exists! - loadTemplate('admin_settings_saved', false, "