summary refs log tree commit diff stats
path: root/includes/securimage/securimage_show_example.php
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2010-08-17 13:40:52 -0400
committerStarla Insigna <hatkirby@fourisland.com>2010-08-17 13:40:52 -0400
commit0085e272b2002437f11f74ccdde0d6975f2cd9f2 (patch)
treef64e03d63c8566f85f0fdaf33ac88848824f2737 /includes/securimage/securimage_show_example.php
parent3b2e04f16a595893e8736a9b816bad81ecc8bf6a (diff)
downloadfourisland-0085e272b2002437f11f74ccdde0d6975f2cd9f2.tar.gz
fourisland-0085e272b2002437f11f74ccdde0d6975f2cd9f2.tar.bz2
fourisland-0085e272b2002437f11f74ccdde0d6975f2cd9f2.zip
Added back reCAPTCHA
Because of the lifting of the jail around my server, it can once again use reCAPTCHAs for security.

Backed out changeset 9332c237adcd
Diffstat (limited to 'includes/securimage/securimage_show_example.php')
-rw-r--r--includes/securimage/securimage_show_example.php64
1 files changed, 0 insertions, 64 deletions
diff --git a/includes/securimage/securimage_show_example.php b/includes/securimage/securimage_show_example.php deleted file mode 100644 index 1d34753..0000000 --- a/includes/securimage/securimage_show_example.php +++ /dev/null
@@ -1,64 +0,0 @@
1<?php
2
3/**
4 * Project: Securimage: A PHP class for creating and managing form CAPTCHA images<br />
5 * File: securimage_show_example.php<br />
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or any later version.<br /><br />
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.<br /><br />
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA<br /><br />
20 *
21 * Any modifications to the library should be indicated clearly in the source code
22 * to inform users that the changes are not a part of the original software.<br /><br />
23 *
24 * If you found this script useful, please take a quick moment to rate it.<br />
25 * http://www.hotscripts.com/rate/49400.html Thanks.
26 *
27 * @link http://www.phpcaptcha.org Securimage PHP CAPTCHA
28 * @link http://www.phpcaptcha.org/latest.zip Download Latest Version
29 * @link http://www.phpcaptcha.org/Securimage_Docs/ Online Documentation
30 * @copyright 2009 Drew Phillips
31 * @author Drew Phillips <drew@drew-phillips.com>
32 * @version 2.0.1 BETA (December 6th, 2009)
33 * @package Securimage
34 *
35 */
36
37include 'securimage.php';
38
39$img = new securimage();
40
41//Change some settings
42$img->image_width = 250;
43$img->image_height = 80;
44$img->perturbation = 0.85;
45$img->image_bg_color = new Securimage_Color("#f6f6f6");
46$img->multi_text_color = array(new Securimage_Color("#3399ff"),
47 new Securimage_Color("#3300cc"),
48 new Securimage_Color("#3333cc"),
49 new Securimage_Color("#6666ff"),
50 new Securimage_Color("#99cccc")
51 );
52$img->use_multi_text = true;
53$img->text_angle_minimum = -5;
54$img->text_angle_maximum = 5;
55$img->use_transparent_text = true;
56$img->text_transparency_percentage = 30; // 100 = completely transparent
57$img->num_lines = 7;
58$img->line_color = new Securimage_Color("#eaeaea");
59$img->image_signature = 'phpcaptcha.org';
60$img->signature_color = new Securimage_Color(rand(0, 64), rand(64, 128), rand(128, 255));
61$img->use_wordlist = true;
62
63$img->show('backgrounds/bg3.jpg'); // alternate use: $img->show('/path/to/background_image.jpg');
64