cvs: php-bugs-web / captcha-image.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Sat, 23 Apr 2005 01:53:55 +0000 |
| Subject: | cvs: php-bugs-web / captcha-image.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-28000@lists.php.net to get a copy of this message | ||
dufuz Fri Apr 22 21:53:55 2005 EDT
Modified files:
/php-bugs-web captcha-image.php
Log:
Remove the require_once prepend.inc, add session_start remove the generate_captcha so users
don't see totally different captcha then they should be seeing
# This CAPTCHA stuff is giving me headaches :/
http://cvs.php.net/diff.php/php-bugs-web/captcha-image.php?r1=1.1&r2=1.2&ty=u
Index: php-bugs-web/captcha-image.php
diff -u php-bugs-web/captcha-image.php:1.1 php-bugs-web/captcha-image.php:1.2
--- php-bugs-web/captcha-image.php:1.1 Wed Apr 20 09:00:40 2005
+++ php-bugs-web/captcha-image.php Fri Apr 22 21:53:55 2005
@@ -42,13 +42,12 @@
* @author Daniel Convissor <danielc@php.net>
* @copyright Copyright (c) 2004-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License
- * @version $Id: captcha-image.php,v 1.1 2005/04/20 13:00:40 dufuz Exp $
+ * @version $Id: captcha-image.php,v 1.2 2005/04/23 01:53:55 dufuz Exp $
* @see generate_captcha(), validate_captcha()
*/
-
-require_once 'prepend.inc';
-
-generate_captcha();
+
+session_start();
+
if (!isset($_SESSION['captcha'])) {
exit;
}