'registrationDate' => $row['joined'],
'banned' => $row['member_banned'],
'registrationIpAddress' => UserUtil::convertIPv4To6($row['ip_address']),
- 'enableGravatar' => (!empty($row['pp_gravatar']) && $row['pp_gravatar'] == $row['email']) ? 1 : 0,
'signature' => self::fixMessage($row['signature']),
'profileHits' => $row['members_profile_views'],
'userTitle' => $row['title'] ?: '',
'registrationDate' => $row['joined'],
'banned' => $row['temp_ban'] == -1 ? 1 : 0,
'registrationIpAddress' => UserUtil::convertIPv4To6($row['ip_address']),
- 'enableGravatar' => (!empty($row['pp_gravatar']) && $row['pp_gravatar'] == $row['email']) ? 1 : 0,
'signature' => self::fixMessage($row['signature']),
'profileHits' => $row['members_profile_views'],
'userTitle' => $row['member_title'] ?: '',
'signature' => self::convertMarkdown($row['signature']),
];
- static $gravatarRegex = null;
- if ($gravatarRegex === null) {
- $gravatarRegex = new Regex('https://(?:secure\.)?gravatar\.com/avatar/([a-f0-9]{32})');
- }
-
- if ($gravatarRegex->match($row['picture'])) {
- $matches = $gravatarRegex->getMatches();
-
- if ($matches[1] === \md5($row['email'])) {
- $data['enableGravatar'] = 1;
- }
- }
-
$birthday = \DateTime::createFromFormat('m/d/Y', StringUtil::decodeHTML($row['birthday']));
// get user options
$options = [
'registrationIpAddress' => UserUtil::convertIPv4To6($row['registrationIpAddress']),
'disableAvatar' => $row['disableAvatar'],
'disableAvatarReason' => !empty($row['disableAvatarReason']) ? $row['disableAvatarReason'] : '',
- 'enableGravatar' => (!empty($row['gravatar']) && $row['gravatar'] == $row['email']) ? 1 : 0,
'signature' => $row['signature'],
'signatureEnableHtml' => $row['enableSignatureHtml'],
'disableSignature' => $row['disableSignature'],
'registrationIpAddress' => $row['registrationIpAddress'],
'disableAvatar' => $row['disableAvatar'],
'disableAvatarReason' => $row['disableAvatarReason'],
- 'enableGravatar' => $row['enableGravatar'],
'signature' => $row['signature'],
'signatureEnableHtml' => $row['signatureEnableHtml'],
'disableSignature' => $row['disableSignature'],