game/bonuss.php

46 lines
1.7 KiB
PHP
Raw Normal View History

<?php
2022-06-06 21:30:34 +00:00
const GAME = true;
require_once('_incl_data/__config.php');
require_once('_incl_data/class/__db_connect.php');
$u = User::start();
$d = new Dungeon;
$d->start();
if ($_POST['code'] == $_SESSION['code'] && $_POST['code'] != '') {
echo "<body onload=\"myWindow1();\">";
}
2022-06-06 21:30:34 +00:00
?>
<link href="//img.new-combats.tech/css/main.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="css/clu0b.css"/>
<link rel="stylesheet" type="text/css" href="css/windows.css"/>
<link rel="stylesheet" type="text/css" href="css/hack.css"/>
2022-06-06 21:30:34 +00:00
<br>
<img style="width:164px;margin-top:5px;"
src="show_reg_img/security2.php?register_id=<?= str_replace(' ', '0', microtime()) ?>" width="107" height="26">
2022-06-06 21:30:34 +00:00
<br>
<form action="bonuss.php" method="post">
2023-01-10 16:29:32 +00:00
<input style="width:164px;margin-top:5px;" type="text" size="30" name="code" value="Капча!">
<br>
2023-01-10 16:29:32 +00:00
<input type="submit" style="width:164px;margin-top:5px;" class="btn btn-success" value="Получить">
2022-06-06 21:30:34 +00:00
</form>
2023-01-10 16:29:32 +00:00
<button style="width:164px;margin-top:10px;" onclick="myWindow2();" class="btn btn-danger">Закрыть</button>
2022-06-06 21:30:34 +00:00
<script>
function myWindow1() {
window.parent.open('main.php?takebns=<?echo $u->info['nextAct'];?>&getb1w=3&inv=1', '_self');
}
function myWindow2() {
var raz = window.parent.document.querySelector('iframe[src^="/bonuss.php"]'); // удалить созданный в родителе iframe
raz.parentNode.removeChild(raz);
}
2022-06-06 21:30:34 +00:00
</script>
<style>
html {
overflow: hidden;
2023-01-10 16:29:32 +00:00
/ / убрать полосы прокрутки внутри iframe, т . к . атрибут scrolling = "no" для iframe в HTML5 не поддерживается
}
2022-06-06 21:30:34 +00:00
</style>