diff -Naur old_public_html/phpBB2/includes/functions.php public_html/phpBB2/includes/functions.php
--- old_public_html/phpBB2/includes/functions.php 2006-04-05 10:53:36.000000000 -0600
+++ public_html/phpBB2/includes/functions.php 2006-05-11 11:04:56.000000000 -0600
@@ -168,7 +168,7 @@
$dss_seeded = true;
}
- return substr($val, 16);
+ return substr($val, 4, 16);
}
//
// Get Userdata, $user can be username or user_id. If force_str is true, the username will be forced.
@@ -893,4 +893,4 @@
exit;
}
-?>
\ No newline at end of file
+?>
diff -Naur old_public_html/phpBB2/includes/usercp_register.php public_html/phpBB2/includes/usercp_register.php
--- old_public_html/phpBB2/includes/usercp_register.php 2006-04-05 10:53:36.000000000 -0600
+++ public_html/phpBB2/includes/usercp_register.php 2006-05-11 11:06:59.000000000 -0600
@@ -991,7 +991,7 @@
// Generate the required confirmation code
// NB 0 (zero) could get confused with O (the letter) so we make change it
$code = dss_rand();
- $code = strtoupper(str_replace('0', 'o', substr($code, 6)));
+ $code = strtoupper(str_replace('0', 'o', substr($code, 2, 6)));
$confirm_id = md5(uniqid($user_ip));
@@ -1168,4 +1168,4 @@
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
-?>
\ No newline at end of file
+?>
diff -Naur old_public_html/phpBB2/profile.php public_html/phpBB2/profile.php
--- old_public_html/phpBB2/profile.php 2006-04-05 10:53:38.000000000 -0600
+++ public_html/phpBB2/profile.php 2006-05-11 11:08:05.000000000 -0600
@@ -62,7 +62,7 @@
{
$rand_str = dss_rand();
- return ( $hash ) ? md5($rand_str) : substr($rand_str, 8);
+ return ( $hash ) ? md5($rand_str) : substr($rand_str, 0, 8);
}
//
// End page specific functions
@@ -121,4 +121,4 @@
redirect(append_sid("index.$phpEx", true));
-?>
\ No newline at end of file
+?>