4require_once 
'Services/Captcha/classes/class.ilSecurImageUtil.php';
 
   44                parent::__construct($a_title, $a_postvar);
 
   48                        $lng->loadLanguageModule(
'cptch');
 
   58                $this->value = $a_value;
 
  131                                $this->
setAlert($lng->txt(
'msg_input_is_required'));
 
  137                include_once(
'./Services/Captcha/classes/class.ilSecurImage.php');
 
  139                if(!
$si->check(
$_POST[$this->getPostVar()]))
 
  143                                $this->
setAlert($lng->txt(
'cptch_wrong_input'));
 
  155        public function render()
 
  162                $tpl = 
new ilTemplate(
'tpl.prop_captchainput.html', 
true, 
true, 
'Services/Captcha');
 
  166                        $tpl->setCurrentBlock(
'prop_text_propval');
 
  168                        $tpl->parseCurrentBlock();
 
  177                $tpl->setVariable(
'IMAGE_SCRIPT', $script);
 
  181                $tpl->setVariable(
'TXT_CAPTCHA_ALT', 
$lng->txt(
'captcha_alt_txt'));
 
  182                $tpl->setVariable(
'TXT_RELOAD', 
$lng->txt(
'captcha_code_reload'));
 
  183                $tpl->setVariable(
'TXT_CAPTCHA_AUDIO_TITLE', 
$lng->txt(
'captcha_audio_title'));
 
  184                $tpl->setVariable(
'TXT_CONSTR_PROP', 
$lng->txt(
'cont_constrain_proportions'));
 
  185                $tpl->setVariable(
'TXT_CAPTCHA_INFO', 
$lng->txt(
'captcha_code_info'));
 
  195                $html = $this->render();
 
An exception for terminatinating execution or to throw for unit testing.
setVariable($variable, $value='')
Sets a variable value.
SecurImage Wrapper (very simply wrapper, does not abstract other captchas)
special template class to simplify handling of ITX/PEAR
parseCurrentBlock($part="DEFAULT")
Überladene Funktion, die auf den aktuelle Block vorher noch ein replace ausführt @access public.
setCurrentBlock($part="DEFAULT")
Überladene Funktion, die sich hier lokal noch den aktuellen Block merkt.
static appendUrlParameterString($a_url, $a_par, $xml_style=false)
append URL parameter string ("par1=value1&par2=value2...") to given URL string
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public