X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_user.php;h=3d497c18d38997f88cee2b8e059ab9c41bcdf637;hb=65ed873eefdacdcea3331773b6458a06a5adff82;hp=53bfce2af9f2f6f2795b85565f41f82a872125cb;hpb=a49d1f4613f3f7d47fb57d946e9f7f705bd34a9b;p=mailer.git diff --git a/inc/modules/admin/what-list_user.php b/inc/modules/admin/what-list_user.php index 53bfce2af9..3d497c18d3 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,7 +185,7 @@ LIMIT 1", if (isExtensionActive('country')) { // Then overwrite country information $content['country'] = generateCountryInfo($content['country_code']); - } elseif ($content['country'] == 0) { + } elseif ($content['country'] == '0') { // Zero id??? $content['country'] = '???'; } @@ -197,7 +197,7 @@ LIMIT 1", loadTemplate('admin_user_details', false, $content); } else { // Account does not exist! - loadTemplate('admin_settings_saved', false, sprintf(getMessage('ADMIN_MEMBER_404'), $userid)); + loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_MEMBER_404', $userid)); } // Free the result @@ -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 @@ -255,8 +255,8 @@ LIMIT 1", // Activate the extension please! $PAGES = round(SQL_NUMROWS($result_master) / getConfig('user_limit') + 0.5); - if (!isGetRequestElementSet('page')) setRequestGetElement('page' , 1); - if (!isGetRequestElementSet('offset')) setRequestGetElement('offset', getConfig('user_limit')); + if (!isGetRequestElementSet('page')) setGetRequestElement('page' , 1); + if (!isGetRequestElementSet('offset')) setGetRequestElement('offset', getConfig('user_limit')); // Add limitation to SQL string and run him again $sql .= " LIMIT ".(getRequestElement('offset') * getRequestElement('page') - getRequestElement('offset')).", ".getRequestElement('offset'); @@ -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'], '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'] = '---';