Файл: pers.php
Строк: 171
<?php
require ('lib/core.php');
$title="$log";
require ('theme/header.php');
require ('lib/zag.php');
switch($sd){
default:
echo "<span style='color:#96856B'><div class='infob'><center><font color=969593>Статус персонажа</font></center></div><div class='persb'>";
echo '<TABLE>
<TR><TD WIDTH="20%"><TABLE><TR><TD>';
$q = mysql_query("SELECT * FROM `l2_user_item` WHERE `user`='$uid' and `id`='$user[helmet]' and `status`='odet'");
$e = mysql_num_rows($q);
if($e>='1'){
echo "";
}else{
echo "<img src='/pic/item/no_helmet.gif'><br>";
}
$q = mysql_query("SELECT * FROM `l2_user_item` WHERE `user`='$uid' and `id`='$user[armor]' and `status`='odet'");
$e = mysql_num_rows($q);
if($e>='1'){
echo "";
}else{
echo "<img src='/pic/item/no_armor.gif'><br>";
}
$q = mysql_query("SELECT * FROM `l2_user_item` WHERE `user`='$uid' and `id`='$user[down]' and `status`='odet'");
$e = mysql_num_rows($q);
if($e>='1'){
echo "";
}else{
echo "<img src='/pic/item/no_down.gif'><br>";
}
$q = mysql_query("SELECT * FROM `l2_user_item` WHERE `user`='$uid' and `id`='$user[boot]' and `status`='odet'");
$e = mysql_num_rows($q);
if($e>='1'){
echo "";
}else{
echo "<img src='/pic/item/no_boot.gif'><br>";
}
$q = mysql_query("SELECT * FROM `l2_user_item` WHERE `user`='$uid' and `id`='$user[weapon]' and `status`='odet'");
$e = mysql_num_rows($q);
if($e>='1'){
echo "";
}else{
echo "<img src='/pic/item/no_weapon.gif'><br>";
}
echo "</TD><TD ROWSPAN=3><center><div style='margin-left: 6px;'>";
$q = mysql_query("SELECT * FROM `l2_user_item` WHERE `user`='$uid' and `id`='$user[ykr]' and `status`='odet'");
$e = mysql_num_rows($q);
if($e>='1'){
echo "";
}else{
echo "<img src='/pic/item/no_ykr.gif'><br>";
}
echo "</div></center><div style='margin-top: 6px;margin-left: 6px;'><img src='/pic/avatar/".$user['race']."".$user['pol']."".$user['spec'].".gif' width='80' height='160'></div></TD><TD><TD>";
echo "<table width='99%'><tr><td>";
$q = mysql_query("SELECT * FROM `l2_user_item` WHERE `user`='$uid' and `id`='$user[necklace]' and `status`='odet'");
$e = mysql_num_rows($q);
if($e>='1'){
echo "";
}else{
echo "<img src='/pic/item/no_necklace.gif'><br>";
}
$q = mysql_query("SELECT * FROM `l2_user_item` WHERE `user`='$uid' and `id`='$user[ring1]' and `status`='odet'");
$e = mysql_num_rows($q);
if($e>='1'){
echo "";
}else{
echo "<img src='/pic/item/no_ring.gif'><br>";
}
$q = mysql_query("SELECT * FROM `l2_user_item` WHERE `user`='$uid' and `id`='$user[ring2]' and `status`='odet'");
$e = mysql_num_rows($q);
if($e>='1'){
echo "";
}else{
echo "<img src='/pic/item/no_ring.gif'><br>";
}
$q = mysql_query("SELECT * FROM `l2_user_item` WHERE `user`='$uid' and `id`='$user[ear1]' and `status`='odet'");
$e = mysql_num_rows($q);
if($e>='1'){
echo "";
}else{
echo "<img src='/pic/item/no_ear.gif'><br>";
}
$q = mysql_query("SELECT * FROM `l2_user_item` WHERE `user`='$uid' and `id`='$user[ear2]' and `status`='odet'");
$e = mysql_num_rows($q);
if($e>='1'){
echo "";
}else{
echo "<img src='/pic/item/no_ear.gif'>";
}
echo "</table></TD></TR></TABLE></TR></TABLE>";
echo " $log";
if($user['user_agent']=='pc'){echo " <img src='/pic/pc.png'>";}else{echo " <img src='/pic/mobile.png'>";}
echo "<br> <font color=969593>Ур.</font> $user[level]<br>
<font color=969593>Маг.Ур.</font> $user[maglevel]<br>";
if($user['titul']=='0'){echo " Бродяга";}
echo "</div><div class='infob'><font color=969593>Характеристики</font></div><div class='persb'>";
echo "
<table width='99%'>
<tr>
<td><font color='#969593'>Физ.Атк.<br>Физ.Защ.<br></font></td>
<td><font color='#97906E'>$user[patt]<br>$user[pdef]</font></td>
<td><font color='#969593'>Маг.Атк.<br>Маг.Защ.<br><font></td>
<td><font color='#97906E'>$user[matt]<br>$user[mdef]</font></td>
</tr>
</table></div><div class='infob'><font color=969593>Параметры</font></div><div class='persb'>";
echo "<table width='99%'><tr>
<td><font color='#969593'>СИЛ <br/>ИНТ </font></td>
<td><font color='#97906E'>$user[str] <br/>$user[int]</font></td>
<td><font color='#969593'>ЛВК <br/>МДР </font></td>
<td><font color='#97906E'>$user[dex]<br/>$user[wit]</font></td>
<td><font color='#969593'>ВЫН <br/>ДУХ </font></td>
<td><font color='#97906E'>$user[con]<br/>$user[men]</font></td></tr>
</table></div><div class='infob'><font color=969593>Общение</font></div><div class='persb'>";
echo "<table width='99%'>
<tr>
<td><font color='#969593'>Побед <br />Карма <br />PvP/PK </font></td>
<td><font color='#97906E'>$user[win]<br>$user[karma]<br />$user[pvp] / $user[pk]</font></td>
<td><font color='#969593'>Поражений <br />Репутация <br />Рекомендации </font></td>
<td><font color='#97906E'>$user[lose]<br>$user[repa]<br>$user[recomend]</font></td></tr>
</table></div>";
echo "<ul class='list'>";
echo "<li><a href='/pers/settings'>Настройки</a></li>";
echo "</ul>";
break;
case 'settings':
echo viewsession('settings');
clearsession('settings');
if(empty($_POST['submit'])){
echo "<form action='/pers/settings' method='post'>
Перевод: (<font size=1 color=grey>Предметы, монстры</font>)<br>
<select name='translate'>
<option value='1'>Русский</option>
<option value='0'>Английский</option>
</select><br>
Полоски: (<font size=1 color=grey>CP,HP,MP,VP,EXP</font>)<br>
<select name='line'>
<option value='0'>Большие</option>
<option value='1'>Маленький</option>
</select><br>
<input type='submit' name='submit' value='Сохранить'></form>";
}else{
mysql_query("UPDATE `l2_user` SET `translate`='".numb($_POST['translate'])."',`small_line`='".numb($_POST['line'])."' WHERE `id`='$uid'");
setsession('settings', "<font size=2 color=lightgreen>Настройки сохранены</font><hr>");
header('Location: /pers/settings');
exit;
}
break;
}
require ('lib/down.php');
require ('theme/foot.php');
?>