]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-add_points.php
Re-added height, but smaller to make most menus appear shorter
[mailer.git] / inc / modules / admin / what-add_points.php
index 8b36b7955569cfa2d1e17e0c42a004916442e188..546d927ec3843fed5945272e0b97a1c1a71eee51 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 - 2013 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',
@@ -74,11 +74,11 @@ if (getRequestElement('userid') == 'all') {
 
                        // Load email template and send email away
                        $message = loadEmailTemplate('member_add_points', $content, bigintval($content['userid']));
-                       sendEmail(bigintval($content['userid']), '{--ADMIN_ADD_SUBJECT--}', $message);
+                       sendEmail(bigintval($content['userid']), '{--ADMIN_ADD_POINTS_SUBJECT--}', $message);
                } // 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',
                        );
@@ -110,7 +110,7 @@ if (getRequestElement('userid') == 'all') {
                        $message = loadEmailTemplate('member_add_points', $content, bigintval(getRequestElement('userid')));
 
                        // Send the email out
-                       sendEmail(bigintval(getRequestElement('userid')), '{--ADMIN_ADD_SUBJECT--}', $message);
+                       sendEmail(bigintval(getRequestElement('userid')), '{--ADMIN_ADD_POINTS_SUBJECT--}', $message);
 
                        // ... and display a message
                        displayMessage('{--ADMIN_POINTS_ADDED--}');
@@ -119,15 +119,15 @@ if (getRequestElement('userid') == 'all') {
                        $content['userid'] = bigintval(getRequestElement('userid'));
 
                        // Output template
-                       loadTemplate('admin_add_points', false, $content);
+                       loadTemplate('admin_add_points', FALSE, $content);
                }
        } 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
-       addMemberSelectionBox(0, true);
+       addMemberSelectionBox(0, TRUE);
 }
 
 // [EOF]