captcha.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <?php
  2. return [
  3. 'characters' => [
  4. '2',
  5. '3',
  6. '4',
  7. '6',
  8. '7',
  9. '8',
  10. '9',
  11. 'a',
  12. 'b',
  13. 'c',
  14. 'd',
  15. 'e',
  16. 'f',
  17. 'g',
  18. 'h',
  19. 'j',
  20. 'm',
  21. 'n',
  22. 'p',
  23. 'q',
  24. 'r',
  25. 't',
  26. 'u',
  27. 'x',
  28. 'y',
  29. 'z',
  30. 'A',
  31. 'B',
  32. 'C',
  33. 'D',
  34. 'E',
  35. 'F',
  36. 'G',
  37. 'H',
  38. 'J',
  39. 'M',
  40. 'N',
  41. 'P',
  42. 'Q',
  43. 'R',
  44. 'T',
  45. 'U',
  46. 'X',
  47. 'Y',
  48. 'Z',
  49. ],
  50. 'default' => [
  51. 'length' => 4,
  52. 'width' => 120,
  53. 'height' => 36,
  54. 'quality' => 90,
  55. 'math' => false,
  56. 'expire' => 60,
  57. ],
  58. 'math' => [
  59. 'length' => 9,
  60. 'width' => 120,
  61. 'height' => 36,
  62. 'quality' => 90,
  63. 'math' => true,
  64. ],
  65. 'flat' => [
  66. 'length' => 6,
  67. 'width' => 160,
  68. 'height' => 46,
  69. 'quality' => 90,
  70. 'lines' => 6,
  71. 'bgImage' => false,
  72. 'bgColor' => '#ecf2f4',
  73. 'fontColors' => [
  74. '#2c3e50',
  75. '#c0392b',
  76. '#16a085',
  77. '#c0392b',
  78. '#8e44ad',
  79. '#303f9f',
  80. '#f57c00',
  81. '#795548',
  82. ],
  83. 'contrast' => -5,
  84. ],
  85. 'mini' => [
  86. 'length' => 3,
  87. 'width' => 60,
  88. 'height' => 32,
  89. ],
  90. 'inverse' => [
  91. 'length' => 5,
  92. 'width' => 120,
  93. 'height' => 36,
  94. 'quality' => 90,
  95. 'sensitive' => true,
  96. 'angle' => 12,
  97. 'sharpen' => 10,
  98. 'blur' => 2,
  99. 'invert' => true,
  100. 'contrast' => -5,
  101. ],
  102. ];