Функция 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

@@ -134,7 +134,7 @@ function battlewithbot($b, $name = '', $time = 3, $blood = 1, $group = 1, $battl
if ($user1['invis'] == 1) {
addlog($battleid, '<span class=date>' . date("H:i") . '</span> <b>невидимка</b> вмешался в поединок!<BR>');
} else {
addlog($battleid, '<span class=date>' . date("H:i") . '</span> ' . nick::id($user['id'])->short() . ' вмешался в поединок!<BR>');
addlog($battleid, '<span class=date>' . date("H:i") . '</span> ' . Nick::id($user['id'])->short() . ' вмешался в поединок!<BR>');
}
mysql_query('UPDATE `battle` SET `teams` = \'' . serialize($battle) . '\', `t' . $ttt . '` = CONCAT(`t' . $ttt . '`,\';' . $user1['id'] . '\') WHERE `id` = ' . $battleid . ' LIMIT 1');
@@ -187,9 +187,9 @@ function battlewithbot($b, $name = '', $time = 3, $blood = 1, $group = 1, $battl
mysql_query("UPDATE `users` SET `battle` = {$battleid} WHERE `id` = {$user1['id']} LIMIT 1");
if ($user1['invis'] == 1) {
$rr = "<b>невидимка</b> и <b>" . nick::id($botid1)->full(1) . "</b>";
$rr = "<b>невидимка</b> и <b>" . Nick::id($botid1)->full(1) . "</b>";
} else {
$rr = "<b>" . nick::id($user1['id'])->full(1) . "</b> и <b>" . nick::id($botid1)->full(1) . "</b>";
$rr = "<b>" . Nick::id($user1['id'])->full(1) . "</b> и <b>" . Nick::id($botid1)->full(1) . "</b>";
}
addlog($battleid, "Часы показывали <span class=date>" . date("Y.m.d H.i") . "</span>, когда " . $rr . " бросили вызов друг другу. <BR>" . ($others ? "$others<BR>" : ""));
if (!$noredir) {
@@ -1475,9 +1475,7 @@ function drawmap($map1, $players, $x, $y, $direction) {
$ret.="</table></div>
</td></tr></table>";
$ret.="<div align=\"center\" style=\"position:absolute; left:389px; top:10px; font-size:6px;padding:0px;border:solid black 0px; text-align:center\" id=\"prcont\">
<script language=\"javascript\" type=\"text/javascript\">
var s=\"\";for (i=1; i<=32; i++) {s+='<span id=\"progress'+i+'\">&nbsp;</span>';if (i<32) {s+='&nbsp;'};}document.getElementById('prcont').innerHTML=s;
$ret.= ">&nbsp;</span>';if (i<32) {s+='&nbsp;'}}document.getElementById('prcont').innerHTML=s;
</script></div>";
$ret.="<TABLE><tr>