PageRenderTime 54ms CodeModel.GetById 28ms RepoModel.GetById 1ms app.codeStats 0ms

/add-ons/captcha/kcaptcha_config.php

https://github.com/jcplat/console-seolan
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
  1. <?php
  2. # KCAPTCHA configuration file
  3. $alphabet = "0123456789abcdefghijklmnopqrstuvwxyz"; # do not change without changing font files!
  4. # symbols used to draw CAPTCHA
  5. //$allowed_symbols = "0123456789"; #digits
  6. $allowed_symbols = "23456789abcdeghkmnpqsuvxyz"; #alphabet without similar symbols (o=0, 1=l, i=j, t=f)
  7. # folder with fonts
  8. $fontsdir = 'fonts';
  9. # CAPTCHA string length
  10. $length = TZR_CAPTCHA_LENGTH;
  11. //$length = 6;
  12. # symbol's vertical fluctuation amplitude divided by 2
  13. $fluctuation_amplitude = 5;
  14. # increase safety by prevention of spaces between symbols
  15. $no_spaces = true;
  16. # JPEG quality of CAPTCHA image (bigger is better quality, but larger file size)
  17. $jpeg_quality = 90;
  18. ##########################
  19. # TZR config parametrable
  20. # voir tzr.inc
  21. # CAPTCHA image size (you do not need to change it, whis parameters is optimal)
  22. $width = TZR_CAPTCHA_WIDTH;
  23. $height = TZR_CAPTCHA_HEIGHT;
  24. # show credits
  25. if(TZR_CAPTCHA_CREDITS != ''){
  26. $show_credits = true; # set to false to remove credits line. Credits adds 12 pixels to image height
  27. $credits = TZR_CAPTCHA_CREDITS; # if empty, HTTP_HOST will be shown
  28. }else $show_credits = false;
  29. # CAPTCHA image colors (RGB, 0-255)
  30. $foreground_color = explode(',',TZR_CAPTCHA_FORGROUND_COLOR);
  31. $background_color = explode(',',TZR_CAPTCHA_BACKGROUND_COLOR);
  32. //$foreground_color = array(mt_rand(0,100), mt_rand(0,100), mt_rand(0,100));
  33. //$background_color = array(mt_rand(200,255), mt_rand(200,255), mt_rand(200,255));
  34. ?>