<?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 *
$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?
} // 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
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'] = '???';
}
$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
// @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', '');
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['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 . '&what=list_refs&userid=' . $content['userid'] . '">' . $content['refs'] . '</a>]';
// Then overwrite country information
$content['country'] = generateCountryInfo($content['country_code']);
} elseif ($content['country'] == '') {
- // Zero ID???
+ // Zero id???
$content['country'] = '???';
}