closes #17, великое переименование классов для автозагрузчика, актуализация кода
This commit is contained in:
+31
-31
@@ -1,46 +1,46 @@
|
||||
<?
|
||||
/*if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
}*/
|
||||
define('GAME',true);
|
||||
include('_incl_data/__config.php');
|
||||
include('_incl_data/class/__db_connect.php');
|
||||
include('_incl_data/class/__user.php');
|
||||
include('_incl_data/class/__dungeon.php');
|
||||
<?php
|
||||
|
||||
if ($_POST['code']==$_SESSION['code'] && $_POST['code']!='')
|
||||
{
|
||||
echo "<body onload=\"myWindow1();\">";
|
||||
}
|
||||
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();\">";
|
||||
}
|
||||
|
||||
?>
|
||||
<link href="https://img.new-combats.com/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" />
|
||||
<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"/>
|
||||
<br>
|
||||
<img style="width:164px;margin-top:5px;" src="show_reg_img/security2.php?register_id=<?=str_replace(' ','0',microtime())?>" width="107" height="26">
|
||||
<img style="width:164px;margin-top:5px;"
|
||||
src="show_reg_img/security2.php?register_id=<?= str_replace(' ', '0', microtime()) ?>" width="107" height="26">
|
||||
<br>
|
||||
<form action="bonuss.php" method="post">
|
||||
<input style="width:164px;margin-top:5px;" type="text" size="30" name="code" value="戕ֈ!">
|
||||
<br>
|
||||
<input type="submit" style="width:164px;margin-top:5px;" class="btn btn-success" value="Ïîëó÷èòü" >
|
||||
<input style="width:164px;margin-top:5px;" type="text" size="30" name="code" value="戕ֈ!">
|
||||
<br>
|
||||
<input type="submit" style="width:164px;margin-top:5px;" class="btn btn-success" value="Ïîëó÷èòü">
|
||||
</form>
|
||||
|
||||
<button style="width:164px;margin-top:10px;" onclick="myWindow2();" class="btn btn-danger">Çàêðûòü</button>
|
||||
<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^="https://new-combats.com/bonuss.php"]'); // óäàëèòü ñîçäàííûé â ðîäèòåëå iframe
|
||||
raz.parentNode.removeChild(raz);
|
||||
}
|
||||
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^="https://new-combats.com/bonuss.php"]'); // óäàëèòü ñîçäàííûé â ðîäèòåëå iframe
|
||||
raz.parentNode.removeChild(raz);
|
||||
}
|
||||
|
||||
</script>
|
||||
<style>
|
||||
html {
|
||||
overflow: hidden; // óáðàòü ïîëîñû ïðîêðóòêè âíóòðè iframe, ò.ê. àòðèáóò scrolling="no" äëÿ iframe â HTML5 íå ïîääåðæèâàåòñÿ
|
||||
}
|
||||
html {
|
||||
overflow: hidden;
|
||||
/ / óáðàòü ïîëîñû ïðîêðóòêè âíóòðè iframe, ò . ê . àòðèáóò scrolling = "no" äëÿ iframe â HTML5 íå ïîääåðæèâàåòñÿ
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user