]> git.mxchange.org Git - shipsimu.git/blobdiff - application/todo/templates/de/code/captch_graphic_code.ctp
A lot rewrites and fixes for weak redirect methods
[shipsimu.git] / application / todo / templates / de / code / captch_graphic_code.ctp
index 400a861e135c95fba5e1e62555447a634b819ff0..101be7f370cd7bc9082118082ae73572ed0fec91 100644 (file)
@@ -1,15 +1,21 @@
 <?php
 // Get a helper instance without a form tag
-$captchaHelper = WebFormHelper::createWebFormHelper($this, 'captcha_code', false, false);
+$captchaHelper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'captcha_code', false, false));
+
+// Add input field with text for CAPTCHA code
 $captchaHelper->addFieldText('captcha_code', "Bitte wiederhole den Code:");
 $captchaHelper->addInputTextField('c_code');
+
+// Add hidden field with validation hash
 $captchaHelper->addInputHiddenField('hash', $this->readVariable('captcha_hash'));
+
+// Flush content
 $captchaHelper->flushContent();
 
-// [EOF]
+// [EOC]
 ?>
 <div class="captcha_image">
-       <img src="$config[base_url]/index.php?app={?app_short_name?}&amp;page=code_captcha&amp;encrypt={?encrypted_code?}&amp;response=image" alt="CAPTCHA-Bild" title="CAPTCHA-Bild" class="captcha_img" />
+       <img src="$config[base_url]/index.php?app={?app_short_name?}&amp;page=code_captcha&amp;encrypt={?encrypted_code?}&amp;request=image" alt="CAPTCHA-Bild" title="CAPTCHA-Bild" class="captcha_img" />
 </div>
 <div class="captcha_code">
        {?captcha_code?}