captcha.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. return [
  3. 'characters' => ['2', '3', '4', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'j', 'm', 'n', 'p', 'q', 'r', 't', 'u', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'M', 'N', 'P', 'Q', 'R', 'T', 'U', 'X', 'Y', 'Z'],
  4. 'default' => [
  5. 'length' => 4,
  6. 'width' => 120,
  7. 'height' => 36,
  8. 'quality' => 90,
  9. 'math' => false,
  10. 'expire' => 60,
  11. ],
  12. 'math' => [
  13. 'length' => 9,
  14. 'width' => 120,
  15. 'height' => 36,
  16. 'quality' => 90,
  17. 'math' => true,
  18. ],
  19. 'flat' => [
  20. 'length' => 6,
  21. 'width' => 160,
  22. 'height' => 46,
  23. 'quality' => 90,
  24. 'lines' => 6,
  25. 'bgImage' => false,
  26. 'bgColor' => '#ecf2f4',
  27. 'fontColors' => ['#2c3e50', '#c0392b', '#16a085', '#c0392b', '#8e44ad', '#303f9f', '#f57c00', '#795548'],
  28. 'contrast' => -5,
  29. ],
  30. 'mini' => [
  31. 'length' => 3,
  32. 'width' => 60,
  33. 'height' => 32,
  34. ],
  35. 'inverse' => [
  36. 'length' => 5,
  37. 'width' => 120,
  38. 'height' => 36,
  39. 'quality' => 90,
  40. 'sensitive' => true,
  41. 'angle' => 12,
  42. 'sharpen' => 10,
  43. 'blur' => 2,
  44. 'invert' => true,
  45. 'contrast' => -5,
  46. ]
  47. ];