nick3() and partially nick7() functions replaced by nick class
This commit is contained in:
+6
-6
@@ -155,7 +155,7 @@ class TTournament {
|
||||
// кидаем в бой
|
||||
mysql_query("UPDATE `users` SET `battle` = {$id} WHERE `id` = ".$user1." OR `id` = ".$user2);
|
||||
// создаем лог
|
||||
$rr = "<b>".nick3($user['id'])."</b> и <b>".nick3($jert['id'])."</b>";
|
||||
$rr = "<b>".nick::id($user['id'])->full(1)."</b> и <b>".nick::id($jert['id'])->full(1)."</b>";
|
||||
addch ("<a href=logs.php?log=".$id." target=_blank>Бой</a> между <B><b>".nick7($user['id'])."</b> и <b>".nick7($jert['id'])."</b> начался. ",$user['room']);
|
||||
addlog($id,"Часы показывали <span class=date>".date("Y.m.d H.i")."</span>, когда ".$rr." решили выяснить кто из них сильнее. <i>(турнир)</i><BR>");
|
||||
return $id;
|
||||
@@ -199,7 +199,7 @@ class TTournament {
|
||||
mysql_query("delete from turnirbattle where id=".$res['id']);
|
||||
}
|
||||
if($win==3){
|
||||
echo nick3($res['userid'])." против ".nick3($res['userid1']);
|
||||
echo nick::id($res['userid'])->full(1)." против ".nick::id($res['useridl'])->full(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -389,9 +389,9 @@ class TTournament {
|
||||
addchp ('<font color=red>Внимание!</font>Вы выбыли из турнира<BR>','{[]}'.nick7 ($res['userid']).'{[]}');
|
||||
addchp ('<font color=red>Внимание!</font>Ваш противник отказался от боя. Техническая победа.<BR>','{[]}'.nick7 ($res['userid1']).'{[]}');
|
||||
}
|
||||
else echo "<form method='post'><input type='submit' name='expenemy' value='Я готов'> противник ".nick3($res['userid1'])."(поражений-".$looseL1[0].")</form>";
|
||||
else echo "<form method='post'><input type='submit' name='expenemy' value='Я готов'> противник ".nick::id($res['useridl'])->full(1)."(поражений-".$looseL1[0].")</form>";
|
||||
}
|
||||
else echo "<form method='post'><input type='submit' name='expenemy' value='Я готов'> противник ".nick3($res['userid1'])."(поражений-".$looseL1[0].")</form>";
|
||||
else echo "<form method='post'><input type='submit' name='expenemy' value='Я готов'> противник ".nick::id($res['useridl'])->full(1)."(поражений-".$looseL1[0].")</form>";
|
||||
}
|
||||
else echo "Ожидаем противника";
|
||||
}
|
||||
@@ -405,9 +405,9 @@ class TTournament {
|
||||
addchp ('<font color=red>Внимание!</font>Вы выбыли из турнира<BR>','{[]}'.nick7 ($res['userid1']).'{[]}');
|
||||
addchp ('<font color=red>Внимание!</font>Ваш противник отказался от боя. Техническая победа.<BR>','{[]}'.nick7 ($res['userid']).'{[]}');
|
||||
}
|
||||
else echo "<form method='post'><input type='submit' name='expenemy' value='Я готов'>противник ".nick3($res['userid'])."(поражений-".$looseL[0].")</form>";
|
||||
else echo "<form method='post'><input type='submit' name='expenemy' value='Я готов'>противник ".nick::id($res['userid'])->full(1)."(поражений-".$looseL[0].")</form>";
|
||||
}
|
||||
else echo "<form method='post'><input type='submit' name='expenemy' value='Я готов'>противник ".nick3($res['userid'])."(поражений-".$looseL[0].")</form>";
|
||||
else echo "<form method='post'><input type='submit' name='expenemy' value='Я готов'>противник ".nick::id($res['userid'])->full(1)."(поражений-".$looseL[0].")</form>";
|
||||
}
|
||||
else echo "Ожидаем противника";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user