public function GetSound($_ibrwm0e4fojihrlm) { if (!$this->_1ricwqvbirxxg4n8e4tht) { return null; } $_Ioh9dimnw0u3vhdhovfzrgle6j = $this->GetCode($_ibrwm0e4fojihrlm, 1); if (is_null($_Ioh9dimnw0u3vhdhovfzrgle6j)) { return null; } if (!$_Ioh9dimnw0u3vhdhovfzrgle6j->IsUsedForImageGeneration) { return null; } if ($this->_o8h47ugef62twufjfu8ie == 0) { if ($_Ioh9dimnw0u3vhdhovfzrgle6j->SoundGenerationAttemptCount > 1) { return null; } } else { if ($this->_o8h47ugef62twufjfu8ie == 1) { if ($_Ioh9dimnw0u3vhdhovfzrgle6j->SoundGenerationAttemptCount > LBD_CaptchaBase::AllowedSoundGenerationsPerCode) { return null; } } } if (in_array($this->_0ri3zmal3gx1z6csa7254iaw0i, CaptchaConfiguration::GetDisabledSoundStyles(), false)) { $this->_0ri3zmal3gx1z6csa7254iaw0i = CaptchaRandomization::GetRandomSoundStyle(); $this->_o8j4lavbrp5rr7cbw20jl = false; } $_Oetvwebmqk2hjbi0xslvs = LBD_SoundGeneratorFacade::GenerateSound($_Ioh9dimnw0u3vhdhovfzrgle6j->CaptchaCode, $this->_0ri3zmal3gx1z6csa7254iaw0i, $this->_o1itg7lhljfawk8sh8azx2hgqw, $this->_O8zbkqkk6vrjnng1); return $_Oetvwebmqk2hjbi0xslvs; }
<?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']];
public function GetSound($_ogrx7cae30fyox03r0kdm) { if (!$this->_ilyoyt9hdddi6l4a) { return null; } $_19kddlqvro1wz3n4 = $this->GetCode($_ogrx7cae30fyox03r0kdm, 1); if (is_null($_19kddlqvro1wz3n4)) { return null; } if (!$_19kddlqvro1wz3n4->IsUsedForImageGeneration) { return null; } if ($this->_0o6l5rys1b0nx1zl == 0) { if ($_19kddlqvro1wz3n4->SoundGenerationAttemptCount > 1) { return null; } } else { if ($this->_0o6l5rys1b0nx1zl == 1) { if ($_19kddlqvro1wz3n4->SoundGenerationAttemptCount > LBD_CaptchaBase::AllowedSoundGenerationsPerCode) { return null; } } } if (in_array($this->_l2i0n22zbtth5bfh2v15e, CaptchaConfiguration::GetDisabledSoundStyles(), false)) { $this->_l2i0n22zbtth5bfh2v15e = CaptchaRandomization::GetRandomSoundStyle(); $this->_owi93zmiusygphf0slxazv6rru = false; } $_0atj13zkamonjvsp = LBD_SoundGeneratorFacade::GenerateSound($_19kddlqvro1wz3n4->CaptchaCode, $this->_l2i0n22zbtth5bfh2v15e, $this->_1aevrtsxlw3ry13o, $this->_or90xbdjz7qudp5refp68yiu46); return $_0atj13zkamonjvsp; }
<?php // override lib settings // more details here: http://captcha.com/doc/php/howto/captcha-configuration.html $LBD_CaptchaConfig = CaptchaConfiguration::GetSettings(); $imageStyles = array(ImageStyle::Chipped, ImageStyle::Negative); $LBD_CaptchaConfig->ImageStyle = CaptchaRandomization::GetRandomImageStyle($imageStyles);
<?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;
public function GetSound($_Ora3g29re6eox0vzdrz06o77ni) { $_04ua3irxyvcqr64r5zwmi = $this->GetCode($_Ora3g29re6eox0vzdrz06o77ni, 1); if (in_array($this->_O7vnm1oren3bi5ev3syj5sop3u, CaptchaConfiguration::GetDisabledSoundStyles(), false)) { $this->_O7vnm1oren3bi5ev3syj5sop3u = CaptchaRandomization::GetRandomSoundStyle(); $this->_1nux62axphc82c5j = false; } $_1w6hiyu1cnoada5srego1 = LBD_SoundGeneratorFacade::GenerateSound($_04ua3irxyvcqr64r5zwmi, $this->_O7vnm1oren3bi5ev3syj5sop3u, $this->_O90nqe6ki1xb6ua5xvhkjcp0b5, $this->_ipk57du4zpnu731jkf3fy); return $_1w6hiyu1cnoada5srego1; }
public function GetSound($_i3igrk9jyqflucatct5kb) { if (!$this->_o386l6ujquh5n5u4hug2swxz8k) { return null; } $_I7lnjxnsa5yosyp2x2qbac04s2 = $this->GetCode($_i3igrk9jyqflucatct5kb, 1); if (is_null($_I7lnjxnsa5yosyp2x2qbac04s2)) { return null; } if (!$_I7lnjxnsa5yosyp2x2qbac04s2->IsUsedForImageGeneration) { return null; } if ($this->_ob35vn62go8fp9x9geezs == 0) { if ($_I7lnjxnsa5yosyp2x2qbac04s2->SoundGenerationAttemptCount > 1) { return null; } } else { if ($this->_ob35vn62go8fp9x9geezs == 1) { if ($_I7lnjxnsa5yosyp2x2qbac04s2->SoundGenerationAttemptCount > LBD_CaptchaBase::AllowedSoundGenerationsPerCode) { return null; } } } if (in_array($this->_ofklnbtok9jd9uxxfthl1p650g, CaptchaConfiguration::GetDisabledSoundStyles(), false)) { $this->_ofklnbtok9jd9uxxfthl1p650g = CaptchaRandomization::GetRandomSoundStyle(); $this->_i94z1l1u9wdoe4o7aulqk = false; } $_I56dc8unh8fsl963gn2qczfojp = LBD_SoundGeneratorFacade::GenerateSound($_I7lnjxnsa5yosyp2x2qbac04s2->CaptchaCode, $this->_ofklnbtok9jd9uxxfthl1p650g, $this->_Ikb3irokorheckn17exkv4nrju, $this->_Ipw9z9p1hl9nj7tm7fot5eglay); return $_I56dc8unh8fsl963gn2qczfojp; }
$LBD_CaptchaConfig->Locale = 'en-US'; $LBD_CaptchaConfig->CustomCharset = ''; $LBD_CaptchaConfig->BannedSequences = ''; // Captcha image configuration // --------------------------------------------------------------------------- $LBD_CaptchaConfig->ImageStyle = CaptchaRandomization::GetRandomImageStyle(); $LBD_CaptchaConfig->ImageWidth = 250; $LBD_CaptchaConfig->ImageHeight = 50; $LBD_CaptchaConfig->ImageFormat = ImageFormat::Jpeg; $LBD_CaptchaConfig->CustomDarkColor = ''; $LBD_CaptchaConfig->CustomLightColor = ''; $LBD_CaptchaConfig->ImageTooltip = 'CAPTCHA'; // Captcha sound configuration // --------------------------------------------------------------------------- $LBD_CaptchaConfig->SoundEnabled = true; $LBD_CaptchaConfig->SoundStyle = CaptchaRandomization::GetRandomSoundStyle(); $LBD_CaptchaConfig->SoundFormat = SoundFormat::WavPcm16bit8kHzMono; $LBD_CaptchaConfig->SoundTooltip = 'Speak the CAPTCHA code'; $LBD_CaptchaConfig->WarnAboutMissingSoundPackages = true; $LBD_CaptchaConfig->SoundStartDelay = 0; $LBD_CaptchaConfig->SoundRegenerationMode = SoundRegenerationMode::Limited; // Captcha reload configuration // --------------------------------------------------------------------------- $LBD_CaptchaConfig->ReloadEnabled = true; $LBD_CaptchaConfig->ReloadTooltip = 'Change the CAPTCHA code'; $LBD_CaptchaConfig->AutoReloadExpiredCaptchas = true; $LBD_CaptchaConfig->AutoReloadTimeout = 7200; // Captcha help link configuration // --------------------------------------------------------------------------- $LBD_CaptchaConfig->HelpLinkEnabled = true; $LBD_CaptchaConfig->HelpLinkMode = HelpLinkMode::Text;