refactor
This commit is contained in:
@@ -271,6 +271,8 @@ if (in_array(
|
||||
$q->testquest();
|
||||
}
|
||||
|
||||
echo "<!DOCTYPE html>";
|
||||
|
||||
$iloc = '';
|
||||
$iloce = '';
|
||||
$img = Config::img();
|
||||
@@ -403,8 +405,7 @@ $spl = Db::getValue('select exp from levels where nextlevel = ? order by exp lim
|
||||
<?php
|
||||
|
||||
if (!isset($_GET['mAjax']) && !isset($_GET['ajaxHostel'])) {
|
||||
echo '<!DOCTYPE html>
|
||||
<div style="padding-top:0; margin-top:17px; /*height:100%;*/ background-color:#e2e0e1;">';
|
||||
echo '<div style="padding-top:0; margin-top:17px; background-color:#e2e0e1;">';
|
||||
}
|
||||
if (isset($btl_last['id']) && $u->info['battle'] == 0) {
|
||||
require_once('modules_data/btl_.php');
|
||||
@@ -449,9 +450,7 @@ if (isset($btl_last['id']) && $u->info['battle'] == 0) {
|
||||
if ($u->info['allLock'] < time()) {
|
||||
$u->deleteItem(intval($_GET['delete']), $u->info['id']);
|
||||
} else {
|
||||
echo '<script>setTimeout(function(){alert("Вам запрещено удалять предметы до ' . date(
|
||||
'd.m.y H:i', $u->info['allLock']
|
||||
) . '")},250);</script>';
|
||||
echo '<script>setTimeout(function(){alert("Вам запрещено удалять предметы до ' . date('d.m.y H:i', $u->info['allLock']) . '")},250);</script>';
|
||||
}
|
||||
} elseif (isset($_GET['unstack']) && isset($_GET['inv']) && $u->newAct($_GET['sd4'])) {
|
||||
$u->unstack(intval($_GET['unstack']), intval($_GET['unstackCount']));
|
||||
@@ -508,7 +507,7 @@ if (isset($_GET['security']) && !isset($u->tfer['id']) && $trololo == 1) {
|
||||
//поединок
|
||||
if ((!isset($btl_last['id']) || $u->info['battle'] > 0) && !isset($u->info['battle_lsto'])) {
|
||||
require_once('modules_data/btl_.php');
|
||||
echo '<script type="text/javascript" src="js/onlineList.js"></script>';
|
||||
echo '<script src="js/onlineList.js"></script>';
|
||||
}
|
||||
|
||||
} else {
|
||||
@@ -533,9 +532,7 @@ if (isset($_GET['security']) && !isset($u->tfer['id']) && $trololo == 1) {
|
||||
) && $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(
|
||||
'd.m.y H:i', $u->info['allLock']
|
||||
) . '")},250);</script>';
|
||||
echo '<script>setTimeout(function(){alert("Вам запрещены передачи до ' . date('d.m.y H:i', $u->info['allLock']) . '")},250);</script>';
|
||||
} else {
|
||||
require_once('modules_data/_transfers.php');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user