]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-sub_points.php
Added update_year.sh (still not fully flexible) and updated all years with it.
[mailer.git] / inc / modules / admin / what-sub_points.php
index 04e46e538801324f0734a24a37b0669f9ea8c043..3616f81754a4d6520ae67c4be7e33e308589e98c 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 - 2015 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -50,9 +50,9 @@ if (getRequestElement('userid') == 'all') {
                $content['points'] = bigintval(postRequestElement('points'));
 
                // Load userid
-               $result_main = SQL_QUERY("SELECT `userid`, `email` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `status`='CONFIRMED' ORDER BY `userid` ASC",
+               $result_main = sqlQuery("SELECT `userid`, `email` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `status`='CONFIRMED' ORDER BY `userid` ASC",
                        __FILE__, __LINE__);
-               while ($row = SQL_FETCHARRAY($result_main)) {
+               while ($row = sqlFetchArray($result_main)) {
                        // Merge both arrays
                        $content = merge_array($content, $row);
 
@@ -61,7 +61,7 @@ if (getRequestElement('userid') == 'all') {
 
                        // Prepare content
                        $content = array(
-                               'reason'  => SQL_ESCAPE(postRequestElement('reason')),
+                               'reason'  => sqlEscapeString(postRequestElement('reason')),
                                'points'  => bigintval(postRequestElement('points')),
                                'subject' => 'admin_sub_all',
                        );
@@ -72,7 +72,7 @@ if (getRequestElement('userid') == 'all') {
                } // END - while
 
                // Free memory
-               SQL_FREERESULT($result_main);
+               sqlFreeResult($result_main);
 
                // Output message
                displayMessage('{--ADMIN_ALL_POINTS_SUB_DONE--}');
@@ -92,7 +92,7 @@ if (getRequestElement('userid') == 'all') {
 
                        // Prepare content
                        $content = array(
-                               'reason'  => SQL_ESCAPE(postRequestElement('reason')),
+                               'reason'  => sqlEscapeString(postRequestElement('reason')),
                                'points'  => bigintval(postRequestElement('points')),
                                'subject' => 'admin_sub_single',
                        );