]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/templates/de/code/captch_graphic_code.ctp
ToDo manager added (I need it by myself!), all links and form action now dynamic
[shipsimu.git] / application / ship-simu / templates / de / code / captch_graphic_code.ctp
index bb422daa939990e996c54e0c528027d9a2ebeeea..400a861e135c95fba5e1e62555447a634b819ff0 100644 (file)
@@ -1,16 +1,16 @@
 <?php
 // Get a helper instance without a form tag
-$helper = WebFormHelper::createWebFormHelper($this, "captcha_code", false, false);
-$helper->addFormGroup('captcha_code', "Unser Spiel ist durch ein grafisches CAPTCHA gesichert. Du musst den angezeigten Code wiederholen, damit du unser Spiel nutzen kannst.");
-$helper->addFieldText('captcha_code', "Bitte wiederhole den Code:");
-$helper->addInputTextField('captcha_code');
-$helper->flushContent();
+$captchaHelper = WebFormHelper::createWebFormHelper($this, 'captcha_code', false, false);
+$captchaHelper->addFieldText('captcha_code', "Bitte wiederhole den Code:");
+$captchaHelper->addInputTextField('c_code');
+$captchaHelper->addInputHiddenField('hash', $this->readVariable('captcha_hash'));
+$captchaHelper->flushContent();
 
 // [EOF]
 ?>
-<div id="captcha_image">
-       <img src="$config[base_url]/index.php?app=ship-simu&amp;page=captcha_image&amp;encrypt={?encrypted_code?}&amp;response=image" alt="CAPTCHA-Bild" title="CAPTCHA-Bild" id="captcha_img" />
+<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" />
 </div>
-<div id="captcha_code">
+<div class="captcha_code">
        {?captcha_code?}
 </div>