]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_user.php
Fixes loading of network type config
[mailer.git] / inc / modules / admin / what-list_user.php
index ed2f5a9ffb0368880ba775a0109b5161a61e5d50..649aec6ab3f7c3b49cac6f06e741533622c73f49 100644 (file)
@@ -17,7 +17,7 @@
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -55,10 +55,10 @@ if (isExtensionInstalledAndNewer('user', '0.3.5')) {
 // Is the extension 'country' installed?
 if (isExtensionActive('country')) {
        // Add country code
-       $MORE .= ', `country_code`';
+       $MORE .= ',`country_code`';
 } else {
        // Add direct value
-       $MORE .= ', `country`';
+       $MORE .= ',`country`';
 }
 
 // Init unset data
@@ -181,9 +181,9 @@ LIMIT 1",
                        // Start a new one
                        $whereStatement = sprintf(" WHERE `status`='%s'", SQL_ESCAPE(secureString(strtoupper(getRequestElement('status')))));
                }
-       } elseif (isGetRequestElementSet('mode')) {
+       } elseif (isGetRequestElementSet('do')) {
                // Choose what we need to list
-               switch (getRequestElement('mode')) {
+               switch (getRequestElement('do')) {
                        case 'norefs': // Users w/o refs
                                if (!empty($whereStatement)) {
                                        // Add AND statement
@@ -194,7 +194,7 @@ LIMIT 1",
                                }
                                break;
 
-                       case 'random_refid': // Users available for random referal id
+                       case 'random_refid': // Users available for random referral id
                                if (!empty($whereStatement)) {
                                        // Add AND statement
                                        $whereStatement .= ' AND `rand_confirmed` >= {?user_min_confirmed?}';
@@ -205,7 +205,7 @@ LIMIT 1",
                                break;
 
                        default: // Invalid list mode
-                               debug_report_bug(__FILE__, __LINE__, sprintf("Invalid list mode %s detected.", getRequestElement('mode')));
+                               debug_report_bug(__FILE__, __LINE__, sprintf("Invalid do %s detected.", getRequestElement('do')));
                                break;
                } // END - switch
        } // END - if
@@ -281,7 +281,7 @@ LIMIT 1",
                        $content['own_points']     = countSumTotalData($content['userid'], 'user_points', 'points') + countSumTotalData($content['userid'], 'user_points', 'order_points');
                        $content['locked_points']  = countSumTotalData($content['userid'], 'user_points', 'locked_points') + countSumTotalData($content['userid'], 'user_points', 'locked_order_points');
 
-                       // If we have at least one referal, make it clickable to referal list
+                       // If we have at least one referral, make it clickable to referral list
                        if ($content['refs'] > 0) {
                                $content['refs'] = $base . '&amp;what=list_refs&amp;userid=' . $content['userid'] . '%}">{%pipe,translateComma=' . $content['refs'] . '%}</a>]';
                        } // END - if