]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-lock_sponsor.php
Updated copyright year.
[mailer.git] / inc / modules / admin / what-lock_sponsor.php
index 3190cc2c06731aa56e3b8bac52fb79ed87602089..d5aa03d51a46ceb17b690ab388b9f6281ba5d853 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2016 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -46,11 +46,11 @@ $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 = sqlQueryEscaped("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) {
+       if (sqlNumRows($result_sponsor) == 1) {
                // Get sponsor's current status and let only confirmed and locked status pass
-               $content = SQL_FETCHARRAY($result_sponsor);
+               $content = sqlFetchArray($result_sponsor);
 
                if (($content['status'] == 'CONFIRMED') || ($content['status'] == 'LOCKED')) {
                        // Transfer data to constants
@@ -78,7 +78,7 @@ if (isGetRequestElementSet('id')) {
                                sendEmail($content['email'], $subject, $message);
 
                                // Update sponsor's account
-                               SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_sponsor_data` SET `status`='%s' WHERE `id`=%s LIMIT 1",
+                               sqlQueryEscaped("UPDATE `{?_MYSQL_PREFIX?}_sponsor_data` SET `status`='%s' WHERE `id`=%s LIMIT 1",
                                        array($content['status'], bigintval(getRequestElement('id'))), __FILE__, __LINE__);
                        } elseif (isPostRequestElementSet('no')) {
                                // No don't lock / unlock now!
@@ -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!
@@ -111,7 +111,7 @@ if (isGetRequestElementSet('id')) {
        }
 
        // Free result
-       SQL_FREERESULT($result_sponsor);
+       sqlFreeResult($result_sponsor);
 } else {
        // Not called by what-list_sponsor.php
        $message = '{--ADMIN_CALL_NOT_DIRECTLY--}';