Часть логов теперь пишется в SQLITE, а не в текстовые файлы (#33). Проинициализирован класс Nick в свитках.
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
<?php
|
||||
// magic выход из боя
|
||||
use Battles\GameLogs;
|
||||
use Battles\Nick;
|
||||
|
||||
if (empty($_SESSION['uid'])) {
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
@@ -18,9 +21,9 @@ if ($user['battle'] == 0) {
|
||||
|
||||
//unset($fbattle->battle[$user['id']]);
|
||||
if ($us['sex'] == 1) {
|
||||
addlog($user['battle'], '<span class=date>' . date("H:i") . '</span> ' . Nick::id($user['id'])->short() . ' вышла из боя!<BR>');
|
||||
GameLogs::addBattleLog($user['battle'], '<span class=date>' . date("H:i") . '</span> ' . Nick::id($user['id'])->short() . ' вышла из боя!<BR>');
|
||||
} else {
|
||||
addlog($user['battle'], '<span class=date>' . date("H:i") . '</span> ' . Nick::id($user['id'])->short() . ' вышел из боя!<BR>');
|
||||
GameLogs::addBattleLog($user['battle'], '<span class=date>' . date("H:i") . '</span> ' . Nick::id($user['id'])->short() . ' вышел из боя!<BR>');
|
||||
}
|
||||
|
||||
$bd = mysql_fetch_array(mysql_query('SELECT * FROM `battle` WHERE `id` = ' . $user['battle'] . ' LIMIT 1;'));
|
||||
|
||||
Reference in New Issue
Block a user