From 3b2e04f16a595893e8736a9b816bad81ecc8bf6a Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Fri, 12 Mar 2010 21:46:15 -0500 Subject: Added working CAPTCHA After a little digging, it turned out that the reason that reCAPTCHA always failed was because the reCAPTCHA server was blocked to the server. This should've been obvious as the reCAPTCHA always worked on the development server. --- includes/securimage/securimage_show.php | 55 +++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 includes/securimage/securimage_show.php (limited to 'includes/securimage/securimage_show.php') diff --git a/includes/securimage/securimage_show.php b/includes/securimage/securimage_show.php new file mode 100644 index 0000000..39a4957 --- /dev/null +++ b/includes/securimage/securimage_show.php @@ -0,0 +1,55 @@ + + * File: securimage_show.php
+ * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or any later version.

+ * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details.

+ * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

+ * + * Any modifications to the library should be indicated clearly in the source code + * to inform users that the changes are not a part of the original software.

+ * + * If you found this script useful, please take a quick moment to rate it.
+ * http://www.hotscripts.com/rate/49400.html Thanks. + * + * @link http://www.phpcaptcha.org Securimage PHP CAPTCHA + * @link http://www.phpcaptcha.org/latest.zip Download Latest Version + * @link http://www.phpcaptcha.org/Securimage_Docs/ Online Documentation + * @copyright 2009 Drew Phillips + * @author drew010 + * @version 2.0.1 BETA (December 6th, 2009) + * @package Securimage + * + */ + +include 'securimage.php'; + +$img = new securimage(); + +// Change some settings + +//$img->image_width = 275; +//$img->image_height = 90; +//$img->perturbation = 0.9; // 1.0 = high distortion, higher numbers = more distortion +//$img->image_bg_color = new Securimage_Color("#0099CC"); +//$img->text_color = new Securimage_Color("#EAEAEA"); +//$img->text_transparency_percentage = 65; // 100 = completely transparent +//$img->num_lines = 8; +//$img->line_color = new Securimage_Color("#0000CC"); +//$img->signature_color = new Securimage_Color(rand(0, 64), rand(64, 128), rand(128, 255)); +//$img->image_type = SI_IMAGE_PNG; + + +$img->show(); // alternate use: $img->show('/path/to/background_image.jpg'); -- cgit 1.4.1