ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
securimage_show_example.php
Go to the documentation of this file.
1 <?php
2 
47 require_once dirname(__FILE__) . '/securimage.php';
48 
49 $img = new Securimage();
50 
51 //Change some settings
52 $img->image_width = 250;
53 $img->image_height = 80;
54 $img->perturbation = 0.85;
55 $img->image_bg_color = new Securimage_Color("#f6f6f6");
56 $img->use_transparent_text = true;
57 $img->text_transparency_percentage = 30; // 100 = completely transparent
58 $img->num_lines = 7;
59 $img->line_color = new Securimage_Color("#eaeaea");
60 $img->image_signature = 'phpcaptcha.org';
61 $img->signature_color = new Securimage_Color(rand(0, 64), rand(64, 128), rand(128, 255));
62 $img->use_wordlist = true;
63 
64 $img->show('backgrounds/bg3.jpg'); // alternate use: $img->show('/path/to/background_image.jpg');
65