]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-sub_points.php
Extension ext-network continued
[mailer.git] / inc / modules / admin / what-sub_points.php
index 439e4a1e981ee1844a643689db9a93fae68f18c7..04e46e538801324f0734a24a37b0669f9ea8c043 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -50,7 +50,7 @@ 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 = SQL_QUERY("SELECT `userid`, `email` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `status`='CONFIRMED' ORDER BY `userid` ASC",
                        __FILE__, __LINE__);
                while ($row = SQL_FETCHARRAY($result_main)) {
                        // Merge both arrays
@@ -68,14 +68,14 @@ if (getRequestElement('userid') == 'all') {
 
                        // Load message and send it away
                        $message = loadEmailTemplate('member_sub_points', $content, bigintval($content['userid']));
-                       sendEmail($row['userid'], '{--ADMIN_SUB_SUBJECT--}', $message);
+                       sendEmail($row['userid'], '{--ADMIN_SUB_POINTS_SUBJECT--}', $message);
                } // END - while
 
                // Free memory
                SQL_FREERESULT($result_main);
 
                // Output message
-               displayMessage('{--ADMIN_ALL_POINTS_SUBTRACTED--}');
+               displayMessage('{--ADMIN_ALL_POINTS_SUB_DONE--}');
        } else {
                // Display form add points
                loadTemplate('admin_sub_points_all');
@@ -99,7 +99,7 @@ if (getRequestElement('userid') == 'all') {
 
                        // Load email and send it away
                        $message = loadEmailTemplate('member_sub_points', $content, bigintval(getRequestElement('userid')));
-                       sendEmail(getRequestElement('userid'), '{--ADMIN_SUB_SUBJECT--}', $message);
+                       sendEmail(getRequestElement('userid'), '{--ADMIN_SUB_POINTS_SUBJECT--}', $message);
 
                        // Output message
                        displayMessage('{--ADMIN_POINTS_SUBTRACTED--}');
@@ -108,15 +108,15 @@ if (getRequestElement('userid') == 'all') {
                        $content['userid'] = bigintval(getRequestElement('userid'));
 
                        // Load form
-                       loadTemplate('admin_sub_points', false, $content);
+                       loadTemplate('admin_sub_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]