X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-add_points.php;h=f376333cae938d4e899bd1109b8a959417f04309;hb=095f5ab59b539834d2c67e5d409d01820e10d8be;hp=391420ca70b7af5a5cdefee7b118d434b26b7762;hpb=16e8327d8b9ac2f02cf49c6179e7148fc32b1066;p=mailer.git diff --git a/inc/modules/admin/what-add_points.php b/inc/modules/admin/what-add_points.php index 391420ca70..f376333cae 100644 --- a/inc/modules/admin/what-add_points.php +++ b/inc/modules/admin/what-add_points.php @@ -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 * @@ -50,11 +50,11 @@ if (getRequestElement('userid') == 'all') { $content['points'] = bigintval(postRequestElement('points')); // Select all users - $result_main = SQL_QUERY("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `status`='CONFIRMED' ORDER BY `userid` ASC", + $result_main = sqlQuery("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `status`='CONFIRMED' ORDER BY `userid` ASC", __FILE__, __LINE__); // Process all entries - while ($row = SQL_FETCHARRAY($result_main)) { + while ($row = sqlFetchArray($result_main)) { // Merge $row into $content $content = merge_array($content, $row); @@ -66,7 +66,7 @@ if (getRequestElement('userid') == 'all') { // Prepare content $content = array( - 'reason' => SQL_ESCAPE(postRequestElement('reason')), + 'reason' => sqlEscapeString(postRequestElement('reason')), 'points' => bigintval(postRequestElement('points')), 'userid' => $row['userid'], 'subject' => 'admin_add_all', @@ -78,7 +78,7 @@ if (getRequestElement('userid') == 'all') { } // END - while // Free memory - SQL_FREERESULT($result_main); + sqlFreeResult($result_main); // Output message displayMessage('{--ADMIN_ALL_POINTS_ADDED--}'); @@ -101,7 +101,7 @@ if (getRequestElement('userid') == 'all') { // Prepare content $content = array( - 'reason' => SQL_ESCAPE(postRequestElement('reason')), + 'reason' => sqlEscapeString(postRequestElement('reason')), 'points' => bigintval(postRequestElement('points')), 'subject' => 'admin_add_single', ); @@ -123,7 +123,7 @@ if (getRequestElement('userid') == 'all') { } } else { // User not found - loadTemplate('admin_settings_unsaved', FALSE, '{%message,ADMIN_MEMBER_404=' . bigintval(getRequestElement('userid')) . '%}'); + displayErrorMessage('{%message,ADMIN_MEMBER_404=' . bigintval(getRequestElement('userid')) . '%}'); } } else { // Output selection form with all confirmed user accounts listed