// Is this above zero?
if ($stamp > 0) {
// Then use it
- $content['birthday'] = generateDateTime($stamp, '3');
+ $content['birthday'] = generateDateTime($stamp, '2');
} else {
// Zero or below so set zero!
- $content['birthday'] = generateDateTime(0, '3');
+ $content['birthday'] = generateDateTime(0, '2');
}
// Prepare data for template
$content['email_link'] = generateEmailLink($content['email'], 'user_data');
- $content['last_online'] = generateDateTime($content['last_online'], '0');
- $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['last_online'] = generateDateTime($content['last_online'], '2');
+ $content['joined'] = generateDateTime($content['joined'], '2');
+ $content['last_update'] = generateDateTime($content['last_update'], '2');
+ $content['last_profile_sent'] = generateDateTime($content['last_profile_sent'], '2');
$content['total_points'] = getTotalPoints($content['userid']);
$content['locked_points'] = countSumTotalData($content['userid'], 'user_points', 'locked_points') + countSumTotalData($content['userid'], 'user_points', 'locked_order_points');
// Add more data
$content['own_points'] = $data['points'];
- $content['lock_timestamp'] = generateDateTime($content['lock_timestamp'], 2);
+ $content['lock_timestamp'] = generateDateTime($content['lock_timestamp'], '2');
// Link to email_details if some are sent
if ($content['emails_sent'] > 0) {
// Transfer data to array
$content['email'] = '[<a href="' . generateEmailLink($content['email'], 'user_data') . '">' . $content['email'] . '</a>]';
- $content['lock_timestamp'] = generateDateTime($content['lock_timestamp'], 2);
+ $content['lock_timestamp'] = generateDateTime($content['lock_timestamp'], '2');
$content['refs'] = countSumTotalData($content['userid'], 'user_refs', 'id', 'userid', true);
$content['own_points'] = countSumTotalData($content['userid'], 'user_points', 'points') + countSumTotalData($content['userid'], 'user_points', 'order_points');
$content['locked_points'] = countSumTotalData($content['userid'], 'user_points', 'locked_points') + countSumTotalData($content['userid'], 'user_points', 'locked_order_points');