X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fadmin%2Fwhat-list_user.php;h=680c7593c919063e4d0999aded6fa990c60feecd;hb=b8a6f8012aa3509d8e0f8fd078e044f20e80707a;hp=ce195ae973ff08d557b53dd04fee99ba947dd562;hpb=c2e17d983fcbc0c3bd1dd37908d87c678f0367df;p=mailer.git diff --git a/inc/modules/admin/what-list_user.php b/inc/modules/admin/what-list_user.php index ce195ae973..680c7593c9 100644 --- a/inc/modules/admin/what-list_user.php +++ b/inc/modules/admin/what-list_user.php @@ -1,7 +1,7 @@ 0) $content['links'] = $base . '&what=list_links&userid=' . $userid . '">' . $content['links'] . ']'; - if ($content['refid'] > 0) $content['refid'] = $base . '&what=list_user&userid=' . $content['refid'] . '">'.$content['refid'] . ']'; - if ($content['refs'] > 0) $content['refs'] = $base . '&what=list_refs&userid=' . $userid . '">' . $content['refs'] . ']'; - if ($content['cats'] > 0) $content['cats'] = $base . '&what=list_cats&userid=' . $userid . '">' . $content['cats'] . ']'; + if ($content['links'] > 0) $content['links'] = $base . '&what=list_links&userid=' . $userid . '%}">' . $content['links'] . ']'; + if ($content['refid'] > 0) $content['refid'] = $base . '&what=list_user&userid=' . $content['refid'] . '%}">'.$content['refid'] . ']'; + if ($content['refs'] > 0) $content['refs'] = $base . '&what=list_refs&userid=' . $userid . '%}">' . $content['refs'] . ']'; + if ($content['cats'] > 0) $content['cats'] = $base . '&what=list_cats&userid=' . $userid . '%}">' . $content['cats'] . ']'; // Fix empty module if (empty($content['last_module'])) $content['last_module'] = '---'; @@ -144,7 +144,7 @@ LIMIT 1", $content['status'] = translateUserStatus($content['status']); $content['last_online'] = generateDateTime($content['last_online'], 0); $content['used_points'] = translateComma($content['used_points']); - if ($content['emails_sent'] > 0) $content['emails_sent'] = $base . '&what=email_details&userid=' . $userid . '">' . translateComma($content['emails_sent']) . ']'; + if ($content['emails_sent'] > 0) $content['emails_sent'] = $base . '&what=email_details&userid=' . $userid . '%}">' . translateComma($content['emails_sent']) . ']'; $content['joined'] = generateDateTime($content['joined'], 0); $content['last_update'] = generateDateTime($content['last_update'], 0); $content['last_profile_sent'] = generateDateTime($content['last_profile_sent'], 0); @@ -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', " {--NICKNAME--}"); + define('__NICKNAME_TH', " {--NICKNAME--}"); } else { // Not found define('__NICKNAME_TH', ''); @@ -300,38 +300,38 @@ LIMIT 1", // Get number of unconfirmed mails $content['links'] = countSumTotalData($content['userid'], 'user_links', 'id', 'userid', true); - if ($content['links'] > 0) $content['links'] = $base . '&what=list_links&userid=' . $content['userid'] . '">' . translateComma($content['links']) . ']'; + if ($content['links'] > 0) $content['links'] = $base . '&what=list_links&userid=' . $content['userid'] . '%}">' . translateComma($content['links']) . ']'; // Set link to sent mails if present - if ($content['emails_sent'] > 0) $content['emails_sent'] = $base . '&what=email_details&userid=' . $content['userid'] . '">' . translateComma($content['emails_sent']) . ']'; + if ($content['emails_sent'] > 0) $content['emails_sent'] = $base . '&what=email_details&userid=' . $content['userid'] . '%}">' . translateComma($content['emails_sent']) . ']'; // Add nickname 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 $content['sw'] = $SW; $content['userid_link'] = generateUserProfileLink($content['userid']); $content['gender'] = translateGender($content['gender']); - $content['email'] = '[' . $content['email'] . ']'; + $content['email'] = '[' . $content['email'] . ']'; $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 . '&what=list_refs&userid=' . $content['userid'] . '">' . $content['refs'] . ']'; + if ($content['refs'] > 0) $content['refs'] = $base . '&what=list_refs&userid=' . $content['userid'] . '%}">' . $content['refs'] . ']'; // Is the lock reason not set? if (!isset($content['lock_reason'])) $content['lock_reason'] = '---'; @@ -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'] = '???'; }