captcha.php 879 B

12345678910111213141516171819202122232425262728293031
  1. <?php if (!class_exists('CaptchaConfiguration')) { return; }
  2. // BotDetect PHP Captcha configuration options
  3. /*
  4. * https://captcha.com/doc/php/captcha-options.html#captcha_php_persistence_function_names
  5. */
  6. $codeLength = CaptchaRandomization::GetRandomCodeLength(4, 4);
  7. return [
  8. // Captcha configuration
  9. 'PostWriteCaptcha' => [
  10. 'UserInputID' => 'captcha',
  11. 'ImageWidth' => 250,
  12. 'ImageHeight' => 60,
  13. 'CodeLength' => $codeLength,
  14. 'HelpLinkText' => '자동등록방지문자',
  15. 'HelpLinkMode' => HelpLinkMode::Text
  16. ],
  17. 'PostEditCaptcha' => [
  18. 'UserInputID' => 'captcha',
  19. 'ImageWidth' => 250,
  20. 'ImageHeight' => 60,
  21. 'CodeLength' => $codeLength,
  22. 'HelpLinkText' => '자동등록방지문자',
  23. 'HelpLinkMode' => HelpLinkMode::Text
  24. ]
  25. // 로그인
  26. // 회원가입
  27. ];