Function nick5() merged with nick class.

This commit is contained in:
lopar
2018-11-05 22:15:13 +02:00
parent 7514cd121a
commit 073d56fc6b
124 changed files with 232 additions and 245 deletions

View File

@@ -24,8 +24,8 @@ if($user['battle'] == 0) {
} else {
$ttt = 2;
}
if($user['invis'] == 1) { $lo = '<i><b>невидимка</b></i>'; } else { $lo = nick5($user['id'], "B".$ttt); }
if($user['invis'] == 1) { $los = '<i><b>невидимка</b></i>'; } else { $los = nick5($bot, "B".$ttt); }
if($user['invis'] == 1) { $lo = '<i><b>невидимка</b></i>'; } else { $lo = nick::id($user['id'])->short(); }
if($user['invis'] == 1) { $los = '<i><b>невидимка</b></i>'; } else { $los = nick::id($bot)->short(); }
addlog($user['battle'], '<span class=date>'.date("H:i").'</span> '.$lo.' породил своего клона '.$los.'.<BR><hr>');
mysql_query('UPDATE `battle` SET `teams` = \''.serialize($battle).'\', `t'.$ttt.'` = CONCAT(`t'.$ttt.'`,\';'.$bot.'\') WHERE `id` = "'.$user['battle'].'" LIMIT 1');
mysql_query("UPDATE `battle` SET `to1` = '".time()."', `to2` = '".time()."' WHERE `id` = ".$user['battle']." LIMIT 1");