]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-lock_sponsor.php
Updated copyright notice as there are changes in this year
[mailer.git] / inc / modules / admin / what-lock_sponsor.php
index 71b558a6ea89a9253cd549568e7c8dccea872d29..7cbc90d677cbe04c3adbba6dbe47ec8119ac59af 100644 (file)
@@ -16,8 +16,8 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -46,7 +46,7 @@ $message = '';
 
 if (isGetRequestElementSet('id')) {
        // Check for selected sponsor
-       $result_sponsor = SQL_QUERY_ESC("SELECT `gender`,`surname`,`family`,`email`,`status` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `id`=%s LIMIT 1",
+       $result_sponsor = SQL_QUERY_ESC("SELECT `gender`, `surname`, `family`, `email`, `status` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `id`=%s LIMIT 1",
                array(bigintval(getRequestElement('id'))), __FILE__, __LINE__);
        if (SQL_NUMROWS($result_sponsor) == 1) {
                // Get sponsor's current status and let only confirmed and locked status pass
@@ -72,7 +72,7 @@ if (isGetRequestElementSet('id')) {
                                }
 
                                // Load email message
-                               $message = loadEmailTemplate('lock_sponsor', $content, bigintval(getRequestElement('id')));
+                               $message = loadEmailTemplate('sponsor_locked', $content, bigintval(getRequestElement('id')));
 
                                // And send it away
                                sendEmail($content['email'], $subject, $message);
@@ -99,7 +99,7 @@ if (isGetRequestElementSet('id')) {
                                $content['email_link'] = '<a href="' . generateEmailLink($content['email'], 'sponsor_data') . '">' . $content['gender'] . ' ' . $content['surname'] . ' ' . $content['family'] . '</a>';
 
                                // Display form
-                               loadTemplate('admin_lock_sponsor', false, $content);
+                               loadTemplate('admin_lock_sponsor', FALSE, $content);
                        }
                } else {
                        // Cannot change status on unconfirmed or pending accounts!