aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2008-01-06 13:46:20 +0000
committerDavid M <davidmj@users.sourceforge.net>2008-01-06 13:46:20 +0000
commit2f08a3606203c1a2c7aad96e2eb65f6fa882d9a8 (patch)
treecd1668ffa8bc1b5d947f69abcb651d884e941e9f /phpBB/includes/functions_user.php
parent57645ad5bc2469e166cb3e5d54628d87ffa74c42 (diff)
downloadforums-2f08a3606203c1a2c7aad96e2eb65f6fa882d9a8.tar
forums-2f08a3606203c1a2c7aad96e2eb65f6fa882d9a8.tar.gz
forums-2f08a3606203c1a2c7aad96e2eb65f6fa882d9a8.tar.bz2
forums-2f08a3606203c1a2c7aad96e2eb65f6fa882d9a8.tar.xz
forums-2f08a3606203c1a2c7aad96e2eb65f6fa882d9a8.zip
- add DB2 support
/me takes a nap git-svn-id: file:///svn/phpbb/trunk@8308 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r--phpBB/includes/functions_user.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index 84e75670fb..bacb4462c6 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -167,7 +167,7 @@ function user_add($user_row, $cp_data = false)
'user_password' => (isset($user_row['user_password'])) ? $user_row['user_password'] : '',
'user_pass_convert' => 0,
'user_email' => strtolower($user_row['user_email']),
- 'user_email_hash' => crc32(strtolower($user_row['user_email'])) . strlen($user_row['user_email']),
+ 'user_email_hash' => hexdec(crc32(strtolower($user_row['user_email'])) . strlen($user_row['user_email'])),
'group_id' => $user_row['group_id'],
'user_type' => $user_row['user_type'],
);
@@ -1541,7 +1541,7 @@ function validate_email($email, $allowed_email = false)
{
$sql = 'SELECT user_email_hash
FROM ' . USERS_TABLE . "
- WHERE user_email_hash = " . (crc32($email) . strlen($email));
+ WHERE user_email_hash = " . hexdec(crc32($email) . strlen($email));
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);