nick7() functions replaced by nick class

This commit is contained in:
lopar
2018-03-04 02:09:58 +02:00
parent e5d14473db
commit 2bae7c09b9
47 changed files with 263 additions and 259 deletions
+2 -2
View File
@@ -131,7 +131,7 @@ if($_POST['attack']) {
} else {
$ttt = 1; $ttt2 = 2;
}
addch("<b>".nick7($user['id'])."</b> вмешался в <a href=logs.php?log=".$id." target=_blank>поединок »»</a>.", $user['room']);
addch("<b>".nick::id($user['id'])->short()."</b> вмешался в <a href=logs.php?log=".$id." target=_blank>поединок »»</a>.", $user['room']);
addlog($jert['battle'], '<span class=date>'.date("H:i").'</span> '.nick5($user['id'], "B".$ttt).' вмешался в поединок!<BR>');
mysql_query('UPDATE `battle` SET `teams` = \''.serialize($battle).'\', `t'.$ttt.'` = CONCAT(`t'.$ttt.'`,\';'.$user['id'].'\'), `to'.$ttt.'` = \''.time().'\', `to'.$ttt2.'` = \''.(time()-1).'\' WHERE `id` = "'.$jert['battle'].'" LIMIT 1');
mysql_query("UPDATE `users` SET `battle` = '".$jert['battle']."', `zayavka` = 0 WHERE `id` = '".$user['id']."' LIMIT 1");
@@ -157,7 +157,7 @@ if($_POST['attack']) {
}
$rr = "<b>".nick::id($user['id'])->full(1)."</b> и <b>".nick::id($jert['id'])->full(1)."</b>";
addch("<B><b>".nick7($user['id'])."</b> , применив магию нападения, внезапно напал на <b>".nick7($jert['id'])."</b>.", $user['room']);
addch("<B><b>".nick::id($user['id'])->short()."</b> , применив магию нападения, внезапно напал на <b>".nick::id($jert['id'])->short()."</b>.", $user['room']);
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']} OR `id` = {$jert['id']})");
mysql_query('UPDATE `deztow_turnir` SET `log` = CONCAT(`log`,\''."<span class=date>".date("d.m.y H:i")."</span> ".nick::id($user['id'])->full(1)." напал на ".nick::id($jert['id'])->full(1)." завязался <a href=\"logs.php?log={$id}\" target=_blank>бой »»</a><BR>".'\') WHERE `active` = TRUE LIMIT 1');