`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
$result_refs = SQL_QUERY_ESC("SELECT `refid` FROM `{?_MYSQL_PREFIX?}_user_refs` WHERE `userid`=%s AND `level`='%s' ORDER BY refid ASC",
array($userid, $levels['level']), __FILE__, __LINE__);
// Is the refback still active? ;-)
if (isExtensionActive('refback')) {
// Load all refs of this user
$result_refs = SQL_QUERY_ESC("SELECT `refid` FROM `{?_MYSQL_PREFIX?}_user_refs` WHERE `userid`=%s AND `level`='%s' ORDER BY refid ASC",
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'");
// Output info message
// Count entries
$menge = countSumTotalData($userid, 'user_data', 'userid', 'refid', true);
$menge_lck = countSumTotalData($userid, 'user_data', 'userid', 'refid', true, " AND `status` != 'CONFIRMED'");
// Output info message
- $levels['info'] = getMaskedMessage('ADMIN_USER_TOTAL_REFS', generateUserProfileLink($userid), $menge, $menge_lck);
+ $levels['info'] = sprintf(getMessage('ADMIN_USER_TOTAL_REFS'), generateUserProfileLink($userid), $menge, $menge_lck);
- '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'),
'email' => '[<a href="' . generateEmailLink(getUserData('email'), 'user_data') . '">' . getUserData('email') . '</a>]',
'refs_link' => 0,
'surname' => getUserData('surname'),
'family' => getUserData('family'),
'email' => '[<a href="' . generateEmailLink(getUserData('email'), 'user_data') . '">' . getUserData('email') . '</a>]',
- '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'],
'email' => '[<a href="' . generateEmailLink($levels['email'], 'user_data') . '">' . $levels['email'] . '</a>]',
'refs_link' => 0,
'surname' => $levels['surname'],
'family' => $levels['family'],
'email' => '[<a href="' . generateEmailLink($levels['email'], 'user_data') . '">' . $levels['email'] . '</a>]',
// 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!