]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-lock_user.php
0.0.0 shall be our first version
[mailer.git] / inc / modules / admin / what-lock_user.php
index c219ff78964b8764dda3376b4f10d65445c6b20a..b01c6d3627a6ff624e463e36230d9011a19fe25c 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -66,7 +66,7 @@ if (isGetRequestParameterSet('userid')) {
                        // Entry updated?
                        if (!SQL_HASZEROAFFECTED()) {
                                // Send an email to the user! In later version you can optionally switch this feature off
-                               $message = loadEmailTemplate('lock-user', array('text' => postRequestParameter('reason')), bigintval(getRequestParameter('userid')));
+                               $message = loadEmailTemplate('member_user_locked', array('text' => postRequestParameter('reason')), bigintval(getRequestParameter('userid')));
 
                                // Send away...
                                sendEmail(bigintval(getRequestParameter('userid')), '{--ADMIN_LOCKED_SUBJECT--}', $message);
@@ -84,7 +84,7 @@ if (isGetRequestParameterSet('userid')) {
 SET
        `status`='CONFIRMED',
        `lock_reason`='',
-       `lock_timestamp`='0000-00-00 00:00'
+       `lock_timestamp`=NULL
 WHERE
        `userid`=%s
 LIMIT 1",
@@ -98,7 +98,7 @@ LIMIT 1",
                        // Entry updated?
                        if (!SQL_HASZEROAFFECTED()) {
                                // Send an email to the user! In later version you can optionally switch this feature off
-                               $message = loadEmailTemplate('unlock-user', array('text' => postRequestParameter('reason')), bigintval(getRequestParameter('userid')));
+                               $message = loadEmailTemplate('member_user_unlocked', array('text' => postRequestParameter('reason')), bigintval(getRequestParameter('userid')));
 
                                // Send away...
                                sendEmail(bigintval(getRequestParameter('userid')), '{--ADMIN_UNLOCKED_SUBJECT--}', $message);
@@ -161,7 +161,7 @@ LIMIT 1",
                        if (!empty($message)) {
                                loadTemplate('admin_settings_unsaved', false, $message);
                        } else {
-                               loadTemplate('admin_settings_saved', false, '{--ADMIN_USER_UPDATED--}');
+                               displayMessage('{--ADMIN_USER_UPDATED--}');
                        }
                }
        } else {