|
@@ -98,10 +98,9 @@ $query = $model->getCommentsAll()->orderBy(['created_at'=>SORT_ASC])->andWhere([
|
|
|
<?php
|
|
|
$a = rand(1,9);
|
|
|
$b = rand(1,9);
|
|
|
- $answer = $a + $b;
|
|
|
- Yii::$app->session->setFlash('capcha_a',$a);
|
|
|
- Yii::$app->session->setFlash('capcha_b',$b);
|
|
|
+
|
|
|
?>
|
|
|
+ <input type="hidden" name="capcha_salt" value="<?=base64_encode(($a+$b)/3.14);?>">
|
|
|
<label for="capcha">Решите пример: <i style="opacity: 0;">1</i><?=$a?><i style="opacity: 0;">0</i>+<i style="opacity: 0;">2</i><?=$b?><i style="opacity: 0;">0</i>=</label>
|
|
|
<input type="text" name="capcha" style="outline: none;border: 1px solid #212529;width: 25px;" aria-label="capcha">
|
|
|
</div>
|