Autofix small errors

This commit is contained in:
Igor Barkov [iwork]
2019-01-16 19:45:30 +02:00
parent d330721114
commit 094b8a6027
313 changed files with 736 additions and 2280 deletions
+11 -10
View File
@@ -38,7 +38,7 @@ class fbattle
создание класса и сбор основной инфы
--------------------------------------------------------------------*/
function fbattle($battle_id)
function __construct($battle_id)
{
global $mysql, $user, $_POST, $cavedata, $caverooms, $cavebots, $party;
// соединяем мускуль и юзера
@@ -1147,12 +1147,13 @@ class fbattle
unset($this->battle[$kak][$k]);
}
}
if ($us['battle'] == 0) {
//unset($this->battle[$k]);
foreach ($this->battle as $kak => $vav) {
//unset($this->battle[$kak][$k]);
}
}
// if ($us['battle'] == 0) {
// //unset($this->battle[$k]);
// foreach ($this->battle as $kak => $vav) {
// //unset($this->battle[$kak][$k]);
// }
// }
unset($us);
}
// обновить битку
@@ -1297,9 +1298,9 @@ class fbattle
//////////////
if ($this->battle_data) {
$ss = @array_keys($this->battle);
if ($this->user['id'] == 10022) {
//var_dump($ss, $this->t1);
}
// if ($this->user['id'] == 10022) {
// //var_dump($ss, $this->t1);
// }
$t1life = 0;
$t2life = 0;
// проверяем живность команд
-1
View File
@@ -2,4 +2,3 @@
$bots = array(1 => 10025, 2 => 10026, 3 => 10027, 4 => 10028, 5 => 10031, 6 => 10032, 7 => 10033, 8 => 10034);
$botnames = array(1 => "Паук", 2 => "Тарантул", 3 => "Гигантская крыса", 4 => "Покровитель нечести", 5 => "Нечто", 6 => "Обезумевший крыс", 7 => "Призрак короля крыс ", 8 => "Обезумевший палач");
?>
-1
View File
@@ -9,4 +9,3 @@ if($user['room'] == 621) {
$caveitems[7] = array(array('id' => 1129, 'from' => 'shop', 'foronetrip' => 0, 'chance' => 10, 'podzem' => 1));
$caveitems[8] = array(array('id' => 1131, 'from' => 'shop', 'foronetrip' => 0, 'chance' => 5, 'podzem' => 1));
}
?>
-1
View File
@@ -20,4 +20,3 @@ foreach($lomka1 as $k => $v) {
}
}
}
?>
-1
View File
@@ -79,4 +79,3 @@ if(in_array($user['room'], $caverooms)) {
mysql_query("DELETE FROM `cavebots` WHERE `battle` = '".$this->battle_data["id"]."'");
mysql_query('UNLOCK TABLES');
}
?>
-1
View File
@@ -4995,4 +4995,3 @@ class upload {
}
}
?>
+1 -1
View File
@@ -282,7 +282,7 @@ TASK;
}
$bot2 = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `id` = "' . $ex2[0] . '" LIMIT 1'));
$bot2['id'] = $bot2['id'];
//$bot2['id'] = $bot2['id']; ?!?!?!?!?!?!?!
if (isset($bot2['id'])) {
$x .= '&nbsp; &nbsp; &bull; <b>' . $bot2['login'] . '</b> [' . $x2 . '/' . $d['all_kill'] . ']<br />';
} else {