- define('_BIRTHDAY', MAKE_DATETIME(mktime(0, 0, 0, $DATA[9], $DATA[8], $DATA[10]), "3"));
- define('_REFS' , $REFS);
- define('_CATS' , $CATS);
- define('_LINKS', $LINKS);
- define('_ADMIN_LINKS', MEMBER_ACTION_LINKS($uid, $DATA[14]));
- $DATA[0] = TRANSLATE_SEX($DATA[0]);
- $DATA[28] = CREATE_EMAIL_LINK($DATA[7], "user_data");
- $DATA[14] = TRANSLATE_STATUS($DATA[14]);
- $DATA[16] = MAKE_DATETIME($DATA[16], "0");
- $DATA[20] = TRANSLATE_COMMA($DATA[20]);
- if ($DATA[21] > 0) $DATA[21] = $BASE."&what=email_details&u_id=".$uid."\">".$DATA[21]."</A>";
- $DATA[22] = MAKE_DATETIME($DATA[22], "0");
- $DATA[23] = MAKE_DATETIME($DATA[23], "0");
- $DATA[24] = MAKE_DATETIME($DATA[24], "0");
- if ((empty($DATA[27])) || ($DATA[27] == $uid)) $DATA[27] = "---";
- $DATA['total'] = TRANSLATE_COMMA(GET_TOTAL_DATA($uid, "user_points", "points"));
- $DATA['locked'] = TRANSLATE_COMMA(GET_TOTAL_DATA($uid, "user_points", "locked_points"));
-
- if (EXT_IS_ACTIVE("nickname")) {
- if ((empty($DATA[27])) || ($DATA[27] == $uid)) $DATA[27] = "---";
+ $content['admin_links'] = generateMemberAdminActionLinks($userid, $content['status']);
+ $content['gender'] = translateGender($content['gender']);
+ $content['email_link'] = generateEmailLink($content['email'], 'user_data');
+ $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']) . '</a>]';
+ $content['joined'] = generateDateTime($content['joined'], '0');
+ $content['last_update'] = generateDateTime($content['last_update'], '0');
+ $content['last_profile_sent'] = generateDateTime($content['last_profile_sent'], '0');
+ $content['total'] = translateComma(countSumTotalData($userid, 'user_points', 'points'));
+ $content['locked'] = translateComma(countSumTotalData($userid, 'user_points', 'locked_points'));
+ $content['lock_timestamp'] = generateDateTime($content['lock_timestamp'], '2');
+
+ // Is the lock reason not set?
+ if (!isset($content['lock_reason'])) $content['lock_reason'] = '---';
+
+ // Nickname inclusion?
+ // @TODO Rewrite these to filters
+ if (isExtensionActive('nickname')) {
+ // Nickname not set or invalid? Then
+ if ((empty($content['nickname'])) || ($content['nickname'] == $userid)) $content['nickname'] = '---';