summaryrefslogtreecommitdiff
path: root/captcha_image.php
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2006-09-15 21:16:56 +0000
committerChristian Fowler <spider@viovio.com>2006-09-15 21:16:56 +0000
commitd5f4f7f07748b10190f185fc3f888a0c7754b9fd (patch)
tree2470dd72fdaf5e31a1e9dfbcdaef9fcf340689ba /captcha_image.php
parent244a533a278534599aa3b3c201d4e14b3716c4e0 (diff)
downloadusers-d5f4f7f07748b10190f185fc3f888a0c7754b9fd.tar.gz
users-d5f4f7f07748b10190f185fc3f888a0c7754b9fd.tar.bz2
users-d5f4f7f07748b10190f185fc3f888a0c7754b9fd.zip
smarty captcha plugin is now configurable with height, width, and size params
Diffstat (limited to 'captcha_image.php')
-rw-r--r--captcha_image.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/captcha_image.php b/captcha_image.php
index a4a05dd..7070cfb 100644
--- a/captcha_image.php
+++ b/captcha_image.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_users/captcha_image.php,v 1.2 2006/09/15 21:07:42 spiderr Exp $
+ * $Header: /cvsroot/bitweaver/_bit_users/captcha_image.php,v 1.3 2006/09/15 21:16:56 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: captcha_image.php,v 1.2 2006/09/15 21:07:42 spiderr Exp $
+ * $Id: captcha_image.php,v 1.3 2006/09/15 21:16:56 spiderr Exp $
* @package users
* @subpackage functions
*/
@@ -20,8 +20,8 @@
require_once( '../bit_setup_inc.php' );
// dimensions
-$width = 140;
-$height = 35;
+$width = @BitBase::verifyId( $_REQUEST['width'] ) ? $_REQUEST['width'] : 140;
+$height = @BitBase::verifyId( $_REQUEST['height'] ) ? $_REQUEST['height'] : 35;
$img = @imagecreate( $width, $height ) or die( "The GD image library doesn't seem to be available or doesn't have JPG support." );