@@ -13,11 +13,14 @@ |
||
13 | 13 | |
14 | 14 | <?php if (App::$Captcha->isFull()): ?> |
15 | 15 | <div class="col-md-9 offset-md-3"><?= $html ?></div> |
16 | -<?php else: ?> |
|
16 | +<?php else { |
|
17 | + : ?> |
|
17 | 18 | <div class="row"> |
18 | 19 | <div class="col-md-9 offset-md-3"> |
19 | 20 | <img src="<?= $html ?>" alt="captcha" onClick="this.src='<?=$html?>&rnd='+Math.random()" /> |
20 | 21 | </div> |
21 | 22 | </div> |
22 | 23 | <?= $form->fieldset()->text($name, null, __('Enter data from security image to prove that you are human. If you can\'t read symbols - click on image to reload')) ?> |
23 | -<?php endif; ?> |
|
24 | 24 | \ No newline at end of file |
25 | +<?php endif; |
|
26 | +} |
|
27 | +?> |
|
25 | 28 | \ No newline at end of file |
@@ -20,7 +20,7 @@ |
||
20 | 20 | // set header. Class response->header->set is not working here (content output directly before) |
21 | 21 | header('Content-type: image/jpeg'); |
22 | 22 | $builder = new CaptchaBuilder(); |
23 | - $builder->build(mt_rand(200, 250), mt_rand(70,80)); // build and set random width/height |
|
23 | + $builder->build(mt_rand(200, 250), mt_rand(70, 80)); // build and set random width/height |
|
24 | 24 | // set captcha value to session |
25 | 25 | App::$Session->set('captcha', $builder->getPhrase()); |
26 | 26 |