Функция nick() переехала в класс Nick.

This commit is contained in:
Igor Barkov (iwork)
2020-08-27 15:17:02 +03:00
parent a6ec244474
commit 782aa0632d
346 changed files with 574 additions and 567 deletions

View File

@@ -56,10 +56,10 @@ if($rand < 15 && $user['battle'] == 0) {
mysql_query("INSERT INTO `battle`(`teams`, `timeout`, `type`, `status`, `t1`, `t2`, `to1`, `to2`) VALUES ('".serialize($teams)."', '3', '1', '0', '".$user['id']."', '".$bot."', '".time()."', '".time()."')");
$id = mysql_insert_id();
mysql_query("UPDATE `bots` SET `battle` = {$id} WHERE `id` = {$bot} LIMIT 1");
$rr = "<b>".nick::id($user['id'])->full(1)."</b> и <b>".nick::id($bot)->full(1)."</b>";
$rr = "<b>".Nick::id($user['id'])->full(1)."</b> и <b>".Nick::id($bot)->full(1)."</b>";
addlog($id,"Часы показывали <span class=date>".date("Y.m.d H.i")."</span>, когда ".$rr." бросили вызов друг другу. <br />");
mysql_query("UPDATE `users` SET `battle` = {$id}, `zayavka` = 0 WHERE `id` = '".$user['id']."' LIMIT 1");
addchp ('<b style="color:#990000">Внимание!</b> На вас напал "'.$bots[$rbot].'". ','{[]}'.nick::id($user["id"])->short().'{[]}');
addchp ('<b style="color:#990000">Внимание!</b> На вас напал "'.$bots[$rbot].'". ','{[]}'.Nick::id($user["id"])->short().'{[]}');
}
@@ -108,7 +108,7 @@ if($_GET['res']) {
$fo = mysql_query("INSERT INTO `inventory`(`name`, `koll`, `img`, `owner`, `type`, `massa`, `isrep`, `podzem`, `maxdur`, `present`) VALUES ('".$gss['name']."', '1', '".$gss['img']."', '".$user['id']."', '200', '0.1', '0', '1', '1', 'Лес')");
}
mysql_query("DELETE FROM `les_res` WHERE `id` = '".$gss['id']."' LIMIT 1");
addchp ('<b style="color:#990000">Внимание!</b> <b>'.$user["login"].'</b>, поднял предмет "'.$gss['name'].'".', '{[]}'.nick::id($user["id"])->short().'{[]}');
addchp ('<b style="color:#990000">Внимание!</b> <b>'.$user["login"].'</b>, поднял предмет "'.$gss['name'].'".', '{[]}'.Nick::id($user["id"])->short().'{[]}');
echo "<font style='color:#990000'>Вы подняли <b>'".$gss['name']."'</b>.</font>";
} else {
echo "&nbsp;<font style='font-size:12px; color:cc0000;'>Кто-то оказался быстрее!</font>";}