- $content = array(
- 'sw' => $SW,
- 'uid' => ADMIN_USER_PROFILE_LINK($uid),
- 'gender' => TRANSLATE_GENDER($gender),
- 'sname' => $sname,
- 'fname' => $fname,
- 'email' => "[<A href=\"".CREATE_EMAIL_LINK($email, "user_data")."\">".$email."</A>]",
- 'addr' => $IP,
- 'ref' => $ref,
- 'status' => TRANSLATE_STATUS($status),
- 'links' => $LINKS,
- 'nick' => $nick,
- 'alinks' => MEMBER_ACTION_LINKS($uid, $status),
- 'points' => TRANSLATE_COMMA($pointsTotal),
- 'sent' => $SENT,
- 'rate' => TRANSLATE_COMMA($clickRate),
- 'locked' => TRANSLATE_COMMA(GET_TOTAL_DATA($uid, "user_points", "locked_points"))
- );
+ $content['sw'] = $SW;
+ $content['userid_link'] = generateUserProfileLink($content['userid']);
+ $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['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'] . '</a>]';
+
+ // Is the lock reason not set?
+ if (!isset($content['lock_reason'])) $content['lock_reason'] = '---';
+
+ // Is the extension 'country' installed?
+ // @TODO Rewrite this into a filter
+ if (isExtensionActive('country')) {
+ // Then overwrite country information
+ $content['country'] = generateCountryInfo($content['country_code']);
+ } elseif ($content['country'] == '') {
+ // Zero id???
+ $content['country'] = '???';
+ }