* *
* -------------------------------------------------------------------- *
* File : what-list_refs.php *
* *
* -------------------------------------------------------------------- *
* File : what-list_refs.php *
* *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
$menge_lck = countSumTotalData($userid, 'user_data', 'userid', 'refid', true, " AND `status` != 'CONFIRMED'");
// Output info message
$menge_lck = countSumTotalData($userid, 'user_data', 'userid', 'refid', true, " AND `status` != 'CONFIRMED'");
// Output info message
- loadTemplate('admin_settings_saved', false, sprintf(getMessage('ADMIN_USER_TOTAL_REFS'), generateUserProfileLink(getRequestElement('userid')), $menge, $menge_lck));
+ displayMessage(sprintf(getMessage('ADMIN_USER_TOTAL_REFS'), generateUserProfileLink(getRequestParameter('userid')), $menge, $menge_lck));
`level` ASC", __FILE__, __LINE__);
// Are there some levels (VERY BAD IF NONE!)
`level` ASC", __FILE__, __LINE__);
// Are there some levels (VERY BAD IF NONE!)
// Is the refback still active? ;-)
if (isExtensionActive('refback')) {
// Load all refs of this user
// Is the refback still active? ;-)
if (isExtensionActive('refback')) {
// Load all refs of this user
array($userid, $levels['level']), __FILE__, __LINE__);
array($userid, $levels['level']), __FILE__, __LINE__);
// Count entries
$menge = countSumTotalData($userid, 'user_data', 'userid', 'refid', true);
$menge_lck = countSumTotalData($userid, 'user_data', 'userid', 'refid', true, " AND `status` != 'CONFIRMED'");
// Count entries
$menge = countSumTotalData($userid, 'user_data', 'userid', 'refid', true);
$menge_lck = countSumTotalData($userid, 'user_data', 'userid', 'refid', true, " AND `status` != 'CONFIRMED'");
$levels['info'] = sprintf(getMessage('ADMIN_USER_TOTAL_REFS'), generateUserProfileLink($userid), $menge, $menge_lck);
// Init variables
$levels['info'] = sprintf(getMessage('ADMIN_USER_TOTAL_REFS'), generateUserProfileLink($userid), $menge, $menge_lck);
// Init variables
$refs_cnt = countSumTotalData(getUserData('userid'), 'user_refs', 'id', 'userid', true);
// Prepare data for the template
$refs_cnt = countSumTotalData(getUserData('userid'), 'user_refs', 'id', 'userid', true);
// Prepare data for the template
- 'sw' => $SW,
- 'u_link' => generateUserProfileLink(getUserData('userid')),
- 'gender' => translateGender(getUserData('gender')),
+ 'userid' => getUserData('userid'),
+ 'gender' => getUserData('gender'),
'refs_link' => 0,
'surname' => getUserData('surname'),
'family' => getUserData('family'),
'refs_link' => 0,
'surname' => getUserData('surname'),
'family' => getUserData('family'),
- 'email' => "[<a href=\"".generateEmailLink(getUserData('email'), 'user_data')."\">".getUserData('email')."</a>]",
- 'status' => translateUserStatus(getUserData('status')),
+ 'email' => '[<a href="' . generateEmailLink(getUserData('email'), 'user_data') . '">' . getUserData('email') . '</a>]',
+ 'status' => getUserData('status'),
'registered' => generateDateTime(getUserData('joined'), 3),
);
// Check if referal count is larger 0 and update link
'registered' => generateDateTime(getUserData('joined'), 3),
);
// Check if referal count is larger 0 and update link
- if ($refs_cnt > 0) $content['refs_link'] = generateUserProfileLink(getUserData('userid'), $refs_cnt, "list_refs");
+ if ($refs_cnt > 0) {
+ $content['refs_link'] = generateUserProfileLink(getUserData('userid'), $refs_cnt, 'list_refs');
+ } // END - if
// Load template for level one
$OUT_REFS .= loadTemplate('admin_list_refs_row', true, $content);
// Load template for level one
$OUT_REFS .= loadTemplate('admin_list_refs_row', true, $content);
- 'sw' => $SW,
- 'u_link' => generateUserProfileLink($levels['userid']),
- 'gender' => translateGender($levels['gender']),
+ 'userid' => $levels['userid'],
+ 'gender' => $levels['gender'],
'refs_link' => 0,
'surname' => $levels['surname'],
'family' => $levels['family'],
'refs_link' => 0,
'surname' => $levels['surname'],
'family' => $levels['family'],
- 'email' => "[<a href=\"".generateEmailLink($levels['email'], 'user_data')."\">".$levels['email']."</a>]",
- 'status' => translateUserStatus($levels['status']),
+ 'email' => '[<a href="' . generateEmailLink($levels['email'], 'user_data') . '">' . $levels['email'] . '</a>]',
+ 'status' => $levels['status'],
// Load template for level one
$OUT .= loadTemplate('admin_list_refs_row', true, $content);
// Load template for level one
$OUT .= loadTemplate('admin_list_refs_row', true, $content);
}
} elseif (isExtensionActive('refback')) {
// No levels found, very bad!
}
} elseif (isExtensionActive('refback')) {
// No levels found, very bad!
- loadTemplate('admin_settings_saved', false, sprintf(getMessage('ADMIN_MEMBER_404'), getRequestElement('userid')));
+ displayMessage('{%message,ADMIN_MEMBER_404=' . getRequestParameter('userid') . '%}');