- define('_BIRTHDAY', MAKE_DATETIME(mktime(0, 0, 0, $DATA['birth_month'], $DATA['birth_day'], $DATA['birth_year']), "3"));
- define('_REFS' , $REFS);
- define('_CATS' , $CATS);
- define('_LINKS', $LINKS);
- define('_ADMIN_LINKS', MEMBER_ACTION_LINKS($uid, $DATA['status']));
- $DATA['gender'] = TRANSLATE_GENDER($DATA['gender']);
- $DATA['email_link'] = CREATE_EMAIL_LINK($DATA['email'], "user_data");
- $DATA['status'] = TRANSLATE_STATUS($DATA['status']);
- $DATA['last_online'] = MAKE_DATETIME($DATA['last_online'], "0");
- $DATA['used_points'] = TRANSLATE_COMMA($DATA['used_points']);
- if ($DATA['emails_sent'] > 0) $DATA['emails_sent'] = $BASE."&what=email_details&u_id=".$uid."\">".TRANSLATE_COMMA($DATA['emails_sent'])."</A>]";
- $DATA['joined'] = MAKE_DATETIME($DATA['joined'], "0");
- $DATA['last_update'] = MAKE_DATETIME($DATA['last_update'], "0");
- $DATA['last_profile_sent'] = MAKE_DATETIME($DATA['last_profile_sent'], "0");
- $DATA['total'] = TRANSLATE_COMMA(GET_TOTAL_DATA($uid, "user_points", "points"));
- $DATA['locked'] = TRANSLATE_COMMA(GET_TOTAL_DATA($uid, "user_points", "locked_points"));
- $DATA['lock_timestamp'] = MAKE_DATETIME($DATA['lock_timestamp'], "2");
+ $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);