-
Notifications
You must be signed in to change notification settings - Fork 1
/
securimage_show.php
31 lines (28 loc) · 1.21 KB
/
securimage_show.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
require('includes/application_top.php');
include sysConfig::getDirFsCatalog(). 'captcha/securimage.php';
$img = new securimage();
//Change some settings
$img->image_width = 250;
$img->image_height = 80;
$img->perturbation = 0.85;
$img->image_bg_color = new Securimage_Color("#f6f6f6");
$img->multi_text_color = array(new Securimage_Color("#3399ff"),
new Securimage_Color("#3300cc"),
new Securimage_Color("#3333cc"),
new Securimage_Color("#6666ff"),
new Securimage_Color("#99cccc")
);
$img->use_multi_text = true;
$img->text_angle_minimum = -5;
$img->text_angle_maximum = 5;
$img->use_transparent_text = true;
$img->text_transparency_percentage = 30; // 100 = completely transparent
$img->num_lines = 7;
$img->line_color = new Securimage_Color("#eaeaea");
$img->image_signature = sysConfig::get('HTTP_SERVER');
$img->signature_color = new Securimage_Color(rand(0, 64), rand(64, 128), rand(128, 255));
$img->use_wordlist = false;
$img->show('backgrounds/bg3.jpg'); // alternate use: $img->show('/path/to/background_image.jpg');
require('includes/application_bottom.php');
?>