Файл: personaj.php
Строк: 529
<?php
include 'inc/mysql.php';
include 'inc/check.php';
include ("inc/head.php");
if(isset($_SESSION['auth']) && $_SESSION['auth']==1){
include 'inc/shapka.php';
echo '<div class="menudiv">';
//if($account[wap_web]=="web"){echo'<img src="/pic/brauzer/pc.png" alt="*"> ';}else{echo' <img src="/pic/brauzer/mobile.png" alt="">';}
echo 'Персонаж</div>';
echo '<div class="text">';
if($account[vip]=="0"){
echo'<font color=gold><center><img src="/pic/index/!.png" alt="*"> Активируй <img src="/pic/main/vipes.png" alt="*"> <a href="vip.php?">VIP-Статус</a>, и ты будешь получать в 3 раза больше опыта!</center></font>';
}else{
$req = mysql_query("SELECT * FROM `vip` WHERE `account`='$account[id]'");
$avto=mysql_num_rows($req);
if($avto==1){
////////////////////////////
$aro = mysql_fetch_array($req);
$aro[time]=$aro[time]-time();
if($aro[time]<60){
echo "<center><img src='pic/main/vips.png' alt='*'/> <font color=gold>VIP-Статус</font> <img src='pic/main/timereg.png' alt='*'/> осталось времени:</font> <font color=red>$aro[time] сек.</font></center>";
}elseif($aro[time]>60 and $aro[time]<3600){
$aro[time]=round($aro[time]/60);
echo "<center><img src='pic/main/vips.png' alt='*'/> <font color=gold>VIP-Статус</font> <img src='pic/main/timereg.png' alt='*'/> осталось времени:</font> <font color=red>$aro[time] мин.</font></center>";
}else{
$aro[time]=round($aro[time]/3600);
echo "<center><img src='pic/main/vips.png' alt='*'/> <font color=gold>VIP-Статус</font> <img src='pic/main/timereg.png' alt='*'/> осталось времени:</font> <font color=red>$aro[time] час.</font></center>";
}}
}
echo '<br /><br />';
if($account['status']=="gm"){
$nik = gradient(''.$account[login].'','00FF00', '00CC00');
echo"<img src='pic/main/on.png' alt='*'/> $nik (";
if($account[status]=="gm"){echo"<b><font color=00CC00>Администратор</b></font>, ";}
}else{
if($account['status']=="moder"){
$nik = gradient(''.$account[login].'','0066CC', 'AB82FF');
echo"<img src='pic/main/on.png' alt='*'/> $nik (";
if($account[status]=="moder"){echo"<b><font color=DeepSkyBlue>Модератор</b></font>, ";}
}else{
if($account['status']=="bot"){
$nik = gradient(''.$account[login].'','FFCC00', 'FF9933');
echo"<img src='pic/main/on.png' alt='*'/> $nik (";
if($account[status]=="bot"){echo"<b><font color=gold>Информатор</b></font>, ";}
}else{
echo"<img src='pic/main/on.png' alt='*'/> $account[login] (";
}}
}
if($account[sex]=="man"){
echo"<img width='16' height='16' src='pic/main/mans.png' alt='*'> Парень)";}else{
echo"<img width='16' height='16' src='pic/main/womans.png' alt='*'> Девушка)";}
if(!empty($account[klan])){
$req = mysql_query("SELECT * FROM `klan` WHERE `lider` = '$account[klan]' LIMIT 1");
$clan = mysql_fetch_array($req);
echo'<br><img src="/pic/main/gild.png" alt="*"/>'; echo" Гильдия: <a href="klan_info.php?id=$clan[id]">$clan[name]</font></a>";
}
$req = mysql_query("SELECT * FROM `klan` WHERE `lider` = '$account[id]' ");
$avto=mysql_num_rows($req);
if($avto==1){
echo ", <font color=#32CD32>Лидер гильдии</font>";
}else{
if($account[klan]>0){
echo ", <font color=#32CD32>Член гильдии</font>";
}
}
if($account[proffa_1]=="1"){
echo"<br><img src='pic/main/ucas.png' alt='*'/> Профессия: <font color=gold>Шахтёр</font>";
}
if($account[proffa_2]=="1"){
echo"<br><img src='pic/main/ucas.png' alt='*'/> Профессия: <font color=gold>Рыцарь</font>";
}
if($account[proffa_3]=="1"){
echo"<br><img src='pic/main/ucas.png' alt='*'/> Профессия: <font color=gold>Ассасин</font>";
}
if($account[proffa_4]=="1"){
echo"<br><img src='pic/main/ucas.png' alt='*'/> Профессия: <font color=gold>Торговец</font>";
}
if($account[proffa_5]=="1"){
echo"<br><img src='pic/main/ucas.png' alt='*'/> Профессия: <font color=gold>Рыболов</font>";
}
$d = time()-$account['datareg'];
echo'<br><img src="pic/main/timereg.png" alt="*"/> Время в игре: '.sec2day($d).'';
echo"<center>";
if($account[effekt_1]==1){
echo"<img width='32' height='32' src='pic/effekt/1.png' alt='*'>";
}else{
echo"<img width='32' height='32' src='pic/effekt/1_1.png' alt='*'>";
}
if($account[effekt_2]==1){
echo"<img width='32' height='32' src='pic/effekt/2.png' alt='*'>";
}else{
echo"<img width='32' height='32' src='pic/effekt/2_2.png' alt='*'>";
}
if($account[effekt_3]==1){
echo"<img width='32' height='32' src='pic/effekt/3.png' alt='*'>";
}else{
echo"<img width='32' height='32' src='pic/effekt/3_3.png' alt='*'>";
}
if($account[effekt_4]==1){
echo"<img width='32' height='32' src='pic/effekt/4.png' alt='*'>";
}else{
echo"<img width='32' height='32' src='pic/effekt/4_4.png' alt='*'>";
}
if($account[effekt_5]==1){
echo"<img width='32' height='32' src='pic/effekt/5.png' alt='*'>";
}else{
echo"<img width='32' height='32' src='pic/effekt/5_5.png' alt='*'>";
}
echo"<br>";
if($account[effekt_6]==1){
echo"<img width='32' height='32' src='pic/effekt/6.png' alt='*'>";
}else{
echo"<img width='32' height='32' src='pic/effekt/6_6.png' alt='*'>";
}
if($account[effekt_7]==1){
echo"<img width='32' height='32' src='pic/effekt/7.png' alt='*'>";
}else{
echo"<img width='32' height='32' src='pic/effekt/7_7.png' alt='*'>";
}
if($account[effekt_8]==1){
echo"<img width='32' height='32' src='pic/effekt/8.png' alt='*'>";
}else{
echo"<img width='32' height='32' src='pic/effekt/8_8.png' alt='*'>";
}
echo"</center>";
if($account[sex]=="man"){
$req = mysql_query("SELECT * FROM `inventar` WHERE `account` = '$account[id]' and `tip`='helmet' and `satus`='on'");
$avto=mysql_num_rows($req);
if($avto==1){
$mag = mysql_fetch_array($req);
echo'<div style="text-align:center;padding:3px;"><div style="width:36px;display:inline-block;vertical-align:top"><div style="padding-bottom:5px;"><img src="pic/shmot/'.$mag[img].'" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div>';
}else{
echo'<div style="text-align:center;padding:3px;"><div style="width:36px;display:inline-block;vertical-align:top"><div style="padding-bottom:5px;"><img src="pic/shmot/helms.png" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div>';
}
$req = mysql_query("SELECT * FROM `inventar` WHERE `account` = '$account[id]' and `tip`='tors' and `satus`='on'");
$avto=mysql_num_rows($req);
if($avto==1){
$mag = mysql_fetch_array($req);
echo'<div style="padding-bottom:5px;padding-top:5px"><img src="pic/shmot/'.$mag[img].'" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div>';
}else{
echo'<div style="padding-bottom:5px;padding-top:5px"><img src="pic/shmot/body.png" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div>';
}
$req = mysql_query("SELECT * FROM `inventar` WHERE `account` = '$account[id]' and `tip`='ruki' and `satus`='on'");
$avto=mysql_num_rows($req);
if($avto==1){
$mag = mysql_fetch_array($req);
echo'<div style="padding-bottom:5px;padding-top:5px"><img src="pic/shmot/'.$mag[img].'" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div>';
}else{
echo'<div style="padding-bottom:5px;padding-top:5px"><img src="pic/shmot/ruki.png" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div>';
}
$req = mysql_query("SELECT * FROM `inventar` WHERE `account` = '$account[id]' and `tip`='nogi' and `satus`='on'");
$avto=mysql_num_rows($req);
if($avto==1){
$mag = mysql_fetch_array($req);
echo'<div style="padding-bottom:5px;padding-top:5px"><img src="pic/shmot/'.$mag[img].'" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div></div>';
}else{
echo'<div style="padding-bottom:5px;padding-top:5px"><img src="pic/shmot/sapogi.png" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div></div>';
}
echo'<div style="width:130px;display:inline-block;vertical-align:top"><div style="border:1px solid #131313;padding:1px;background:#232323;border-radius:3px;display:inline-block;"><img width="70" height="159" src="pic/avatar/paren.png" alt="" style="border:1px solid #1b1b1b;border-radius:3px;"/></div></div>';
$req = mysql_query("SELECT * FROM `inventar` WHERE `account` = '$account[id]' and `tip`='weapon' and `satus`='on'");
$avto=mysql_num_rows($req);
if($avto==1){
$mag = mysql_fetch_array($req);
echo'<div style="width:36px;display:inline-block;vertical-align:top"><div style="padding-bottom:5px"><img src="pic/shmot/'.$mag[img].'" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div>';
}else{
echo'<div style="width:36px;display:inline-block;vertical-align:top"><div style="padding-bottom:5px"><img src="pic/shmot/weapon.png" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div>';
}
$req = mysql_query("SELECT * FROM `inventar` WHERE `account` = '$account[id]' and `tip`='shit' and `satus`='on'");
$avto=mysql_num_rows($req);
if($avto==1){
$mag = mysql_fetch_array($req);
echo'<div style="padding-bottom:5px;padding-top:5px"><img src="pic/shmot/'.$mag[img].'" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div>';
}else{
echo'<div style="padding-bottom:5px;padding-top:5px"><img src="pic/shmot/shit.png" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div>';
}
$req = mysql_query("SELECT * FROM `inventar` WHERE `account` = '$account[id]' and `tip`='kolco' and `satus`='on'");
$avto=mysql_num_rows($req);
if($avto==1){
$mag = mysql_fetch_array($req);
echo'<div style="padding-bottom:5px;padding-top:5px"><img src="pic/shmot/'.$mag[img].'" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div>';
}else{
echo'<div style="padding-bottom:5px;padding-top:5px"><img src="pic/shmot/poyas.png" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div>';
}
$req = mysql_query("SELECT * FROM `inventar` WHERE `account` = '$account[id]' and `tip`='amulet' and `satus`='on'");
$avto=mysql_num_rows($req);
if($avto==1){
$mag = mysql_fetch_array($req);
echo'<div style="padding-bottom:5px;padding-top:5px"><img src="pic/shmot/'.$mag[img].'" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div></div></div>';
}else{
echo'<div style="padding-bottom:5px;padding-top:5px"><img src="pic/shmot/amulet.png" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div></div></div>';
}
}
if($account[sex]=="woman"){
$req = mysql_query("SELECT * FROM `inventar` WHERE `account` = '$account[id]' and `tip`='helmet' and `satus`='on'");
$avto=mysql_num_rows($req);
if($avto==1){
$mag = mysql_fetch_array($req);
echo'<div style="text-align:center;padding:3px;"><div style="width:36px;display:inline-block;vertical-align:top"><div style="padding-bottom:5px;"><img src="pic/shmot/'.$mag[img].'" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div>';
}else{
echo'<div style="text-align:center;padding:3px;"><div style="width:36px;display:inline-block;vertical-align:top"><div style="padding-bottom:5px;"><img src="pic/shmot/helms.png" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div>';
}
$req = mysql_query("SELECT * FROM `inventar` WHERE `account` = '$account[id]' and `tip`='tors' and `satus`='on'");
$avto=mysql_num_rows($req);
if($avto==1){
$mag = mysql_fetch_array($req);
echo'<div style="padding-bottom:5px;padding-top:5px"><img src="pic/shmot/'.$mag[img].'" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div>';
}else{
echo'<div style="padding-bottom:5px;padding-top:5px"><img src="pic/shmot/body.png" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div>';
}
$req = mysql_query("SELECT * FROM `inventar` WHERE `account` = '$account[id]' and `tip`='ruki' and `satus`='on'");
$avto=mysql_num_rows($req);
if($avto==1){
$mag = mysql_fetch_array($req);
echo'<div style="padding-bottom:5px;padding-top:5px"><img src="pic/shmot/'.$mag[img].'" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div>';
}else{
echo'<div style="padding-bottom:5px;padding-top:5px"><img src="pic/shmot/ruki.png" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div>';
}
$req = mysql_query("SELECT * FROM `inventar` WHERE `account` = '$account[id]' and `tip`='nogi' and `satus`='on'");
$avto=mysql_num_rows($req);
if($avto==1){
$mag = mysql_fetch_array($req);
echo'<div style="padding-bottom:5px;padding-top:5px"><img src="pic/shmot/'.$mag[img].'" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div></div>';
}else{
echo'<div style="padding-bottom:5px;padding-top:5px"><img src="pic/shmot/sapogi.png" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div></div>';
}
echo'<div style="width:130px;display:inline-block;vertical-align:top"><div style="border:1px solid #131313;padding:1px;background:#232323;border-radius:3px;display:inline-block;"><img width="70" height="159" src="pic/avatar/dewushka.png" alt="" style="border:1px solid #1b1b1b;border-radius:3px;"/></div></div>';
$req = mysql_query("SELECT * FROM `inventar` WHERE `account` = '$account[id]' and `tip`='weapon' and `satus`='on'");
$avto=mysql_num_rows($req);
if($avto==1){
$mag = mysql_fetch_array($req);
echo'<div style="width:36px;display:inline-block;vertical-align:top"><div style="padding-bottom:5px"><img src="pic/shmot/'.$mag[img].'" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div>';
}else{
echo'<div style="width:36px;display:inline-block;vertical-align:top"><div style="padding-bottom:5px"><img src="pic/shmot/weapon.png" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div>';
}
$req = mysql_query("SELECT * FROM `inventar` WHERE `account` = '$account[id]' and `tip`='shit' and `satus`='on'");
$avto=mysql_num_rows($req);
if($avto==1){
$mag = mysql_fetch_array($req);
echo'<div style="padding-bottom:5px;padding-top:5px"><img src="pic/shmot/'.$mag[img].'" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div>';
}else{
echo'<div style="padding-bottom:5px;padding-top:5px"><img src="pic/shmot/shit.png" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div>';
}
$req = mysql_query("SELECT * FROM `inventar` WHERE `account` = '$account[id]' and `tip`='kolco' and `satus`='on'");
$avto=mysql_num_rows($req);
if($avto==1){
$mag = mysql_fetch_array($req);
echo'<div style="padding-bottom:5px;padding-top:5px"><img src="pic/shmot/'.$mag[img].'" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div>';
}else{
echo'<div style="padding-bottom:5px;padding-top:5px"><img src="pic/shmot/poyas.png" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div>';
}
$req = mysql_query("SELECT * FROM `inventar` WHERE `account` = '$account[id]' and `tip`='amulet' and `satus`='on'");
$avto=mysql_num_rows($req);
if($avto==1){
$mag = mysql_fetch_array($req);
echo'<div style="padding-bottom:5px;padding-top:5px"><img src="pic/shmot/'.$mag[img].'" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div></div></div>';
}else{
echo'<div style="padding-bottom:5px;padding-top:5px"><img src="pic/shmot/amulet.png" alt="" style="border:1px solid #131313;border-radius:2px;height:32px;width:32px"/></div></div></div>';
}
}
echo"<center>";
$cop=5;
$req = mysql_query("SELECT * FROM `podarok_ok` WHERE `usr` = '$account[id]' ORDER BY id DESC LIMIT $cop ");
////////////////////////////
$avto=mysql_num_rows($req);
if($avto>=1){
While($clan5 = mysql_fetch_array($req))
{
echo"<a href='may_podarok.php'><img width='32' height='32' src='http://$_SERVER[SERVER_NAME]$clan5[podarok]' alt='*'/></a>";
}}
echo"</center>";
$nows=$account[hp];
$maxs=$account[hpall];
$widths = round(100/($maxs/$nows));
$nows1=$account[mp];
$maxs1=$account[mpall];
$widths1 = round(100/($maxs1/$nows1));
include ("inc/exp.php");
echo'Здоровье: <img src="/pic/main/hp.png" alt="*"/> '.$nows.'/'.$maxs.' <br>
<div style="background:#8B0000;height:2px;width:100%;padding:0;margin:6px 0;font-size:2px"><div style="background:#FF4040; height:2px; width:'.$widths.'%;"></div></div>
Бодрячок: <img src="/pic/main/mp.png" alt="*"/> '.$nows1.'/'.$maxs1.' <br>
<div style="background:#666666;height:2px;width:100%;padding:0;margin:6px 0;font-size:2px"><div style="background:DeepSkyBlue; height:2px; width:'.$widths1.'%;"></div></div>
Опыт: <img width="20" height="20" src="/pic/main/xp.png" alt="*"/> '.$exp.' %<br>
<div style="background:#006400;height:2px;width:100%;padding:0;margin:6px 0;font-size:2px"><div style="background:#00FF00; height:2px; width:'.$exp.'%;"></div></div>';
echo '</div><br />';
echo '<center>';
echo '<a href="my_persinfa.php" class="menu_j"><img src="pic/main/inform.png" alt="" style="border:1px solid #131313;border-radius:2px;height:16px;width:16px"/> Статистика героя</a>';
echo '<a href="treninges.php" class="menu_j"><img src="pic/main/trening.png" alt="" style="border:1px solid #131313;border-radius:2px;height:16px;width:16px"/> Тренировка</a>';
echo '<a href="sumka.php" class="menu_j"><img src="pic/main/sumka.png" alt="" style="border:1px solid #131313;border-radius:2px;height:16px;width:16px"/> Инвентарь</a>';
echo '<a href="may_podarok.php" class="menu_j"><img src="pic/main/podarok.png" alt="" style="border:1px solid #131313;border-radius:2px;height:16px;width:16px"/> Подарки</a>';
echo '<a href="talant.php" class="menu_j"><img src="pic/main/talant.png" alt="" style="border:1px solid #131313;border-radius:2px;height:16px;width:16px"/> Таланты</a>';
echo '<a href="anketa.php" class="menu_j"><img src="pic/main/anketa.png" alt="" style="border:1px solid #131313;border-radius:2px;height:16px;width:16px"/> Анкета</a>';
echo '<a href="mails.php?act=in" class="menu_j"><img src="pic/main/mail.png" alt="" style="border:1px solid #131313;border-radius:2px;height:16px;width:16px"/> Почта</a>';
}else{
header ("Location: index.php"); exit;
}
include 'inc/nogi.php';
?>