]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-edit_user.php
A lot CSS classes rewritten, please update all your themes.
[mailer.git] / inc / modules / admin / what-edit_user.php
index c3125cbac5bd4ce9cc5d6bdfbd1d035281e4c18d..83bc543e7b18337b2fbcdd0a4189621a401f33ab 100644 (file)
@@ -71,7 +71,7 @@ if ((!isGetRequestParameterSet('userid')) || (SQL_NUMROWS($result_main) == 1)) {
        if (!isGetRequestParameterSet('userid')) {
                // Output selection form with all confirmed user accounts listed
                addMemberSelectionBox();
-       } elseif (isPostRequestParameterSet('edit')) {
+       } elseif (isFormSent('edit')) {
                // Ok, change the account...
                $updateUser = false; $add = '';
                if ((!isPostRequestParameterSet('pass1')) && (!isPostRequestParameterSet('pass2'))) {
@@ -111,10 +111,10 @@ LIMIT 1",
                                postRequestParameter('email'),
                                bigintval(getRequestParameter('userid')),
                        ), __FILE__, __LINE__);
-                       $content = getMessage('USER_ACCOUNT_SAVED');
+                       $content = '{--ADMIN_USER_ACCOUNT_SAVED--}';
                } else {
                        // Problem while saving data
-                       $content = getMessage('USER_ACCOUNT_NOT_SAVED');
+                       $content = '{--ADMIN_USER_ACCOUNT_NOT_SAVED--}';
                }
 
                // Load template
@@ -132,11 +132,11 @@ LIMIT 1",
                $content['gender_' . strtolower($content['gender'])] = ' selected="selected"';
 
                // Load template
-               loadTemplate('admin_edit_user', false, $content);
+               loadTemplate('form_submit_user', false, $content);
        }
 } else {
        // Account does not exists!
-       loadTemplate('admin_settings_saved', false, '<div class="admin_failed">' . getMaskedMessage('ADMIN_MEMBER_404', getRequestParameter('userid')) . '</div>');
+       loadTemplate('admin_settings_unsaved', false, getMaskedMessage('ADMIN_MEMBER_404', bigintval(getRequestParameter('userid'))));
 }
 
 // Free the result