예제 #1
0
<?php

if (!class_exists('CaptchaConfiguration')) {
    return;
}
// BotDetect PHP Captcha configuration options
// more details here: https://captcha.com/doc/php/captcha-options.html
// ----------------------------------------------------------------------------
return ['ExampleCaptcha' => ['UserInputID' => 'CaptchaCode', 'CodeLength' => 4, 'ImageWidth' => 250, 'ImageHeight' => 50], 'ContactCaptcha' => ['UserInputID' => 'CaptchaCode', 'CodeLength' => CaptchaRandomization::GetRandomCodeLength(4, 6), 'ImageStyle' => ImageStyle::AncientMosaic], 'LoginCaptcha' => ['UserInputID' => 'CaptchaCode', 'CodeLength' => 3, 'ImageStyle' => [ImageStyle::Radar, ImageStyle::Collage, ImageStyle::Fingerprints]], 'RegisterCaptcha' => ['UserInputID' => 'CaptchaCode', 'CodeLength' => CaptchaRandomization::GetRandomCodeLength(3, 4), 'CodeStyle' => CodeStyle::Alpha, 'CustomLightColor' => '#9966FF']];
예제 #2
0
<?php

if (!class_exists('CaptchaConfiguration')) {
    return;
}
// BotDetect PHP Captcha configuration options
// more details here: http://captcha.com/doc/php/howto/captcha-configuration.html
// ---------------------------------------------------------------------------
$LBD_CaptchaConfig = CaptchaConfiguration::GetSettings();
$LBD_CaptchaConfig->CodeLength = CaptchaRandomization::GetRandomCodeLength(3, 4);
$imageStyles = array(ImageStyle::Chipped, ImageStyle::Negative);
$LBD_CaptchaConfig->ImageWidth = 150;
$LBD_CaptchaConfig->ImageHeight = 50;
$LBD_CaptchaConfig->SoundEnabled = false;