Правка запросов в showinf_pers()
This commit is contained in:
parent
47e13859f4
commit
51fca79288
@ -2282,7 +2282,7 @@ function showinf_pers($id, $pas = 0, $battle = 0, $me = 0, $main = false) //FIXM
|
||||
die('Неустранимая ошибка в showinf_pers(), обратитесь к разработчику.');
|
||||
} else {
|
||||
// $user = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id` = '{$id}' LIMIT 1"));
|
||||
$user = db::c()->query('SELECT * FROM `users` WHERE `id` = ?i', $id)->fetch_assoc()
|
||||
$user = db::c()->query('SELECT * FROM `users` WHERE `id` = ?i', $id)->fetch_assoc();
|
||||
$invis = $user['invis'];
|
||||
}
|
||||
|
||||
@ -2348,20 +2348,20 @@ function showinf_pers($id, $pas = 0, $battle = 0, $me = 0, $main = false) //FIXM
|
||||
$r .= '<tr><td width=62 valign=top><table width=100% cellspacing=0 cellpadding=0><tr><td>';
|
||||
|
||||
if ($user['sergi'] > 0) {
|
||||
$dress = mysql_fetch_array(mysql_query("SELECT `id`, `name`, `img`, `duration`, `maxdur`, `ghp`, `gsila`, `glovk`, `ginta`, `gintel`, `text`, `bron1`, `bron2`, `bron3`, `bron4` FROM `inventory` WHERE `id` = '{$user['sergi']}' LIMIT 1"));
|
||||
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `gsila`, `glovk`, `ginta`, `gintel`, `text`, `bron1`, `bron2`, `bron3`, `bron4`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['sergi'])->fetch_assoc();
|
||||
if ($dress['includemagicdex'] && (!$pas || ($battle && $me))) {
|
||||
$r .= showhrefmagic($dress);
|
||||
} else {
|
||||
$r .= '<img class=\'tooltip\' ' . ((($dress['maxdur'] - 2) <= $dress['duration'] && $dress['duration'] > 2 && !$pas) ? " style='background-image:url(i/blink.gif);' " : "") . ' src="i/sh/' . $dress['img'] . '" width=60 height=20 title="<b>' . $dress['name'] . "</b><br />Прочность " . $dress['duration'] . "/" . $dress['maxdur'] . "" . "" . (($dress['ghp'] > 0) ? "<br />Уровень жизни " . plusorminus($dress['ghp']) : "") . (($dress['text'] != null) ? "<br />На серьгах выгравировано '{$dress['text']}'" : "") . (($dress['gsila'] != 0) ? "<br />Сила " . plusorminus($dress['gsila']) : "") . (($dress['glovk'] != 0) ? "<br />Ловкость " . plusorminus($dress['glovk']) : "") . (($dress['ginta'] != 0) ? "<br />Интуиция " . plusorminus($dress['ginta']) : "") . (($dress['gintel'] != 0) ? "<br />Интеллект " . plusorminus($dress['gintel']) : "") . (($dress['bron1'] != 0) ? "<br />Броня головы: " . plusorminus($dress['bron1']) : "") . (($dress['bron2'] != 0) ? "<br />Броня корпуса: " . plusorminus($dress['bron2']) : "") . (($dress['bron3'] != 0) ? "<br />Броня пояса: " . plusorminus($dress['bron3']) : "") . (($dress['bron4'] != 0) ? "<br />Броня ног: " . plusorminus($dress['bron4']) : "") . '" />';
|
||||
}
|
||||
} else {
|
||||
$r .= '<img src="i/w1.gif" width="62" height="20" class="tooltip" title="Пустой слот Серьги" />';
|
||||
$r .= '<img src="i/w1.gif" width="60" height="20" class="tooltip" title="Пустой слот Серьги" />';
|
||||
}
|
||||
$r .= '</td></tr><tr><td>';
|
||||
|
||||
|
||||
if ($user['kulon'] > 0) {
|
||||
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `id` = '{$user['kulon']}' LIMIT 1"));
|
||||
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `gsila`, `glovk`, `ginta`, `gintel`, `text`, `bron1`, `bron2`, `bron3`, `bron4`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['kulon'])->fetch_assoc();
|
||||
if ($dress['includemagicdex'] && (!$pas || ($battle && $me))) {
|
||||
$r .= showhrefmagic($dress);
|
||||
} else {
|
||||
@ -2374,7 +2374,7 @@ function showinf_pers($id, $pas = 0, $battle = 0, $me = 0, $main = false) //FIXM
|
||||
$r .= '</td></tr><tr><td>';
|
||||
|
||||
if ($user['weap'] > 0) {
|
||||
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `id` = '{$user['weap']}' LIMIT 1"));
|
||||
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `gsila`, `glovk`, `ginta`, `gintel`, `text`, `bron1`, `bron2`, `bron3`, `bron4`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['weap'])->fetch_assoc();
|
||||
if ($dress['includemagicdex'] && (!$pas || ($battle && $me))) {
|
||||
$r .= showhrefmagic($dress);
|
||||
} else {
|
||||
@ -2392,17 +2392,18 @@ function showinf_pers($id, $pas = 0, $battle = 0, $me = 0, $main = false) //FIXM
|
||||
if ($user['plaw']) {
|
||||
$d = $user['plaw'];
|
||||
if ($user['bron']) {
|
||||
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `id` = '$user[bron]' LIMIT 1"));
|
||||
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `gsila`, `glovk`, `ginta`, `gintel`, `text`, `bron1`, `bron2`, `bron3`, `bron4`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['bron'])->fetch_assoc();
|
||||
$title .= '<br />--------------------<br /><b>' . $dress['name'] . '</b><br />Прочность ' . $dress['duration'] . '/' . $dress['maxdur'] . '' . (($dress['ghp'] > 0) ? '<br />Уровень жизни ' . plusorminus($dress['ghp']) : '') . (($dress['text'] != null) ? '<br />На одежде вышито ' . $dress['text'] . '' : '') . (($dress['gsila'] != 0) ? '<br />Сила ' . plusorminus($dress['gsila']) . '' : '') . (($dress['glovk'] != 0) ? '<br />Ловкость ' . plusorminus($dress['glovk']) . '' : '') . (($dress['ginta'] != 0) ? '<br />Интуиция ' . plusorminus($dress['ginta']) . '' : '') . (($dress['gintel'] != 0) ? '<br />Интеллект ' . plusorminus($dress['gintel']) . '' : '') . (($dress['bron1'] != 0) ? '<br />Броня головы: ' . plusorminus($dress['bron1']) . '' : '') . (($dress['bron2'] != 0) ? '<br />Броня корпуса: ' . plusorminus($dress['bron2']) . '' : '') . (($dress['bron3'] != 0) ? '<br />Броня пояса: ' . plusorminus($dress['bron3']) . '' : '') . (($dress['bron4'] != 0) ? '<br />Броня ног: ' . plusorminus($dress['bron4']) . '' : '') . '';
|
||||
}
|
||||
if ($user['rybax']) {
|
||||
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `id` = '$user[rybax]' LIMIT 1"));
|
||||
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `gsila`, `glovk`, `ginta`, `gintel`, `text`, `bron1`, `bron2`, `bron3`, `bron4`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['rybax'])->fetch_assoc();
|
||||
|
||||
$title .= '<br />--------------------<br /><b>' . $dress['name'] . '</b><br />Прочность ' . $dress['duration'] . '/' . $dress['maxdur'] . '' . (($dress['ghp'] > 0) ? '<br />Уровень жизни ' . plusorminus($dress['ghp']) : '') . (($dress['text'] != null) ? '<br />На одежде вышито ' . $dress['text'] . '' : '') . (($dress['gsila'] != 0) ? '<br />Сила ' . plusorminus($dress['gsila']) . '' : '') . (($dress['glovk'] != 0) ? '<br />Ловкость ' . plusorminus($dress['glovk']) . '' : '') . (($dress['ginta'] != 0) ? '<br />Интуиция ' . plusorminus($dress['ginta']) . '' : '') . (($dress['gintel'] != 0) ? '<br />Интеллект ' . plusorminus($dress['gintel']) . '' : '') . (($dress['bron1'] != 0) ? '<br />Броня головы: ' . plusorminus($dress['bron1']) . '' : '') . (($dress['bron2'] != 0) ? '<br />Броня корпуса: ' . plusorminus($dress['bron2']) . '' : '') . (($dress['bron3'] != 0) ? '<br />Броня пояса: ' . plusorminus($dress['bron3']) . '' : '') . (($dress['bron4'] != 0) ? '<br />Броня ног: ' . plusorminus($dress['bron4']) . '' : '') . '';
|
||||
}
|
||||
} elseif ($user['bron']) {
|
||||
$d = $user['bron'];
|
||||
if ($user['rybax']) {
|
||||
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `id` = '$user[rybax]' LIMIT 1"));
|
||||
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `gsila`, `glovk`, `ginta`, `gintel`, `text`, `bron1`, `bron2`, `bron3`, `bron4`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['rybax'])->fetch_assoc();
|
||||
$title .= "<br />--------------------<br /><b>$dress[name]</b><br />Прочность $dress[duration]/$dress[maxdur]" . (($dress['ghp'] > 0) ? "<br />Уровень жизни " . plusorminus($dress['ghp']) : "") . (($dress['text'] != null) ? "<br />На одежде вышито '{$dress['text']}'" : "") . (($dress['gsila'] != 0) ? "<br />Сила " . plusorminus($dress['gsila']) : "") . (($dress['glovk'] != 0) ? "<br />Ловкость " . plusorminus($dress['glovk']) : "") . (($dress['ginta'] != 0) ? "<br />Интуиция " . plusorminus($dress['ginta']) : "") . (($dress['gintel'] != 0) ? "<br />Интеллект " . plusorminus($dress['gintel']) : "") . (($dress['bron1'] != 0) ? "<br />Броня головы: " . plusorminus($dress['bron1']) : "") . (($dress['bron2'] != 0) ? "<br />Броня корпуса: " . plusorminus($dress['bron2']) : "") . (($dress['bron3'] != 0) ? "<br />Броня пояса: " . plusorminus($dress['bron3']) : "") . (($dress['bron4'] != 0) ? "<br />Броня ног: " . plusorminus($dress['bron4']) : "") . '"';
|
||||
}
|
||||
} elseif ($user['rybax']) {
|
||||
@ -2411,7 +2412,7 @@ function showinf_pers($id, $pas = 0, $battle = 0, $me = 0, $main = false) //FIXM
|
||||
if ($main == true) {
|
||||
$title = '';
|
||||
}
|
||||
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `id` = '{$d}' LIMIT 1"));
|
||||
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `gsila`, `glovk`, `ginta`, `gintel`, `text`, `bron1`, `bron2`, `bron3`, `bron4`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $d)->fetch_assoc();
|
||||
if ($dress['includemagicdex'] && (!$pas || ($battle && $me))) {
|
||||
$r .= showhrefmagic($dress);
|
||||
} else {
|
||||
@ -2424,7 +2425,7 @@ function showinf_pers($id, $pas = 0, $battle = 0, $me = 0, $main = false) //FIXM
|
||||
$r .= '</td></tr><tr><td><table cellspacing=0 cellpadding=0><tr><td>';
|
||||
|
||||
if ($user['r1'] > 0) {
|
||||
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `id` = '{$user['r1']}' LIMIT 1"));
|
||||
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `gsila`, `glovk`, `ginta`, `gintel`, `text`, `bron1`, `bron2`, `bron3`, `bron4`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['r1'])->fetch_assoc();
|
||||
if ($dress['includemagicdex'] && (!$pas || ($battle && $me))) {
|
||||
$r .= showhrefmagic($dress);
|
||||
} else {
|
||||
@ -2437,7 +2438,7 @@ function showinf_pers($id, $pas = 0, $battle = 0, $me = 0, $main = false) //FIXM
|
||||
$r .= '</td><td>';
|
||||
|
||||
if ($user['r2'] > 0) {
|
||||
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `id` = '{$user['r2']}' LIMIT 1"));
|
||||
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `gsila`, `glovk`, `ginta`, `gintel`, `text`, `bron1`, `bron2`, `bron3`, `bron4`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['r2'])->fetch_assoc();
|
||||
if ($dress['includemagicdex'] && (!$pas || ($battle && $me))) {
|
||||
$r .= showhrefmagic($dress);
|
||||
} else {
|
||||
@ -2450,7 +2451,7 @@ function showinf_pers($id, $pas = 0, $battle = 0, $me = 0, $main = false) //FIXM
|
||||
$r .= '</td><td>';
|
||||
|
||||
if ($user['r3'] > 0) {
|
||||
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `id` = '{$user['r3']}' LIMIT 1"));
|
||||
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `gsila`, `glovk`, `ginta`, `gintel`, `text`, `bron1`, `bron2`, `bron3`, `bron4`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['r3'])->fetch_assoc();
|
||||
if ($dress['includemagicdex'] && (!$pas || ($battle && $me))) {
|
||||
$r .= showhrefmagic($dress);
|
||||
} else {
|
||||
@ -2466,7 +2467,7 @@ function showinf_pers($id, $pas = 0, $battle = 0, $me = 0, $main = false) //FIXM
|
||||
$r .= '<td valign=top><img src="i/shadow/' . $user['shadow'] . '" width="76" height="209" /></td><td width="62" valign=top><table width=100% cellspacing=0 cellpadding=0><tr><td>';
|
||||
|
||||
if ($user['helm'] > 0) {
|
||||
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `id` = '{$user['helm']}' LIMIT 1"));
|
||||
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `gsila`, `glovk`, `ginta`, `gintel`, `text`, `bron1`, `bron2`, `bron3`, `bron4`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['helm'])->fetch_assoc();
|
||||
if ($dress['includemagicdex'] && (!$pas || ($battle && $me))) {
|
||||
$r .= showhrefmagic($dress);
|
||||
} else {
|
||||
@ -2479,7 +2480,7 @@ function showinf_pers($id, $pas = 0, $battle = 0, $me = 0, $main = false) //FIXM
|
||||
$r .= '</td></tr><tr><td>';
|
||||
|
||||
if ($user['perchi'] > 0) {
|
||||
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `id` = '{$user['perchi']}' LIMIT 1"));
|
||||
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `gsila`, `glovk`, `ginta`, `gintel`, `text`, `bron1`, `bron2`, `bron3`, `bron4`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['perchi'])->fetch_assoc();
|
||||
if ($dress['includemagicdex'] && (!$pas || ($battle && $me))) {
|
||||
$r .= showhrefmagic($dress);
|
||||
} else {
|
||||
@ -2492,7 +2493,7 @@ function showinf_pers($id, $pas = 0, $battle = 0, $me = 0, $main = false) //FIXM
|
||||
$r .= '</td></tr><tr><td>';
|
||||
|
||||
if ($user['shit'] > 0) {
|
||||
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `id` = '{$user['shit']}' LIMIT 1"));
|
||||
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `gsila`, `glovk`, `ginta`, `gintel`, `text`, `bron1`, `bron2`, `bron3`, `bron4`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['shit'])->fetch_assoc();
|
||||
if ($dress['includemagicdex'] && (!$pas || ($battle && $me))) {
|
||||
$r .= showhrefmagic($dress);
|
||||
} else {
|
||||
@ -2505,7 +2506,7 @@ function showinf_pers($id, $pas = 0, $battle = 0, $me = 0, $main = false) //FIXM
|
||||
$r .= '</td></tr><tr><td>';
|
||||
|
||||
if ($user['boots'] > 0) {
|
||||
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `id` = '{$user['boots']}' LIMIT 1"));
|
||||
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `gsila`, `glovk`, `ginta`, `gintel`, `text`, `bron1`, `bron2`, `bron3`, `bron4`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['boots'])->fetch_assoc();
|
||||
if ($dress['includemagicdex'] && (!$pas || ($battle && $me))) {
|
||||
$r .= showhrefmagic($dress);
|
||||
} else {
|
||||
@ -2518,7 +2519,7 @@ function showinf_pers($id, $pas = 0, $battle = 0, $me = 0, $main = false) //FIXM
|
||||
if ($invis) {
|
||||
$data['id'] = null;
|
||||
} else {
|
||||
$data = mysql_fetch_array(mysql_query("SELECT * FROM `online` WHERE `date` >= " . (time() - 60) . " AND `id` = " . $user['id'] . " LIMIT 1"));
|
||||
$data = db::c()->query('SELECT * FROM `online` WHERE `date` >= ?i AND `id` = ?i', time()-60, $user['id'])->fetch_assoc();
|
||||
}
|
||||
|
||||
$r .= '</td></tr></table></td></tr></table>';
|
||||
@ -2532,9 +2533,9 @@ function showinf_pers($id, $pas = 0, $battle = 0, $me = 0, $main = false) //FIXM
|
||||
if (!$battle) {
|
||||
if ($pas) {
|
||||
$r .= '<tr><td align=middle colSpan=2><b><small>'.GAMEDOMAIN.'</small></b></td></tr><tr><td colSpan=2><small>';
|
||||
$online = mysql_fetch_array(mysql_query('SELECT `u`.*, `o`.`date`, `u`.*, `o`.`real_time` FROM `users` AS `u`, `online` AS `o` WHERE `u`.`id` = `o`.`id` AND `u`.`id` = "' . $user['id'] . '" LIMIT 1'));
|
||||
$online = db::c()->query('SELECT `u`.*, `o`.`date`, `u`.*, `o`.`real_time` FROM `users` AS `u`, `online` AS `o` WHERE `u`.`id` = `o`.`id` AND `u`.`id` = ?i ', $user['id'])->fetch_assoc();
|
||||
if ($invis) {
|
||||
$invis = mysql_fetch_row(mysql_query("SELECT `time` FROM `effects` WHERE `owner` = '$user1[id]' AND `type` = '1022' LIMIT 1"));
|
||||
$invis = db::c()->query('SELECT `time` FROM `effects` WHERE `owner` = ?i AND `type` = 1022', $user['id'])->fetch_assoc();//FIXME Тип содержит число, невозможное в базе.
|
||||
}
|
||||
if ($invis > time()) {
|
||||
$data['id'] = null;
|
||||
@ -2599,16 +2600,16 @@ function showinf_pers($id, $pas = 0, $battle = 0, $me = 0, $main = false) //FIXM
|
||||
$r .= 'Опыт: <b>' . $user['exp'] . '</b> <a href=\'exptable.html\' target=\'_blank\'>(' . $user['nextup'] . ')</a><br /></small>';
|
||||
}
|
||||
$r .= 'Уровень: ' . $user['level'] . '<br /></small>';
|
||||
if (empty($user['admin'])) {
|
||||
$r .= 'Побед: <span>' . $user['win'] . '</span></small><br />';
|
||||
$r .= 'Поражений: <span>' . $user['lose'] . '</span></small><br />';
|
||||
$r .= 'Ничьих: <span>' . $user['nich'] . '</span></small><br />';
|
||||
}
|
||||
$r .= 'Побед: <span>' . $user['win'] . '</span></small><br />';
|
||||
$r .= 'Поражений: <span>' . $user['lose'] . '</span></small><br />';
|
||||
$r .= 'Ничьих: <span>' . $user['nich'] . '</span></small><br />';
|
||||
|
||||
|
||||
if ($user['klan'] && !$pas) {
|
||||
$r .= "Клан: " . ClanImage($user['klan']) . "<br /></small>";
|
||||
} elseif ($user['klan']) {
|
||||
$clann = mysql_fetch_array(mysql_query("SELECT `name`,`short` FROM `clans` WHERE `id` = '{$user['klan']}' LIMIT 1"));
|
||||
// $clann = mysql_fetch_array(mysql_query("SELECT `name`,`short` FROM `clans` WHERE `id` = '{$user['klan']}' LIMIT 1"));
|
||||
$clann = db::c()->query('SELECT `name`,`short` FROM `clans` WHERE `id` = ?i', $user['klan'])->fetch_assoc();
|
||||
$r .= "<a href='/encicl/index.php?section=99&page=clans1&clan=" . close_dangling_tags($clann['short']) . "' target='_blank'>" . close_dangling_tags($clann['name']) . "</a> " . close_dangling_tags($user['status']) . "</small><br />";
|
||||
} elseif ($user['align'] > 0) {
|
||||
if ((int)$user['align'] == 1) {
|
||||
@ -2624,17 +2625,10 @@ function showinf_pers($id, $pas = 0, $battle = 0, $me = 0, $main = false) //FIXM
|
||||
$r .= "<b>Светлое братство</b><br /></small>";
|
||||
}
|
||||
}
|
||||
if ($user['refer'] > 0) {
|
||||
$Nastavnik = mysql_fetch_array(mysql_query("SELECT `id`, `login` FROM `users` WHERE `id` = {$user['refer']} LIMIT 1"));
|
||||
}
|
||||
if ($Nastavnik['id'] > 0) {
|
||||
$NastText = "Наставник - <a href='inf.php?{$Nastavnik['id']}' target='_blank'>{$Nastavnik['login']}</a></small><br />";
|
||||
}
|
||||
if ($pas) {
|
||||
$date1 = explode(" ", $user['borntime']);
|
||||
$date2 = explode("-", $date1[0]);
|
||||
$date3 = "" . $date2[2] . "-" . $date2[1] . "-" . $date2[0] . "";
|
||||
if (!empty($user['admin'])) $date3 = '<i>Неизвестно…</i>';
|
||||
$r .= 'Место рождения: <b>' . $user['borncity'] . '</b><br />';
|
||||
$r .= 'День рождения персонажа: ' . $date3 . '<br /></small>';
|
||||
$r .= $NastText;
|
||||
@ -2642,9 +2636,9 @@ function showinf_pers($id, $pas = 0, $battle = 0, $me = 0, $main = false) //FIXM
|
||||
if ($user['palcom'] && $pas) {
|
||||
$r .= "Сообщение от Паладинов о причине отправки в хаос/блокировке: <br /><font class=private>{$user['palcom']}</font>";
|
||||
}
|
||||
$effect = mysql_fetch_array(mysql_query("SELECT `time` FROM `effects` WHERE `owner` = '{$user['id']}' AND `type` = '4' LIMIT 1"));
|
||||
if ($effect['time']) {
|
||||
$r .= "<br />Хаос еще <i>" . timeOut($effect['time'] - time()) . "</i>";
|
||||
$ischaos = db::c()->query('SELECT `time` FROM `effects` WHERE `owner` = ?i AND `type` = 4 ', $user['id'])->fetch_assoc();
|
||||
if ($ischaos['time']) {
|
||||
$r .= "<br />Хаос еще <i>" . timeOut($ischaos['time'] - time()) . "</i>";
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user