2017-02-11 21:13:08 +01:00
|
|
|
<?php
|
2022-01-03 13:35:16 +01:00
|
|
|
$GLOBALS['skipdb'] = true;
|
2017-02-11 21:13:08 +01:00
|
|
|
require 'config.php';
|
|
|
|
$initial = !$_GET['show'];
|
2018-07-09 13:56:27 +02:00
|
|
|
if (in_array($_GET['show'], array('ru', 'en', 'num'))) {
|
|
|
|
setcookie('captchalang', $_GET['show'], time() + 31556926, '/'/*, KU_DOMAIN*/);
|
|
|
|
}
|
2018-06-20 14:58:39 +02:00
|
|
|
$shorten_life = number_format(KU_CAPTCHALIFE - 0.5, 1, '.', '');
|
2017-02-11 21:13:08 +01:00
|
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>Instant 0chan® NoJS Captcha™ for iframe (patent pending)</title>
|
|
|
|
<link rel="stylesheet" href="/css/captcha.css">
|
|
|
|
<style>
|
|
|
|
.rotting-indicator {
|
2017-02-18 12:22:53 +01:00
|
|
|
-webkit-animation-duration: <?php echo $shorten_life?>s;
|
|
|
|
-o-animation-duration: <?php echo $shorten_life?>s;
|
|
|
|
animation-duration: <?php echo $shorten_life?>s;
|
2017-02-11 21:13:08 +01:00
|
|
|
}
|
|
|
|
img, .rotten-msg {
|
2017-02-18 12:22:53 +01:00
|
|
|
-webkit-animation-delay: <?php echo $shorten_life?>s;
|
|
|
|
-o-animation-delay: <?php echo $shorten_life?>s;
|
|
|
|
animation-delay: <?php echo $shorten_life?>s;
|
2017-02-11 21:13:08 +01:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<form action="">
|
2018-07-09 13:56:27 +02:00
|
|
|
<button type="submit" name="show" value="1">
|
|
|
|
<?php
|
|
|
|
if ($initial)
|
|
|
|
echo
|
|
|
|
'<div class="msg">'.(KU_LOCALE=='ru' ? 'Показать капчу' : 'Show captcha').'</div>';
|
|
|
|
else
|
|
|
|
echo
|
|
|
|
'<img alt="Captcha image" src="'.KU_WEBFOLDER.'captcha.php?'.(float)rand()/(float)getrandmax().'&color=77,77,77">
|
|
|
|
<div class="rotting-indicator"></div>
|
|
|
|
<div class="rotten-msg msg">'.(KU_LOCALE=='ru' ? 'Капча-протухла' : 'Captcha has expired').'</div> ';
|
|
|
|
?>
|
2017-02-11 21:13:08 +01:00
|
|
|
</button>
|
2018-07-09 13:56:27 +02:00
|
|
|
<div class="langs">
|
|
|
|
<button type="submit" name="show" value="ru">CYR</button><br>
|
|
|
|
<button type="submit" name="show" value="en">LAT</button><br>
|
|
|
|
<button type="submit" name="show" value="num">123</button>
|
|
|
|
</div>
|
2017-02-11 21:13:08 +01:00
|
|
|
</form>
|
|
|
|
</body>
|
|
|
|
</html>
|