]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_user.php
Missing SVN properties set
[mailer.git] / inc / modules / admin / what-list_user.php
index ce195ae973ff08d557b53dd04fee99ba947dd562..6349a41bdb4d10e1c7e35738ae12834c1eec44c2 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 09/28/2003 *
- * ===============                              Last change: 08/18/2004 *
+ * Mailer v0.2.1-FINAL                                Start: 09/28/2003 *
+ * ===================                          Last change: 08/18/2004 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-list_user.php                               *
@@ -93,7 +93,7 @@ if (!isGetRequestElementSet('page'))   { setRequestGetElement('page'  , 1);
 $base = '[<a href="{?URL?}/modules.php?module=admin';
 
 if (isGetRequestElementSet('userid')) {
-       // Secure the user ID
+       // Secure the user id
        $userid = bigintval(getRequestElement('userid'));
 
        // Does the account exists?
@@ -172,7 +172,7 @@ LIMIT 1",
                } // END - if
 
                // Clickrate
-               $content['click_rate'] = 0;
+               $content['click_rate'] = '0';
                if ($content['emails_received'] > 0) {
                        $content['click_rate'] = translateComma($content['mails_confirmed'] / $content['emails_received'] * 100);
                } // END - if
@@ -185,8 +185,8 @@ LIMIT 1",
                if (isExtensionActive('country')) {
                        // Then overwrite country information
                        $content['country'] = generateCountryInfo($content['country_code']);
-               } elseif ($content['country'] == 0) {
-                       // Zero ID???
+               } elseif ($content['country'] == '0') {
+                       // Zero id???
                        $content['country'] = '???';
                }
 
@@ -247,7 +247,7 @@ LIMIT 1",
        $result_master = SQL_QUERY($sql, __FILE__, __LINE__);
 
        // Calculate page count (0.5 fixes a bug with page count)
-       if (getConfig('user_limit') == 0) {
+       if (getConfig('user_limit') == '0') {
                setConfigEntry('user_limit', 100);
                loadTemplate('admin_settings_saved', false, getMessage('EXTENSION_WARNING_USER_LIMIT'));
        } // END - if
@@ -286,7 +286,7 @@ LIMIT 1",
                // @TODO Rewrite this into a  filter
                if (isExtensionActive('nickname')) {
                        // Nickname extension found
-                       define('__NICKNAME_TH', "  <td class=\"admin_title bottom2\" align=\"center\">{--NICKNAME--}</td>");
+                       define('__NICKNAME_TH', "  <td class=\"header_column bottom\" align=\"center\">{--NICKNAME--}</td>");
                } else {
                        // Not found
                        define('__NICKNAME_TH', '');
@@ -309,12 +309,12 @@ LIMIT 1",
                        if ((empty($content['nickname'])) || ($content['nickname'] == $content['userid'])) $content['nickname'] = '---';
 
                        // Calculate total points
-                       $pointsTotal = countSumTotalData($content['userid'], 'user_points', 'points')  - countSumTotalData($content['userid'], 'user_data', 'used_points');
+                       $content['points'] = countSumTotalData($content['userid'], 'user_points', 'points')  - countSumTotalData($content['userid'], 'user_data', 'used_points');
 
                        // Clickrate
-                       $clickRate = 0;
+                       $content['rate'] = '0';
                        if ($content['emails_received'] > 0) {
-                               $clickRate = $content['mails_confirmed'] / $content['emails_received'] * 100;
+                               $content['rate'] = $content['mails_confirmed'] / $content['emails_received'] * 100;
                        } // END - if
 
                        // Transfer data to array
@@ -323,12 +323,12 @@ LIMIT 1",
                        $content['gender']         = translateGender($content['gender']);
                        $content['email']          = '[<a href="' . generateEmailLink($content['email'], 'user_data') . '">' . $content['email'] . '</a>]';
                        $content['alinks']         = generateMemberAdminActionLinks($content['userid'], $content['status']);
-                       $content['points']         = translateComma($pointsTotal);
-                       $content['rate']           = translateComma($clickRate);
+                       $content['points']         = translateComma($content['points']);
+                       $content['rate']           = translateComma($content['rate']);
                        $content['locked']         = translateComma(countSumTotalData($content['userid'], 'user_points', 'locked_points'));
                        $content['lock_timestamp'] = generateDateTime($content['lock_timestamp'], 2);
                        $content['status']         = translateUserStatus($content['status']);
-                       $content['refs']           = countSumTotalData($content['userid'], 'refsystem', 'counter');
+                       $content['refs']           = countSumTotalData($content['userid'], 'user_refs', 'id', 'userid', true);
 
                        // If we have at least one referal, make it clickable to referal list
                        if ($content['refs'] > 0) $content['refs'] = $base . '&amp;what=list_refs&amp;userid=' . $content['userid'] . '">' . $content['refs'] . '</a>]';
@@ -342,7 +342,7 @@ LIMIT 1",
                                // Then overwrite country information
                                $content['country'] = generateCountryInfo($content['country_code']);
                        } elseif ($content['country'] == '') {
-                               // Zero ID???
+                               // Zero id???
                                $content['country'] = '???';
                        }