Unified Captcha

This commit is contained in:
2023-08-28 14:23:41 +03:00
parent 294575021a
commit 045803087d
35 changed files with 374 additions and 484 deletions
+8 -5
View File
@@ -1197,14 +1197,17 @@ class FightRequest
HTML;
if ($r === self::BATTLE_RAZDEL_CHAOTIC) {
if (!$this->u->info['no_zv_key']): ?>
if (!$this->u->info['no_zv_key']):
$security = new Captcha\Captcha();
?>
<div style="float:left;">
<form method="post" style="margin:0px;padding:0px;"
action="/main.php?zayvka=1&r=<?= $r ?>&rnd=<?= $code ?>"><br>
<img src="/show_reg_img/security2.php?id='<?= time() ?>" width="70" height="20">
<form method="post" style="margin:0px;padding:0px;" action="/main.php?zayvka=1&r=<?= $r ?>&rnd=<?= $code ?>"><br>
<?php $security->width(70)->height(20)->newImage();
$_SESSION['code'] = $security->getSum(); ?>
Код подтверждения: <input style="width:40px;" type="text" name="code21">
<input class="btn" type="submit" value="Принять вызов"><br><?= $zvb ?>
<img src="/show_reg_img/security2.php?id=<?= time() ?>" width="70" height="20">
<?php $security->width(70)->height(20)->newImage();
$_SESSION['code'] = $security->getSum(); ?>
Код подтверждения: <input style="width:40px;" type="text" name="code22">
<input class="btn" style="margin-top:1px;" type="submit" value="Принять вызов">
</form>