private function showSecurimage() { Log::Debug('CaptchaControl using Securimage'); $url = CaptchaService::Create()->GetImageUrl(); $label = Resources::GetInstance()->GetString('SecurityCode'); $formName = FormKeys::CAPTCHA; echo "<img src='{$url}' alt='captcha' id='captchaImg'/>"; echo "<br/><label class=\"reg\">{$label}<br/><input type=\"text\" class=\"input\" name=\"{$formName}\" size=\"20\" id=\"captchaValue\"/>"; }
private function SetCaptchaService($captchaService) { if (is_null($captchaService)) { $this->captchaService = CaptchaService::Create(); } else { $this->captchaService = $captchaService; } }