Часть логов теперь пишется в SQLITE, а не в текстовые файлы (#33). Проинициализирован класс Nick в свитках.
This commit is contained in:
+6
-2
@@ -1,4 +1,8 @@
|
||||
<?php
|
||||
|
||||
use Battles\GameLogs;
|
||||
use Battles\Template;
|
||||
|
||||
require_once "functions.php";
|
||||
|
||||
$start = db::c()->query('SELECT `value` FROM `variables` WHERE `var` = "arena_of_gods"')->fetch_assoc();
|
||||
@@ -22,7 +26,7 @@ function join_arena($u, $btl, $team, $at)
|
||||
} else {
|
||||
$adtxt = 'За сторону <b>Света</b>.';
|
||||
}
|
||||
addlog($btl, '<span class=date>' . date("H:i") . '</span> ' . Nick::id($u)->short() . ' вмешался в поединок! ' . $adtxt . '<br />');
|
||||
GameLogs::addBattleLog($btl, '<span class=date>' . date("H:i") . '</span> ' . Nick::id($u)->short() . ' вмешался в поединок! ' . $adtxt . '<br />');
|
||||
mysql_query('UPDATE `battle` SET `teams` = \'' . serialize($battle) . '\', `t' . $team . '` = CONCAT(`t' . $team . '`,\';' . $u . '\') WHERE `id` = "' . $btl . '" LIMIT 1');
|
||||
mysql_query("UPDATE users SET `battle` = '" . $btl . "', `zayavka` = 0 WHERE `id` = '" . $u . "' LIMIT 1");
|
||||
header("Location: fbattle.php");
|
||||
@@ -120,7 +124,7 @@ if (isset($_GET['append'])) {
|
||||
}
|
||||
}
|
||||
}
|
||||
\Battles\Template::header('Арена Ангелов');
|
||||
Template::header('Арена Ангелов');
|
||||
?>
|
||||
<link href="css/fight.css" rel="stylesheet"/>
|
||||
<style>
|
||||
|
||||
Reference in New Issue
Block a user