ILIAS
release_4-3 Revision
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
securimage_show.php
Go to the documentation of this file.
1
<?php
2
47
// Remove the "//" from the following line for debugging problems
48
// error_reporting(E_ALL); ini_set('display_errors', 1);
49
50
require_once dirname(__FILE__) .
'/securimage.php'
;
51
52
$img
=
new
securimage();
53
54
// You can customize the image by making changes below, some examples are included - remove the "//" to uncomment
55
56
//$img->ttf_file = './Quiff.ttf';
57
//$img->captcha_type = Securimage::SI_CAPTCHA_MATHEMATIC; // show a simple math problem instead of text
58
//$img->case_sensitive = true; // true to use case sensitve codes - not recommended
59
//$img->image_height = 90; // width in pixels of the image
60
//$img->image_width = $img->image_height * M_E; // a good formula for image size
61
//$img->perturbation = .75; // 1.0 = high distortion, higher numbers = more distortion
62
//$img->image_bg_color = new Securimage_Color("#0099CC"); // image background color
63
//$img->text_color = new Securimage_Color("#EAEAEA"); // captcha text color
64
//$img->num_lines = 8; // how many lines to draw over the image
65
//$img->line_color = new Securimage_Color("#0000CC"); // color of lines over the image
66
//$img->image_type = SI_IMAGE_JPEG; // render as a jpeg image
67
//$img->signature_color = new Securimage_Color(rand(0, 64),
68
// rand(64, 128),
69
// rand(128, 255)); // random signature color
70
71
// see securimage.php for more options that can be set
72
73
74
75
$img
->show();
// outputs the image and content headers to the browser
76
// alternate use:
77
// $img->show('/path/to/background_image.jpg');
Services
Captcha
lib
securimage_3_0_1
securimage_show.php
Generated on Sat Apr 30 2016 19:00:53 for ILIAS by
1.8.1.2 (using
Doxyfile
)