diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-02-26 23:28:27 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-02-26 23:28:27 +0000 |
commit | 7e72e538b209e8edefbc5a6eb26f3e771785ef09 (patch) | |
tree | bf6402344daef48c97a80a6fdd83aa9eca5707a4 /phpBB/includes | |
parent | b9e52c5f0f9b079545b8e5f582fae59a6d1624d0 (diff) | |
download | forums-7e72e538b209e8edefbc5a6eb26f3e771785ef09.tar forums-7e72e538b209e8edefbc5a6eb26f3e771785ef09.tar.gz forums-7e72e538b209e8edefbc5a6eb26f3e771785ef09.tar.bz2 forums-7e72e538b209e8edefbc5a6eb26f3e771785ef09.tar.xz forums-7e72e538b209e8edefbc5a6eb26f3e771785ef09.zip |
Hope James doesn't mind but I've done some playing to get basic registration working
git-svn-id: file:///svn/phpbb/trunk@3557 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rwxr-xr-x | phpBB/includes/ucp/usercp_confirm.php | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/phpBB/includes/ucp/usercp_confirm.php b/phpBB/includes/ucp/usercp_confirm.php index 35f4504dbd..33fbd1950d 100755 --- a/phpBB/includes/ucp/usercp_confirm.php +++ b/phpBB/includes/ucp/usercp_confirm.php @@ -63,15 +63,7 @@ if ($row = $db->sql_fetchrow($result)) } else { - list($usec, $sec) = explode(' ', microtime()); - mt_srand($sec * $usec); - - $code = gen_png_string(6); - - $sql = "INSERT INTO " . CONFIRM_TABLE . " (confirm_id, session_id, code) - VALUES ('$confirm_id', '" . $user->data['session_id'] . "', '$code')"; - - $db->sql_query($sql); + exit; } // If we can we will generate a single filtered png else we will have to simply @@ -180,19 +172,6 @@ exit; // --------- // FUNCTIONS // -function gen_png_string($num_chars) -{ - global $chars; - - $max_chars = count($chars) - 1; - $rand_str = ''; - for ($i = 0; $i < $num_chars; $i++) - { - $rand_str .= $chars[mt_rand(0, $max_chars)]; - } - - return $rand_str; -} // This is designed to randomise the pixels of the image data within // certain limits so as to keep it readable. It also varies the image |