tests
This commit is contained in:
parent
d589d28e84
commit
37785154ec
@ -941,14 +941,12 @@ HTML;
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
$r .= '<center>';
|
$r .= '<center>';
|
||||||
$r .= (!empty($user['align']) ? "<img src=\"/i/align_" . $user['align'] . ".gif\" /> " : "") . (!empty($user['klan']) ? '<img title="' . ClanImage($user['klan']) . '" src="i/klan/' . ClanImage($user['klan']) . '.gif" /> ' : "") . "<b>$user[login]</b> [";
|
if (!empty($user['align'])) $r .= "<img src='/i/align_{$user['align']}.gif' > ";
|
||||||
if (!empty($user['align'])) $r .= "<img src='/i/align_{$user['align']}.gif' >";
|
if (!empty($user['klan'])) $r .= "<img src='/i/align_" . ClanImage($user['klan']) . ".gif' > ";
|
||||||
$r .= $user['level'];
|
$r .= "<b>$user[login]</b> ";
|
||||||
$r .= "]<a href=\"inf.php?$user[id]\" target=\"_blank\"><img src=\"/i/inf.gif\" width=\"12\" height=\"11\" /></a>";
|
$r .= "[{$user['level']}] ";
|
||||||
|
|
||||||
if ($user['block']) {
|
if ($user['block']) $r .= '<br><span class="private">Персонаж заблокирован</span>';
|
||||||
$r .= "<br /><font class=\"private\">Персонаж заблокирован</font>";
|
|
||||||
}
|
|
||||||
|
|
||||||
$r .= "<table cellspacing=0 cellpadding=0><tr><td colspan=3 width=100%>";
|
$r .= "<table cellspacing=0 cellpadding=0><tr><td colspan=3 width=100%>";
|
||||||
$r .= setHP2($user['hp'], $user['maxhp']);
|
$r .= setHP2($user['hp'], $user['maxhp']);
|
||||||
@ -971,7 +969,7 @@ HTML;
|
|||||||
|
|
||||||
|
|
||||||
if ($user['kulon'] > 0) {
|
if ($user['kulon'] > 0) {
|
||||||
$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();
|
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `text`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['kulon'])->fetch_assoc();
|
||||||
if ($dress['includemagicdex'] && ($battle && $me)) {
|
if ($dress['includemagicdex'] && ($battle && $me)) {
|
||||||
$r .= showhrefmagic($dress);
|
$r .= showhrefmagic($dress);
|
||||||
} else {
|
} else {
|
||||||
@ -984,7 +982,7 @@ HTML;
|
|||||||
$r .= '</td></tr><tr><td>';
|
$r .= '</td></tr><tr><td>';
|
||||||
|
|
||||||
if ($user['weap'] > 0) {
|
if ($user['weap'] > 0) {
|
||||||
$dress = db::c()->query('SELECT `minu`, `maxu`, `name`, `img`, `duration`, `maxdur`, `ghp`, `gsila`, `glovk`, `ginta`, `gintel`, `text`, `bron1`, `bron2`, `bron3`, `bron4`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['weap'])->fetch_assoc();
|
$dress = db::c()->query('SELECT `minu`, `maxu`, `name`, `img`, `duration`, `maxdur`, `ghp`, `text`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['weap'])->fetch_assoc();
|
||||||
if ($dress['includemagicdex'] && ($battle && $me)) {
|
if ($dress['includemagicdex'] && ($battle && $me)) {
|
||||||
$r .= showhrefmagic($dress);
|
$r .= showhrefmagic($dress);
|
||||||
} else {
|
} else {
|
||||||
@ -1003,19 +1001,18 @@ HTML;
|
|||||||
if ($user['plaw']) {
|
if ($user['plaw']) {
|
||||||
$d = $user['plaw'];
|
$d = $user['plaw'];
|
||||||
if ($user['bron']) {
|
if ($user['bron']) {
|
||||||
$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();
|
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `text`, `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']) . '' : '') . '';
|
$title .= '<br />--------------------<br /><b>' . $dress['name'] . '</b>' . ((!empty($dress['text'])) ? "<br><i>{$dress['text']}</i>" : "");
|
||||||
}
|
}
|
||||||
if ($user['rybax']) {
|
if ($user['rybax']) {
|
||||||
$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();
|
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `text`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['rybax'])->fetch_assoc();
|
||||||
|
$title .= '<br />--------------------<br /><b>' . $dress['name'] . '</b>' . ((!empty($dress['text'])) ? "<br><i>{$dress['text']}</i>" : "");
|
||||||
$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']) {
|
} elseif ($user['bron']) {
|
||||||
$d = $user['bron'];
|
$d = $user['bron'];
|
||||||
if ($user['rybax']) {
|
if ($user['rybax']) {
|
||||||
$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();
|
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `text`, `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']) : "") . '"';
|
$title .= '<br />--------------------<br /><b>' . $dress['name'] . '</b>' . ((!empty($dress['text'])) ? "<br><i>{$dress['text']}</i>" : "");
|
||||||
}
|
}
|
||||||
} elseif ($user['rybax']) {
|
} elseif ($user['rybax']) {
|
||||||
$d = $user['rybax'];
|
$d = $user['rybax'];
|
||||||
@ -1023,7 +1020,7 @@ HTML;
|
|||||||
if ($main == true) {
|
if ($main == true) {
|
||||||
$title = '';
|
$title = '';
|
||||||
}
|
}
|
||||||
$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();
|
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `text`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $d)->fetch_assoc();
|
||||||
if ($dress['includemagicdex'] && $battle && $me) {
|
if ($dress['includemagicdex'] && $battle && $me) {
|
||||||
$r .= showhrefmagic($dress);
|
$r .= showhrefmagic($dress);
|
||||||
} else {
|
} else {
|
||||||
@ -1036,7 +1033,7 @@ HTML;
|
|||||||
$r .= '</td></tr><tr><td><table cellspacing=0 cellpadding=0><tr><td>';
|
$r .= '</td></tr><tr><td><table cellspacing=0 cellpadding=0><tr><td>';
|
||||||
|
|
||||||
if ($user['r1'] > 0) {
|
if ($user['r1'] > 0) {
|
||||||
$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();
|
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `text`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['r1'])->fetch_assoc();
|
||||||
if ($dress['includemagicdex'] && ($battle && $me)) {
|
if ($dress['includemagicdex'] && ($battle && $me)) {
|
||||||
$r .= showhrefmagic($dress);
|
$r .= showhrefmagic($dress);
|
||||||
} else {
|
} else {
|
||||||
@ -1049,7 +1046,7 @@ HTML;
|
|||||||
$r .= '</td><td>';
|
$r .= '</td><td>';
|
||||||
|
|
||||||
if ($user['r2'] > 0) {
|
if ($user['r2'] > 0) {
|
||||||
$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();
|
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `text`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['r2'])->fetch_assoc();
|
||||||
if ($dress['includemagicdex'] && ($battle && $me)) {
|
if ($dress['includemagicdex'] && ($battle && $me)) {
|
||||||
$r .= showhrefmagic($dress);
|
$r .= showhrefmagic($dress);
|
||||||
} else {
|
} else {
|
||||||
@ -1062,7 +1059,7 @@ HTML;
|
|||||||
$r .= '</td><td>';
|
$r .= '</td><td>';
|
||||||
|
|
||||||
if ($user['r3'] > 0) {
|
if ($user['r3'] > 0) {
|
||||||
$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();
|
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `text`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['r3'])->fetch_assoc();
|
||||||
if ($dress['includemagicdex'] && ($battle && $me)) {
|
if ($dress['includemagicdex'] && ($battle && $me)) {
|
||||||
$r .= showhrefmagic($dress);
|
$r .= showhrefmagic($dress);
|
||||||
} else {
|
} else {
|
||||||
@ -1078,7 +1075,7 @@ HTML;
|
|||||||
$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>';
|
$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) {
|
if ($user['helm'] > 0) {
|
||||||
$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();
|
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `text`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['helm'])->fetch_assoc();
|
||||||
if ($dress['includemagicdex'] && ($battle && $me)) {
|
if ($dress['includemagicdex'] && ($battle && $me)) {
|
||||||
$r .= showhrefmagic($dress);
|
$r .= showhrefmagic($dress);
|
||||||
} else {
|
} else {
|
||||||
@ -1091,7 +1088,7 @@ HTML;
|
|||||||
$r .= '</td></tr><tr><td>';
|
$r .= '</td></tr><tr><td>';
|
||||||
|
|
||||||
if ($user['perchi'] > 0) {
|
if ($user['perchi'] > 0) {
|
||||||
$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();
|
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `text`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['perchi'])->fetch_assoc();
|
||||||
if ($dress['includemagicdex'] && ($battle && $me)) {
|
if ($dress['includemagicdex'] && ($battle && $me)) {
|
||||||
$r .= showhrefmagic($dress);
|
$r .= showhrefmagic($dress);
|
||||||
} else {
|
} else {
|
||||||
@ -1104,7 +1101,7 @@ HTML;
|
|||||||
$r .= '</td></tr><tr><td>';
|
$r .= '</td></tr><tr><td>';
|
||||||
|
|
||||||
if ($user['shit'] > 0) {
|
if ($user['shit'] > 0) {
|
||||||
$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();
|
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `text`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['shit'])->fetch_assoc();
|
||||||
if ($dress['includemagicdex'] && ($battle && $me)) {
|
if ($dress['includemagicdex'] && ($battle && $me)) {
|
||||||
$r .= showhrefmagic($dress);
|
$r .= showhrefmagic($dress);
|
||||||
} else {
|
} else {
|
||||||
@ -1117,7 +1114,7 @@ HTML;
|
|||||||
$r .= '</td></tr><tr><td>';
|
$r .= '</td></tr><tr><td>';
|
||||||
|
|
||||||
if ($user['boots'] > 0) {
|
if ($user['boots'] > 0) {
|
||||||
$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();
|
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `text`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['boots'])->fetch_assoc();
|
||||||
if ($dress['includemagicdex'] && ($battle && $me)) {
|
if ($dress['includemagicdex'] && ($battle && $me)) {
|
||||||
$r .= showhrefmagic($dress);
|
$r .= showhrefmagic($dress);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user