~lss-team/lilsoftstats/trunk

« back to all changes in this revision

Viewing changes to inc/captcha.php

  • Committer: Nick
  • Date: 2011-11-14 04:10:28 UTC
  • Revision ID: nick@little-apps.org-20111114041028-cvmpwq6z6hx3pkya
first commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * Little Software Stats
 
4
 *
 
5
 * An open source program that allows developers to keep track of how their software is being used
 
6
 *
 
7
 * @package             Little Software Stats
 
8
 * @author              Little Apps
 
9
 * @copyright           Copyright (c) 2011, Little Apps
 
10
 * @license             http://www.gnu.org/licenses/gpl.html GNU General Public License v3
 
11
 * @link                http://little-apps.org
 
12
 * @since               Version 0.1
 
13
 * @filesource
 
14
 */
 
15
 
 
16
/**
 
17
 * Project:     Securimage: A PHP class for creating and managing form CAPTCHA images<br />
 
18
 * File:        securimage_show.php<br />
 
19
 *
 
20
 * This library is free software; you can redistribute it and/or
 
21
 * modify it under the terms of the GNU Lesser General Public
 
22
 * License as published by the Free Software Foundation; either
 
23
 * version 2.1 of the License, or any later version.<br /><br />
 
24
 *
 
25
 * This library is distributed in the hope that it will be useful,
 
26
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
27
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
28
 * Lesser General Public License for more details.<br /><br />
 
29
 *
 
30
 * You should have received a copy of the GNU Lesser General Public
 
31
 * License along with this library; if not, write to the Free Software
 
32
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA<br /><br />
 
33
 *
 
34
 * Any modifications to the library should be indicated clearly in the source code
 
35
 * to inform users that the changes are not a part of the original software.<br /><br />
 
36
 *
 
37
 * If you found this script useful, please take a quick moment to rate it.<br />
 
38
 * http://www.hotscripts.com/rate/49400.html  Thanks.
 
39
 *
 
40
 * @link http://www.phpcaptcha.org Securimage PHP CAPTCHA
 
41
 * @link http://www.phpcaptcha.org/latest.zip Download Latest Version
 
42
 * @link http://www.phpcaptcha.org/Securimage_Docs/ Online Documentation
 
43
 * @copyright 2009 Drew Phillips
 
44
 * @author drew010 <drew@drew-phillips.com>
 
45
 * @version 2.0.1 BETA (December 6th, 2009)
 
46
 * @package Securimage
 
47
 *
 
48
 */
 
49
 
 
50
include 'securimage.php';
 
51
 
 
52
$img = new securimage();
 
53
 
 
54
// Change some settings
 
55
 
 
56
//$img->image_width = 275;
 
57
//$img->image_height = 90;
 
58
//$img->perturbation = 0.9; // 1.0 = high distortion, higher numbers = more distortion
 
59
//$img->image_bg_color = new Securimage_Color("#0099CC");
 
60
//$img->text_color = new Securimage_Color("#EAEAEA");
 
61
//$img->text_transparency_percentage = 65; // 100 = completely transparent
 
62
//$img->num_lines = 8;
 
63
//$img->line_color = new Securimage_Color("#0000CC");
 
64
//$img->signature_color = new Securimage_Color(rand(0, 64), rand(64, 128), rand(128, 255));
 
65
//$img->image_type = SI_IMAGE_PNG;
 
66
 
 
67
 
 
68
$img->show(); // alternate use:  $img->show('/path/to/background_image.jpg');