7.4 to the go

This commit is contained in:
2022-12-19 20:26:14 +02:00
parent 6cd7b13db0
commit 924be6329b
237 changed files with 38764 additions and 89531 deletions
+143 -107
View File
@@ -24,47 +24,43 @@
}
</style>
<link href="/img.new-combats.com/css/main.css" rel="stylesheet" type="text/css">
<div class="se-pre-con" id="se-pre-con"></div>
<?php
use Insallah\Db;
function GetRealIp()
{
if (!empty($_SERVER['HTTP_CLIENT_IP']))
return $_SERVER['HTTP_CLIENT_IP'];
else if (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))
return $_SERVER['HTTP_X_FORWARDED_FOR'];
return $_SERVER['REMOTE_ADDR'];
}
function var_info($vars, $d = false)
{
echo "<pre style='border: 1px solid gray;border-radius: 5px;padding: 3px 6px;background: #cecece;color: black;font-family: Arial;font-size: 12px;'>\n";
var_dump($vars);
echo "</pre>\n";
if ($d) exit();
if ($d) {
exit();
}
}
define('IP', GetRealIp());
const GAME = true;
require_once('_incl_data/__config.php');
define('GAME', true);
require_once('_incl_data/class/__db_connect.php');
//require_once('_incl_data/class/__db_connect.php');
$pdo = \Core\Database::init();
define('IP', UserIp::get());
date_default_timezone_set('Europe/Moscow');
require_once('_incl_data/class/__magic.php');
require_once('_incl_data/class/__user.php');
require_once('_incl_data/class/__filter_class.php');
require_once('_incl_data/class/__quest.php');
$magic = new Magic();
$u = User::start();
$filter = new Filter();
$q = new Quests;
/** Âîññòàíàâëèâàåì âñåì áîòàì, êîòîðûå íå â áîþ çäîðîâüå äî ìàêñèìóìà. */
Db::exec('update stats set
Db::exec(
'update stats set
hpNow = hpAll,
mpNow = mpAll
where
id in (select id from users where bot = 2 and battle = 0)');
id in (select id from users where bot = 2 and battle = 0)'
);
if ($u->info['banned'] > 0) {
header('location: /index.php');
@@ -93,37 +89,35 @@ if ($u->room['file'] == "room_hostel" || $u->room['file'] == "post") {
#--------äëÿ îáùàãè, è ïîçæå äëÿ ïî÷òû
if ($u->info['online'] < time() - 60 || $u->info['afk'] != '') {
$filter->setOnline($u->info['8'], $u->info['id'], 0);
$filter->setOnline($u->info['8'], $u->info['id']);
$u->onlineBonus();
mysql_query("UPDATE `users` SET `online`='" . time() . "',`timeMain`='" . time() . "',`afk`='' WHERE `id`='" . $u->info['id'] . "' LIMIT 1");
mysql_query(
"UPDATE `users` SET `online`='" . time() . "',`timeMain`='" . time(
) . "',`afk`='' WHERE `id`='" . $u->info['id'] . "' LIMIT 1"
);
} elseif ($u->info['timeMain'] < time() - 60 || $u->info['afk'] != '') {
mysql_query("UPDATE `users` SET `online`='" . time() . "',`timeMain`='" . time() . "',`afk`='' WHERE `id`='" . $u->info['id'] . "' LIMIT 1");
mysql_query(
"UPDATE `users` SET `online`='" . time() . "',`timeMain`='" . time(
) . "',`afk`='' WHERE `id`='" . $u->info['id'] . "' LIMIT 1"
);
}
if (!isset($u->info['id']) || ($u->info['joinIP'] == 1 && $u->info['ip'] != $_SERVER['HTTP_X_REAL_IP']) || $u->info['banned'] > 0) {
die($c['exit']);
}
if ($u->info['battle_text'] != '') {
//Ïîêàçûâàåì ñèñòåìêó è çàíîñèì äàííûå
if ($u->info['last_b'] > 0) {
mysql_query('INSERT INTO `battle_last` (`battle_id`,`uid`,`time`,`act`,`level`,`align`,`clan`,`exp`) VALUES ("' . $u->info['last_b'] . '","' . $u->info['id'] . '","' . time() . '","' . $u->info['last_a'] . '","' . $u->info['level'] . '","' . $u->info['align'] . '","' . $u->info['clan'] . '","' . $u->info['exp'] . '")');
}
//Ïîêàçûâàåì ñèñòåìêó è çàíîñèì äàííûå
if ($u->info['battle_text'] != '' && $u->info['last_b'] > 0) {
mysql_query(
'INSERT INTO `battle_last` (`battle_id`,`uid`,`time`,`act`,`level`,`align`,`clan`,`exp`) VALUES ("' . $u->info['last_b'] . '","' . $u->info['id'] . '","' . time(
) . '","' . $u->info['last_a'] . '","' . $u->info['level'] . '","' . $u->info['align'] . '","' . $u->info['clan'] . '","' . $u->info['exp'] . '")'
);
}
if (!isset($_GET['mAjax']) and !isset($_GET['ajaxHostel']))
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "https://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
<meta http-equiv=Cache-Control Content=no-cache>
<meta http-equiv=PRAGMA content=NO-CACHE>
<meta http-equiv=Expires Content=0>
<meta name="msapplication-config" content="browserconfig.xml" />
<link href="https://img.new-combats.com/css/main.css" rel="stylesheet" type="text/css">
</head>
<body style="padding-top:0px; margin-top:7px; height:100%; background-color:#e2e0e1;">';
if (!isset($_GET['mAjax']) && !isset($_GET['ajaxHostel'])) {
echo '<!DOCTYPE html>
<div style="padding-top:0; margin-top:7px; height:100%; background-color:#e2e0e1;">';
}
$act = -2;
$act2 = 0;
$u->stats = $u->getStats($u->info['id'], 0);
@@ -141,10 +135,20 @@ $ul = $u->testLevel();
if (isset($_GET['atak_user']) && $u->info['battle'] == 0 && $_GET['atak_user'] != $u->info['id']) {
if ($u->room['noatack'] == 0) {
$ua = mysql_fetch_array(mysql_query('SELECT `id`,`clan` FROM `users` WHERE`id` = "' . mysql_real_escape_string($_GET['atak_user']) . '" LIMIT 1'));
$cruw = mysql_fetch_array(mysql_query('SELECT `id`,`type` FROM `clan_wars` WHERE
$ua = mysql_fetch_array(
mysql_query(
'SELECT `id`,`clan` FROM `users` WHERE`id` = "' . mysql_real_escape_string(
$_GET['atak_user']
) . '" LIMIT 1'
)
);
$cruw = mysql_fetch_array(
mysql_query(
'SELECT `id`,`type` FROM `clan_wars` WHERE
((`clan1` = "' . $ua['clan'] . '" AND `clan2` = "' . $u->info['clan'] . '") OR (`clan2` = "' . $ua['clan'] . '" AND `clan1` = "' . $u->info['clan'] . '")) AND
`time_finish` > ' . time() . ' LIMIT 1'));
`time_finish` > ' . time() . ' LIMIT 1'
)
);
unset($ua);
if (isset($cruw['id'])) {
$cruw = $cruw['type'];
@@ -152,10 +156,29 @@ if (isset($_GET['atak_user']) && $u->info['battle'] == 0 && $_GET['atak_user'] !
$cruw = 0;
}
$ua = mysql_fetch_array(mysql_query('SELECT `s`.*,`u`.* FROM `stats` AS `s` LEFT JOIN `users` AS `u` ON `s`.`id` = `u`.`id` WHERE (`s`.`atack` > "' . time() . '" OR `s`.`atack` = 1 OR 1 = ' . $cruw . ' OR 2 = ' . $cruw . ') AND `s`.`id` = "' . mysql_real_escape_string($_GET['atak_user']) . '" LIMIT 1'));
$check = mysql_fetch_array(mysql_query('SELECT * FROM `eff_users` WHERE `id_eff` = 478 AND `uid` = "' . $u->info['id'] . '" AND `delete` = 0 ORDER BY `overType` DESC LIMIT 1;'));
$check2 = mysql_fetch_array(mysql_query('SELECT * FROM `eff_users` WHERE `id_eff` = 479 AND `uid` = "' . $ua['id'] . '" AND `delete` = 0 ORDER BY `overType` DESC LIMIT 1;'));
$test = mysql_fetch_array(mysql_query('SELECT `id` FROM `battle_last` WHERE `uid` = "' . $u->info['id'] . '" AND `battle_id` = "' . $ua['battle'] . '" LIMIT 1'));
$ua = mysql_fetch_array(
mysql_query(
'SELECT `s`.*,`u`.* FROM `stats` AS `s` LEFT JOIN `users` AS `u` ON `s`.`id` = `u`.`id` WHERE (`s`.`atack` > "' . time(
) . '" OR `s`.`atack` = 1 OR 1 = ' . $cruw . ' OR 2 = ' . $cruw . ') AND `s`.`id` = "' . mysql_real_escape_string(
$_GET['atak_user']
) . '" LIMIT 1'
)
);
$check = mysql_fetch_array(
mysql_query(
'SELECT * FROM `eff_users` WHERE `id_eff` = 478 AND `uid` = "' . $u->info['id'] . '" AND `delete` = 0 ORDER BY `overType` DESC LIMIT 1;'
)
);
$check2 = mysql_fetch_array(
mysql_query(
'SELECT * FROM `eff_users` WHERE `id_eff` = 479 AND `uid` = "' . $ua['id'] . '" AND `delete` = 0 ORDER BY `overType` DESC LIMIT 1;'
)
);
$test = mysql_fetch_array(
mysql_query(
'SELECT `id` FROM `battle_last` WHERE `uid` = "' . $u->info['id'] . '" AND `battle_id` = "' . $ua['battle'] . '" LIMIT 1'
)
);
if ($ua['no_ip'] == 'trupojor' && $ua['level'] == 9 && $u->info['level'] > 9) {
$u->error = 'Íåëüçÿ íàïàäàòü íà ìîíñòðà ýòîãî óðîâíÿ!';
} elseif ($ua['no_ip'] == 'trupojor' && $ua['level'] == 10 && $u->info['level'] < 10) {
@@ -173,7 +196,11 @@ if (isset($_GET['atak_user']) && $u->info['battle'] == 0 && $_GET['atak_user'] !
$minHp = floor($usta['hpAll'] / 100 * 33); // ìèíèìàëüíûé çàïàñ çäîðîâüÿ öåëè ïðè êîòîðîì ìîæíî íàïàñòü
if ($ua['battle'] > 0) {
$uabt = mysql_fetch_array(mysql_query('SELECT * FROM `battle` WHERE `id` = "' . $ua['battle'] . '" AND `team_win` = "-1" LIMIT 1'));
$uabt = mysql_fetch_array(
mysql_query(
'SELECT * FROM `battle` WHERE `id` = "' . $ua['battle'] . '" AND `team_win` = "-1" LIMIT 1'
)
);
if (!isset($uabt['id'])) {
$ua['battle'] = 0;
}
@@ -201,9 +228,13 @@ if (isset($_GET['atak_user']) && $u->info['battle'] == 0 && $_GET['atak_user'] !
$ua['type_pers'] = 500;
}
mysql_query('UPDATE `stats` SET `hpNow` = "' . $usta['hpNow'] . '",`mpNow` = "' . $usta['mpNow'] . '" WHERE `id` = "' . $usta['id'] . '" LIMIT 1');
mysql_query(
'UPDATE `stats` SET `hpNow` = "' . $usta['hpNow'] . '",`mpNow` = "' . $usta['mpNow'] . '" WHERE `id` = "' . $usta['id'] . '" LIMIT 1'
);
$goodt = $magic->atackUser($u->info['id'], $ua['id'], $ua['team'], $ua['battle'], $ua['bbexp'], $ua['type_pers']);
$goodt = $magic->atackUser(
$u->info['id'], $ua['id'], $ua['team'], $ua['battle'], $ua['bbexp'], $ua['type_pers']
);
if ($cruw == 2) {
$rtxt = '[img[items/pal_button9.gif]] &quot;' . $u->info['login'] . '&quot; ñîâåðøèë' . $sx . ' êðîâàâîå íàïàäåíèå ïî ìåòêå íà ïåðñîíàæà &quot;' . $ua['login'] . '&quot;.';
@@ -212,7 +243,10 @@ if (isset($_GET['atak_user']) && $u->info['battle'] == 0 && $_GET['atak_user'] !
}
if ($goodt > 0) {
mysql_query("INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`,`typeTime`) VALUES (1,'" . $u->info['city'] . "','" . $u->info['room'] . "','','','" . $rtxt . "','" . time() . "','6','0','1')");
mysql_query(
"INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`,`typeTime`) VALUES (1,'" . $u->info['city'] . "','" . $u->info['room'] . "','','','" . $rtxt . "','" . time(
) . "','6','0','1')"
);
}
unset($goodt);
header('location: main.php');
@@ -238,24 +272,19 @@ if ($ul == 1) {
$act = 1;
}
if ($u->info['repass'] > 0) {
function GetRealIp()
{
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
$ip = $_SERVER['HTTP_CLIENT_IP'];
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
} else {
$ip = $_SERVER['REMOTE_ADDR'];
}
return $ip;
}
define('IP', UserIp::get());
define('IP', GetRealIp());
if (isset($_POST['renpass']) && $_POST['renpass'] == $_POST['renpass2'] && md5($_POST['renpass']) != $u->info['pass']) {
if (isset($_POST['renpass']) && $_POST['renpass'] == $_POST['renpass2'] && md5(
$_POST['renpass']
) != $u->info['pass']) {
if ($u->info['ip'] == IP) {
$u->info['pass'] = md5($_POST['renpass']);
setcookie('pass', $u->info['pass'], time() + 30 * 60 * 60 * 24, '', 'new-combats.com');
mysql_query('UPDATE `users` SET `pass` = "' . mysql_real_escape_string($u->info['pass']) . '",`repass` = "0",`type_pers` = "0",`bot_room` = "0" WHERE `id` = "' . $u->info['id'] . '" LIMIT 1');
mysql_query(
'UPDATE `users` SET `pass` = "' . mysql_real_escape_string(
$u->info['pass']
) . '",`repass` = "0",`type_pers` = "0",`bot_room` = "0" WHERE `id` = "' . $u->info['id'] . '" LIMIT 1'
);
mysql_query('UPDATE `stats` SET `bot` = "0" WHERE `id` = "' . $u->info['id'] . '" LIMIT 1');
} else {
die('<font color="red"><b>Âíèìàíèå!</b> Ñìåíà ïàðîëÿ ïðèâÿçàíà ê ip %' . $u->info['ip'] . '.<br>Äëÿ âîññòàíîâëåíèÿ êîíòðîëÿ âîéäèòå ñ äàííîãî IP, ëèáî îáðàòèòåñü ê Àäìèíèñòðàöèè ïðîåêòà ÷åðåç íîâîãî ïåðñîíàæà. Ïðèíîñèì èçâèíåíèÿ çà íåóäîáñòâà!</font>');
@@ -268,7 +297,8 @@ if ($u->info['repass'] > 0) {
echo '<font color="red"><b>Âíèìàíèå!</b>Ïàðîëè íå ñîâïàäàþò.</font>';
}
}
die('<br><br><br><font color="red"><b>Ñìåíèòå ïîæàëóéñòà ïàðîëü îò ïåðñîíàæà!</b><br>Äàííàÿ ñìåíà ïðîõîäèò, åñëè ïàðîëü íå ìåíÿëñÿ áîëåå 2 ìåñÿöåâ.</font><br><br><hr>
die(
'<br><br><br><font color="red"><b>Ñìåíèòå ïîæàëóéñòà ïàðîëü îò ïåðñîíàæà!</b><br>Äàííàÿ ñìåíà ïðîõîäèò, åñëè ïàðîëü íå ìåíÿëñÿ áîëåå 2 ìåñÿöåâ.</font><br><br><hr>
<form action="main.php" method="post">
<fieldset>
<legend><b>Ñìåíèòü ïàðîëü</b></legend>
@@ -278,13 +308,18 @@ if ($u->info['repass'] > 0) {
<tr><td align=right><input type=submit value="Ñìåíèòü ïàðîëü" name="changepsw"></td><td></td></tr>
</table>
</fieldset>
</font>');
</font>'
);
}
}
/*-----------------------*/
if ($u->info['battle'] == 0) {
$btl_last = mysql_fetch_array(mysql_query('SELECT `id`,`battle` FROM `battle_users` WHERE `uid` = "' . $u->info['id'] . '" AND `finish` = "0" LIMIT 1'));
$btl_last = mysql_fetch_array(
mysql_query(
'SELECT `id`,`battle` FROM `battle_users` WHERE `uid` = "' . $u->info['id'] . '" AND `finish` = "0" LIMIT 1'
)
);
}
if (isset($btl_last['id']) && $u->info['battle'] == 0) {
require_once('modules_data/btl_.php');
@@ -329,7 +364,9 @@ 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']));
@@ -365,9 +402,7 @@ if ($act != -2) {
}
/*-----------------------*/
if (isset($_GET['worklist']) && $u->info['admin'] > 0) {
require_once('modules_data/worklist.php');
} elseif (isset($_GET['security']) && !isset($u->tfer['id']) && $trololo == 1) {
if (isset($_GET['security']) && !isset($u->tfer['id']) && $trololo == 1) {
require_once('modules_data/_changepass.php');
} elseif ($u->info['level'] >= 0 && isset($_GET['friends']) && !isset($u->tfer['id'])) {
require_once('modules_data/_friends.php');
@@ -417,7 +452,7 @@ if (isset($_GET['worklist']) && $u->info['admin'] > 0) {
die();
}
require_once('modules_data/_alhp.php');
//Ïàíåëü áóêìåêåðà
//Ïàíåëü áóêìåêåðà
} elseif (isset($_GET['bukmeker']) && $u->info['level'] > 0 && !isset($u->tfer['id'])) {
require_once('modules_data/_bukmeker.php');
//Ïàíåëü ñâåòëîãî
@@ -445,7 +480,8 @@ if (isset($_GET['worklist']) && $u->info['admin'] > 0) {
</script>
";
if ($u->info['dnow'] > 0) {
require_once('_incl_data/class/__dungeon.php');
$d = new Dungeon;
$d->start();
}
require_once('modules_data/_dialog.php');
} elseif (isset($_GET['inv']) && !isset($u->tfer['id']) && $trololo == 1) {
@@ -461,7 +497,9 @@ if (isset($_GET['worklist']) && $u->info['admin'] > 0) {
} elseif ((isset($_GET['transfer']) || isset($u->tfer['id'])) && $u->info['level'] >= $c['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('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');
}
@@ -478,30 +516,19 @@ if (isset($_GET['worklist']) && $u->info['admin'] > 0) {
}
}
/**
* Îòêëþ÷èë ïîòîìó ÷òî ýòà ñòðî÷êà êðàøèò ïëàâêó ðóí.
* PHP Fatal error: Call to a member function testquest() on a non-object
* Íåâåðîÿòíî, íî ôàêò. Èíñ. 09.06.22
*/
//Ïðîâåðÿåì êâåñòû íà ãîòîâíîñòü
if (in_array($u->room['file'], [
'dungeon_enter',
'dungeon_enter_all',
'enterbezdna',
'entercat',
'enterdrago',
'entergrib',
'enternizin',
'enterptp',
'house_belaun',
'dungeon'
])) {
if (in_array(
$u->room['file'],
['dungeon_enter', 'dungeon_enter_all', 'enterbezdna', 'entercat', 'enterdrago', 'entergrib', 'enternizin', 'enterptp', 'house_belaun', 'dungeon']
)) {
$q->testquest();
}
$iloc = '';
$iloce = '';
$sp = mysql_query('SELECT * FROM `items_local` WHERE (`room` = "' . $u->info['room'] . '" OR `room` = "-1") AND `delete` = "0" AND `user_take` = "0" AND `tr_login` = "' . $u->info['login'] . '"');
$sp = mysql_query(
'SELECT * FROM `items_local` WHERE (`room` = "' . $u->info['room'] . '" OR `room` = "-1") AND `delete` = "0" AND `user_take` = "0" AND `tr_login` = "' . $u->info['login'] . '"'
);
while ($pl = mysql_fetch_array($sp)) {
$itmo = mysql_fetch_array(mysql_query('SELECT * FROM `items_main` WHERE `id` = "' . $pl['item_id'] . '" LIMIT 1'));
if (isset($itmo['id'])) {
@@ -527,20 +554,30 @@ while ($pl = mysql_fetch_array($sp)) {
if ($pl['time'] + 86400 < time()) {
//Íå óñïåëè ïîäíÿòü
$glid = 1;
mysql_query('UPDATE `items_local` SET `delete` = "' . time() . '" WHERE `id` = "' . $pl['id'] . '" LIMIT 1');
mysql_query(
'UPDATE `items_local` SET `delete` = "' . time() . '" WHERE `id` = "' . $pl['id'] . '" LIMIT 1'
);
} elseif (isset($_GET['take_loc_item']) && $_GET['take_loc_item'] == $pl['id']) {
//
if ($u->info['battle'] > 0 && $tk == 1) {
$iloce = 'Âû íå ìîæåòå ïîäíÿòü ïðåäìåò, çàâåðøèòå ïîåäèíîê...';
} elseif ($tk == 1) {
$iloce = 'Âû óñïåøíî ïîäíÿëè ïðåäìåò &quot;' . $itmo['name'] . '&quot; â ëîêàöèè &quot;' . $u->room['name'] . '&quot;.';
mysql_query('UPDATE `items_local` SET `delete` = "' . time() . '" , `user_take` = "' . $u->info['id'] . '" WHERE `id` = "' . $pl['id'] . '" LIMIT 1');
mysql_query(
'UPDATE `items_local` SET `delete` = "' . time(
) . '" , `user_take` = "' . $u->info['id'] . '" WHERE `id` = "' . $pl['id'] . '" LIMIT 1'
);
//âûäàåì ïðåäìåò
$glid = 1;
if ($pl['data'] == '0') {
$u->addItem($pl['item_id'], $u->info['id'], '|from_loc_id=' . $pl['id'] . '|from_loc=' . $u->info['room']);
$u->addItem(
$pl['item_id'], $u->info['id'], '|from_loc_id=' . $pl['id'] . '|from_loc=' . $u->info['room']
);
} else {
$u->addItem($pl['item_id'], $u->info['id'], '|from_loc_id=' . $pl['id'] . '|from_loc=' . $u->info['room'] . '|' . $pl['data']);
$u->addItem(
$pl['item_id'], $u->info['id'],
'|from_loc_id=' . $pl['id'] . '|from_loc=' . $u->info['room'] . '|' . $pl['data']
);
}
}
}
@@ -548,8 +585,7 @@ while ($pl = mysql_fetch_array($sp)) {
if ($tk == 1 && $pl['tr_login'] == '0') {
$tk = 2;
}
$iloc .= '<a class="tolobf' . $tk . '" href="main.php?take_loc_item=' . $pl['id'] . '" target="main"><div class="outer"><div class="middle"><div class="inner">' .
'<img title="Çàáðàòü &quot;' . $itmo['name'] . '&quot;';
$iloc .= '<a class="tolobf' . $tk . '" href="main.php?take_loc_item=' . $pl['id'] . '" target="main"><div class="outer"><div class="middle"><div class="inner">' . '<img title="Çàáðàòü &quot;' . $itmo['name'] . '&quot;';
if ($pl['tr_login']) {
$iloc .= '\n' . 'Ïðåäìåò äëÿ èãðîêà &quot;' . $pl['tr_login'] . '&quot;';
} elseif ($pl['tr_sex'] == 0) {
@@ -559,8 +595,7 @@ while ($pl = mysql_fetch_array($sp)) {
} else {
$iloc .= '\n' . 'Ïðåäìåò ìîæåò ïîäîáðàòü êàæäûé';
}
$iloc .= '" src="https://img.new-combats.com/i/items/' . $itmo['img'] . '">' .
'</div></div></div></a> ';
$iloc .= '" src="https://img.new-combats.com/i/items/' . $itmo['img'] . '">' . '</div></div></div></a> ';
}
} else {
echo '[!]';
@@ -572,10 +607,7 @@ if ($iloc != '') {
if ($iloce != '') {
$iloc = '<div style="padding:10px;"><font color=red>' . $iloce . '</font></div>' . $iloc;
}
$iloc = '<style>' .
'.tolobf0 { display:inline-block; width:80px; height:80px; background-color:#e5e5e5; text-align:center; }.tolobf0:hover { background-color:#d5d5d5; text-align:center; }.tolobf2 { display:inline-block; width:80px; height:80px; background-color:#FFD700; text-align:center; }.tolobf2:hover { background-color:#DAA520; text-align:center; }.tolobf1 { display:inline-block; width:80px; height:80px; background-color:#d5d5e5; text-align:center; }.tolobf1:hover { background-color:#d5d5d5; text-align:center; }.outer { display: table; position: absolute; height: 80px; width: 80px;}.middle { display: table-cell; vertical-align: middle;}.inner { margin-left: auto; margin-right: auto; width: 80px; }' .
'</style>' .
'<h3>Â êîìíàòå ðàçáðîñàíû ïðåäìåòû</h3>' . $iloc;
$iloc = '<style>' . '.tolobf0 { display:inline-block; width:80px; height:80px; background-color:#e5e5e5; text-align:center; }.tolobf0:hover { background-color:#d5d5d5; text-align:center; }.tolobf2 { display:inline-block; width:80px; height:80px; background-color:#FFD700; text-align:center; }.tolobf2:hover { background-color:#DAA520; text-align:center; }.tolobf1 { display:inline-block; width:80px; height:80px; background-color:#d5d5e5; text-align:center; }.tolobf1:hover { background-color:#d5d5d5; text-align:center; }.outer { display: table; position: absolute; height: 80px; width: 80px;}.middle { display: table-cell; vertical-align: middle;}.inner { margin-left: auto; margin-right: auto; width: 80px; }' . '</style>' . '<h3>Â êîìíàòå ðàçáðîñàíû ïðåäìåòû</h3>' . $iloc;
$tjs .= 'top.frames[\'main\'].locitems=1;parent.$(\'#canal1\').html( \'' . $iloc . '\' );';
} else {
$tjs .= 'top.frames[\'main\'].locitems=1;parent.$(\'#canal1\').html( \'\' );';
@@ -583,7 +615,11 @@ if ($iloc != '') {
unset($iloc, $iloce);
/*-----------------------*/
$spl = mysql_fetch_array(mysql_query('SELECT `exp` FROM `levels` WHERE `nextLevel` = "' . ($u->info['level'] + 1) . '" ORDER BY `exp` ASC LIMIT 1'));
$spl = mysql_fetch_array(
mysql_query(
'SELECT `exp` FROM `levels` WHERE `nextLevel` = "' . ($u->info['level'] + 1) . '" ORDER BY `exp` ASC LIMIT 1'
)
);
$spl = $spl['exp'];
echo '<script>top.myexpLineTop27(' . $u->info['exp'] . ',' . $spl . ');' . $tjs . 'top.ctest("' . $u->info['city'] . '");top.sd4key="' . $u->info['nextAct'] . '"; var battle = ' . (0 + $u->info['battle']) . '; top.hic();</script></body>
</html>';