captcha.php 949 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. return [
  3. 'characters' => '123467890',
  4. //'characters' => '2346789abcdefghjmnpqrtuxyzABCDEFGHJMNPQRTUXYZ',
  5. 'default' => [
  6. 'length' => 4, // ���ÿ�ѧ�����Ҫ��Ϊ 9
  7. 'width' => 90,
  8. 'height' => 43,
  9. 'quality' => 90,
  10. 'math' => FALSE, // ��Ϊtrue�����ÿ�ѧ����
  11. ],
  12. 'flat' => [
  13. 'length' => 6,
  14. 'width' => 160,
  15. 'height' => 46,
  16. 'quality' => 90,
  17. 'lines' => 6,
  18. 'bgImage' => FALSE,
  19. 'bgColor' => '#ecf2f4',
  20. 'fontColors' => ['#2c3e50', '#c0392b', '#16a085', '#c0392b', '#8e44ad', '#303f9f', '#f57c00', '#795548'],
  21. 'contrast' => -5,
  22. ],
  23. 'mini' => [
  24. 'length' => 3,
  25. 'width' => 60,
  26. 'height' => 32,
  27. ],
  28. 'inverse' => [
  29. 'length' => 5,
  30. 'width' => 120,
  31. 'height' => 36,
  32. 'quality' => 90,
  33. 'sensitive' => TRUE,
  34. 'angle' => 12,
  35. 'sharpen' => 10,
  36. 'blur' => 2,
  37. 'invert' => TRUE,
  38. 'contrast' => -5,
  39. ]
  40. ];