bugfix
This commit is contained in:
parent
a0efddefc5
commit
cf51f4d996
31
main.php
31
main.php
@ -1,3 +1,9 @@
|
||||
<?php
|
||||
if (!defined('GAME_VERSION')) {
|
||||
require_once '_incl_data/autoload.php';
|
||||
}
|
||||
?>
|
||||
|
||||
<style>
|
||||
/* Paste this css to your style sheet file or under head tag */
|
||||
/* This only works with JavaScript,
|
||||
@ -15,8 +21,8 @@
|
||||
|
||||
.se-pre-con {
|
||||
position: fixed;
|
||||
left: 0px;
|
||||
top: 0px;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 9999;
|
||||
@ -29,6 +35,8 @@
|
||||
|
||||
<?php
|
||||
|
||||
use Core\Config;
|
||||
use Core\Database;
|
||||
use Insallah\Db;
|
||||
|
||||
function var_info($vars, $d = false)
|
||||
@ -41,12 +49,13 @@ function var_info($vars, $d = false)
|
||||
}
|
||||
}
|
||||
|
||||
const GAME = true;
|
||||
require_once('_incl_data/__config.php');
|
||||
//const GAME = true;
|
||||
//require_once('_incl_data/__config.php');
|
||||
//require_once('_incl_data/class/__db_connect.php');
|
||||
$pdo = \Core\Database::init();
|
||||
Config::init();
|
||||
Database::init();
|
||||
define('IP', UserIp::get());
|
||||
date_default_timezone_set('Europe/Moscow');
|
||||
//date_default_timezone_set('Europe/Moscow');
|
||||
|
||||
$magic = new Magic();
|
||||
$u = User::start();
|
||||
@ -55,11 +64,7 @@ $q = new Quests;
|
||||
|
||||
/** Âîññòàíàâëèâàåì âñåì áîòàì, êîòîðûå íå â áîþ çäîðîâüå äî ìàêñèìóìà. */
|
||||
Db::exec(
|
||||
'update stats set
|
||||
hpNow = hpAll,
|
||||
mpNow = mpAll
|
||||
where
|
||||
id in (select id from users where bot = 2 and battle = 0)'
|
||||
'update stats set hpNow = hpAll, mpNow = mpAll where id in (select id from users where bot = 2 and battle = 0)'
|
||||
);
|
||||
|
||||
if ($u->info['banned'] > 0) {
|
||||
@ -103,7 +108,7 @@ if ($u->info['online'] < time() - 60 || $u->info['afk'] != '') {
|
||||
}
|
||||
|
||||
if (!isset($u->info['id']) || ($u->info['joinIP'] == 1 && $u->info['ip'] != $_SERVER['HTTP_X_REAL_IP']) || $u->info['banned'] > 0) {
|
||||
die($c['exit']);
|
||||
die(Config::get('exit'));
|
||||
}
|
||||
|
||||
//Ïîêàçûâàåì ñèñòåìêó è çàíîñèì äàííûå
|
||||
@ -494,7 +499,7 @@ if (isset($_GET['security']) && !isset($u->tfer['id']) && $trololo == 1) {
|
||||
require_once('modules_data/_obraz.php');
|
||||
} elseif (isset($_GET['skills']) && !isset($u->tfer['id']) && $trololo == 1) {
|
||||
require_once('modules_data/_umenie.php');
|
||||
} elseif ((isset($_GET['transfer']) || isset($u->tfer['id'])) && $u->info['level'] >= $c['level_ransfer'] && $trololo == 1 && $u->info['inTurnir'] == 0 && $u->info['inTurnirnew'] == 0) {
|
||||
} elseif ((isset($_GET['transfer']) || isset($u->tfer['id'])) && $u->info['level'] >= Config::get('level_ransfer') && $trololo == 1 && $u->info['inTurnir'] == 0 && $u->info['inTurnirnew'] == 0) {
|
||||
if ($u->info['allLock'] > time()) {
|
||||
require_once('modules_data/_locations.php');
|
||||
echo '<script>setTimeout(function(){alert("Âàì çàïðåùåíû ïåðåäà÷è äî ' . date(
|
||||
|
Loading…
Reference in New Issue
Block a user