Функция nick() переехала в класс Nick.
This commit is contained in:
@@ -5,7 +5,7 @@ $owntravma = mysql_fetch_array(mysql_query("SELECT `id` FROM `effects` WHERE `ow
|
||||
$us_b = mysql_fetch_array(mysql_query("SELECT `type`, `open` FROM `battle` WHERE `id` = '{$us['battle']}' LIMIT 1"));
|
||||
$vip = mysql_fetch_array(mysql_query('SELECT `id`, `klan`, `attack` FROM `abils_klan` WHERE `klan` = "'.$user['klan'].'" LIMIT 1'));
|
||||
if($user['invis'] == 1) { $lo = '<i><b>невидимка</b></i>'; } else { $lo = $user['login']; }
|
||||
$los = nick::id($user['id'])->short();
|
||||
$los = Nick::id($user['id'])->short();
|
||||
$effect = mysql_fetch_array(mysql_query("SELECT `id` FROM `effects` WHERE `owner` = '{$us['id']}' AND `time` > '".time()."' AND `type` = '227' LIMIT 1"));
|
||||
|
||||
if($vip['attack'] <= 0) {
|
||||
@@ -57,7 +57,7 @@ if($vip['attack'] <= 0) {
|
||||
$jert = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `login` = '".mysql_real_escape_string($_POST['target'])."' LIMIT 1"));
|
||||
if($jert['id'] != $user['id']) {
|
||||
addch("<img src=i/magic/attack.gif> <B>{$lo}</B>, применив магию нападения, внезапно ".$action." на "{$_POST['target']}"");
|
||||
addchp('<font color=red>Внимание!</font> На вас '.$action.' <b>'.$lo.'</b>.<br />\'; top.frames[\'main\'].location=\'fbattle.php\'; var z = \' ', '{[]}'.nick::id($jert['id'])->short().'{[]}');
|
||||
addchp('<font color=red>Внимание!</font> На вас '.$action.' <b>'.$lo.'</b>.<br />\'; top.frames[\'main\'].location=\'fbattle.php\'; var z = \' ', '{[]}'.Nick::id($jert['id'])->short().'{[]}');
|
||||
|
||||
if($jert['id'] > _BOTSEPARATOR_) {
|
||||
$arha = mysql_fetch_array(mysql_query('SELECT * FROM `bots` WHERE `prototype` = '.$jert['id'].' LIMIT 1'));
|
||||
@@ -84,7 +84,7 @@ if($vip['attack'] <= 0) {
|
||||
}
|
||||
|
||||
addch("<b>".$los."</b> вмешался в <a href=logs.php?log=".$id." target=_blank>поединок »»</a>.", $user['room']);
|
||||
if($user['invis'] == 1) { $lod = '<i><b>невидимка</b></i>'; } else { $lod = nick::id($user['id'])->short(); }
|
||||
if($user['invis'] == 1) { $lod = '<i><b>невидимка</b></i>'; } else { $lod = Nick::id($user['id'])->short(); }
|
||||
addlog($jert['battle'], '<span class=date>'.date("H:i").'</span> '.$lod.' вмешался в поединок!<BR>');
|
||||
mysql_query('UPDATE `battle` SET `teams` = \''.serialize($battle).'\', `t'.$ttt.'` = CONCAT(`t'.$ttt.'`,\';'.$user['id'].'\') WHERE `id` = "'.$jert['battle'].'" LIMIT 1');
|
||||
mysql_query("UPDATE users SET `battle` = ".$jert['battle'].", `zayavka` = 0 WHERE `id` = '".$user['id']."' LIMIT 1");
|
||||
@@ -119,10 +119,10 @@ if($vip['attack'] <= 0) {
|
||||
mysql_query("UPDATE `users` SET `battle` = {$id} WHERE `id` = {$jert['id']} LIMIT 1");
|
||||
}
|
||||
|
||||
$ld = nick::id($user['id'])->full(1);
|
||||
$lds = nick::id($user['id'])->short();
|
||||
$rr = "<b>".$ld."</b> и <b>".nick::id($jert['id'])->full(1)."</b>";
|
||||
addch("<a href=logs.php?log=".$id." target=_blank>Бой</a> между <b>".$lds."</b> и <b>".nick::id($jert['id'])->short()."</b> начался.", $user['room']);
|
||||
$ld = Nick::id($user['id'])->full(1);
|
||||
$lds = Nick::id($user['id'])->short();
|
||||
$rr = "<b>".$ld."</b> и <b>".Nick::id($jert['id'])->full(1)."</b>";
|
||||
addch("<a href=logs.php?log=".$id." target=_blank>Бой</a> между <b>".$lds."</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']}");
|
||||
header("Location: fbattle.php");
|
||||
|
||||
Reference in New Issue
Block a user