PageRenderTime 46ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/app/config/captcha.php

https://github.com/sharapovweb/exidoengine
PHP | 52 lines | 17 code | 2 blank | 33 comment | 0 complexity | dbcc890187b4d170b795d4a50aee1b1a MD5 | raw file
Possible License(s): LGPL-2.1, GPL-3.0
  1. <?php defined('SYSPATH') or die('No direct script access allowed.');
  2. /*******************************************************************************
  3. * ExidoEngine Web-sites manager
  4. *
  5. * NOTICE OF LICENSE
  6. *
  7. * This source file is subject to the GNU General Public License (3.0)
  8. * that is bundled with this package in the file license_en.txt
  9. * It is also available through the world-wide-web at this URL:
  10. * http://www.exidoengine.com/license/gpl-3.0.html
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@exidoengine.com so we can send you a copy immediately.
  14. *
  15. * @license http://www.exidoengine.com/license/gpl-3.0.html (GNU General Public License v3)
  16. * @author ExidoTeam
  17. * @copyright Copyright (c) 2009 - 2013, ExidoEngine Solutions
  18. * @link http://www.exidoengine.com/
  19. * @since Version 1.0
  20. * @filesource
  21. *******************************************************************************/
  22. return array(
  23. /**
  24. * ATTENTION: DO NOT change alphabet without changing font files!
  25. */
  26. 'alphabet' => '0123456789abcdefghijklmnopqrstuvwxyz',
  27. /**
  28. * Alphabet without similar symbols (o=0, 1=l, i=j, t=f)
  29. */
  30. 'allowed_symbols' => '23456789abcdegikpqsvxyz',
  31. /**
  32. * Relative path to folder with fonts
  33. */
  34. 'fontsdir' => 'view/fonts',
  35. /**
  36. * Captcha string length, random 5 or 6 or 7
  37. * Can be changed to preferred length
  38. */
  39. 'length' => mt_rand(5,7),
  40. 'width' => 160,
  41. 'height' => 80,
  42. 'fluctuation_amplitude' => 8,
  43. 'white_noise_density' => '1/6',
  44. 'black_noise_density' => '1/30',
  45. 'no_spaces' => true,
  46. 'foreground_color' => array(mt_rand(0,80), mt_rand(0,80), mt_rand(0,80)),
  47. 'background_color' => array(mt_rand(220,255), mt_rand(220,255), mt_rand(220,255)),
  48. 'jpeg_quality' => 90
  49. );
  50. ?>