diff options
| author | Christian Fowler <spider@viovio.com> | 2006-09-15 21:07:42 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2006-09-15 21:07:42 +0000 |
| commit | 244a533a278534599aa3b3c201d4e14b3716c4e0 (patch) | |
| tree | 6194ebe5c688dbb532e4d3795a280999284e5321 /register.php | |
| parent | 529422f24732f650c1cdfd4f04102a0a41fd5130 (diff) | |
| download | users-244a533a278534599aa3b3c201d4e14b3716c4e0.tar.gz users-244a533a278534599aa3b3c201d4e14b3716c4e0.tar.bz2 users-244a533a278534599aa3b3c201d4e14b3716c4e0.zip | |
simple function captcha now working for shoutbox
Diffstat (limited to 'register.php')
| -rw-r--r-- | register.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/register.php b/register.php index 2906aed..3cf6ddf 100644 --- a/register.php +++ b/register.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_users/register.php,v 1.25 2006/08/23 08:29:29 jht001 Exp $ + * $Header: /cvsroot/bitweaver/_bit_users/register.php,v 1.26 2006/09/15 21:07:42 spiderr Exp $ * * Copyright (c) 2004 bitweaver.org * Copyright (c) 2003 tikwiki.org @@ -8,7 +8,7 @@ * All Rights Reserved. See copyright.txt for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details * - * $Id: register.php,v 1.25 2006/08/23 08:29:29 jht001 Exp $ + * $Id: register.php,v 1.26 2006/09/15 21:07:42 spiderr Exp $ * @package users * @subpackage functions */ @@ -41,8 +41,8 @@ if( isset( $_REQUEST["register"] ) ) { // novalidation is set to yes if a user confirms his email is correct after tiki fails to validate it if( $gBitSystem->isFeatureActive( 'users_random_number_reg' ) ) { if( (empty( $reg['novalidation'] ) || $reg['novalidation'] != 'yes') - && (!isset( $_SESSION['random_number'] ) || $_SESSION['random_number']!=$reg['regcode'])) { - $errors['users_random_number_reg'] = "Wrong registration code"; + && (!isset( $_SESSION['captcha'] ) || $_SESSION['captcha']!=$reg['captcha'])) { + $errors['captcha'] = "Wrong registration code"; } } |
