nick3() and partially nick7() functions replaced by nick class

This commit is contained in:
lopar
2018-03-04 00:54:41 +02:00
parent 7c612d6088
commit e5d14473db
46 changed files with 125 additions and 186 deletions
+9 -9
View File
@@ -198,16 +198,16 @@ function startbattle($id, $zay, $r) {
foreach($z['team1'] as $k => $v) {
if($k != 0) { $rr .= ", "; }
$rr .= nick3($v);
file_get_contents('http://capitalcity.old-dark.ru/chats.php?id=7&user='.$v);
$rr .= nick::id($v)->full(1);
file_get_contents(GAMEDOMAIN.'/chats.php?id=7&user='.$v);
}
$rr .= "</b> и <b>";
foreach($z['team2'] as $k => $v) {
if($k != 0) { $rr .= ", "; }
$rr .= nick3($v);
file_get_contents('http://capitalcity.old-dark.ru/chats.php?id=7&user='.$v);
$rr .= nick::id($v)->full(1);
file_get_contents(GAMEDOMAIN.'/chats.php?id=7&user='.$v);
}
$rr .= "</b>";
@@ -314,7 +314,7 @@ if($st_ar['value'] <= time()) {
mysql_query("INSERT INTO `battle` (`id`, `coment`, `teams`, `time_m`, `timeout`, `type`, `status`, `t1`, `t2`, `to1`, `to2`, `blood`, `aren_of`) VALUES (NULL, '', '".serialize($teams)."', '".time()."', '3', '1', '0', '".$dark['id_at']."', '".$light['id_at']."', '".time()."', '".time()."', '1', '1')");
$id = mysql_insert_id();
mysql_query("UPDATE `bots` SET `battle` = {$id} WHERE (`id` = {$dark['id_at']} OR `id` = {$light['id_at']}) LIMIT 2");
$rr = "<b>".nick3($dark['id_at'])."</b> и <b>".nick3($light['id_at'])."</b>";
$rr = "<b>".nick::id($dark['id_at'])->full(1)."</b> и <b>".nick::id($light['id_at'])->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` = {$dark['id']} OR `id` = {$light['id']}) LIMIT 2");
file_get_contents('http://capitalcity.old-dark.ru/chats.php?id=2');
@@ -438,7 +438,7 @@ if(date("z-H-i") == date("z-H-i", $turnirstart['value']))
$urs[$row['owner']] = $rum;
$i++;
if($i > 1) { $lors .= ", "; }
$lors .= nick3($row['owner']);
$lors .= nick::id($row['owner'])->full(1);
}
undressall(233);
@@ -457,9 +457,9 @@ if(date("z-H-i") == date("z-H-i", $turnirstart['value']))
mysql_query("UPDATE `online` SET `room` = '".$rums."', `date` = '999999999999' WHERE `id` = '235' LIMIT 1");
echo mysql_error();
$i++;
$lors .= ", ".nick3(233);
$lors .= ", ".nick3(234);
$lors .= ", ".nick3(235);
$lors .= ", ".nick::id(233)->full(1);
$lors .= ", ".nick::id(234)->full(1);
$lors .= ", ".nick::id(235)->full(1);
$lors .= ltrim(",", $lors);
mysql_query("TRUNCATE TABLE `deztow_items`");
+2 -2
View File
@@ -293,12 +293,12 @@ class fbattle {
foreach($this->t1 as $k => $v) {
$nks1[] = nick7($v);
$nks1hist[] = nick3($v);
$nks1hist[] = nick::id($v)->full(1);
}
foreach($this->t2 as $k => $v) {
$nks2[] = nick7($v);
$nks2hist[] = nick3($v);
$nks2hist[] = nick::id($v)->full(1);
}
if(in_array($ss[0], $this->t1)) {