/add-ons/captcha/kcaptcha_config.php
PHP | 39 lines | 17 code | 5 blank | 17 comment | 2 complexity | 9a17a5e2fb83bc6dd0d8dcc0232da153 MD5 | raw file
Possible License(s): LGPL-2.0, LGPL-2.1, GPL-3.0, Apache-2.0, BSD-3-Clause
- <?php
- # KCAPTCHA configuration file
- $alphabet = "0123456789abcdefghijklmnopqrstuvwxyz"; # do not change without changing font files!
- # symbols used to draw CAPTCHA
- //$allowed_symbols = "0123456789"; #digits
- $allowed_symbols = "23456789abcdeghkmnpqsuvxyz"; #alphabet without similar symbols (o=0, 1=l, i=j, t=f)
- # folder with fonts
- $fontsdir = 'fonts';
- # CAPTCHA string length
- $length = TZR_CAPTCHA_LENGTH;
- //$length = 6;
- # symbol's vertical fluctuation amplitude divided by 2
- $fluctuation_amplitude = 5;
- # increase safety by prevention of spaces between symbols
- $no_spaces = true;
- # JPEG quality of CAPTCHA image (bigger is better quality, but larger file size)
- $jpeg_quality = 90;
- ##########################
- # TZR config parametrable
- # voir tzr.inc
- # CAPTCHA image size (you do not need to change it, whis parameters is optimal)
- $width = TZR_CAPTCHA_WIDTH;
- $height = TZR_CAPTCHA_HEIGHT;
- # show credits
- if(TZR_CAPTCHA_CREDITS != ''){
- $show_credits = true; # set to false to remove credits line. Credits adds 12 pixels to image height
- $credits = TZR_CAPTCHA_CREDITS; # if empty, HTTP_HOST will be shown
- }else $show_credits = false;
- # CAPTCHA image colors (RGB, 0-255)
- $foreground_color = explode(',',TZR_CAPTCHA_FORGROUND_COLOR);
- $background_color = explode(',',TZR_CAPTCHA_BACKGROUND_COLOR);
- //$foreground_color = array(mt_rand(0,100), mt_rand(0,100), mt_rand(0,100));
- //$background_color = array(mt_rand(200,255), mt_rand(200,255), mt_rand(200,255));
- ?>