Вход Регистрация
Файл: gamele.ru/inc/mpers.php
Строк: 537
<?php
if(!empty($_GET['im']) and $_SESSION['user']['pos']==1){
echo
'<table cellpadding="0" cellspacing="0" border="0" width="100%">
  <tr>
    <td valign="top"><img src="http://image.gamele.ru/1x1.gif" width="10" height="10" /></td>
    <td valign="top" width="100%"><table cellpadding="0" cellspacing="0" border="0" width="100%">
      <tr>
        <td><img src="http://image.gamele.ru/1x1.gif" width="1" height="10" /></td>
      </tr>
      <tr>
        <td><div id="transfer2"><img src="http://image.gamele.ru/1x1.gif" width="1" height="1" /></div></td>
      </tr>
      <tr>
        <td><a href="/main.php?all=1"><img src=http://image.gamele.ru/gameplay/invent/0.gif width=44 height=53 onmouseover="tooltip(this,'
<b>Вещи</b>')" onmouseout="hide_info(this)" class=cath border=0></a><a href="#"><img src=http://image.gamele.ru/gameplay/invent/6.gif width=41 height=53 onmouseover="tooltip(this,'<b>Эликсиры</b>')" onmouseout="hide_info(this)" class=cath border=0></a><a href="/main.php?im=2"><img src=http://image.gamele.ru/gameplay/invent/1.gif width=41 height=53 onmouseover="tooltip(this,'<b>Алхимия</b>')" onmouseout="hide_info(this)" class=cath border=0></a><a href="/main.php?im=3"><img src=http://image.gamele.ru/gameplay/invent/2.gif width=41 height=53 onmouseover="tooltip(this,'<b>Рыбалка</b>')" onmouseout="hide_info(this)" class=cath border=0></a><a href="#"><img src=http://image.gamele.ru/gameplay/invent/3.gif width=41 height=53 onmouseover="tooltip(this,'<b>Ресурсы</b>')" onmouseout="hide_info(this)" class=cath border=0></a><img src=http://image.gamele.ru/gameplay/invent/4.gif width=41 height=53 onmouseover="tooltip(this,'<b>Руны</b>')" onmouseout="hide_info(this)" class=cath border=0><img src=http://image.gamele.ru/gameplay/invent/5.gif width=41 height=53 onmouseover="tooltip(this,'<b>Магия</b>')" onmouseout="hide_info(this)" class=cath border=0><a href="/main.php?im=7"><img src=http://image.gamele.ru/gameplay/invent/7.gif width=41 height=53 onmouseover="tooltip(this,'<b>Журнал заданий</b>')" onmouseout="hide_info(this)" class=cath border=0></a></td>
      </tr>
      <tr>
        <td><img src="http://image.gamele.ru/1x1.gif" width="1" height="4" /></td>
      </tr>
      <tr>
        <td bgcolor="#CCCCCC" width="100%">'
;
        switch(
$_GET['im']){
            case
'2':
        echo
'<table cellpadding=5 cellspacing=1 border=0 width=100%><FORM action="main.php" method="GET"><tr><td width=25%></td><td class=travma colspan=2 align=center width=50%><B>АЛХИМИЧЕСКИЙ ИНВЕНТАРЬ</B></td><td align=right width=25%><SELECT class=weaponch name="subact"><option value=0> выбрать действие </option><option value=1> выкинуть</option></SELECT> <input type=submit value="OK" class=weaponch></td></tr><input type="hidden" name="get_id" value="6"><input type="hidden" name="act" value="4"><input type="hidden" name="vcode" value="faf39e5b3eef9051c85fc3df4eab2c2d"><tr>';
        
$alhim=mysql_query('SELECT `invent`.*,`items`.* FROM `items` INNER JOIN `invent` ON `items`.`id` = `invent`.`protype` WHERE `pl_id`="'.$player['id'].'" AND `items`.`type`="w71"');
        
$alhi = (mysql_num_rows($alhim));
        if(
$alhi>0){
        
$i=0;
        while(
$alhims mysql_fetch_assoc($alhim)) {
            
$ItemToOne[$alhims['id']+$alhims['arenda']+$alhims['rassrok']][md5($iz.'/'.$alhims['dolg'])] += 1;
if(
$ItemToOne[$alhims['id']+$alhims['arenda']+$alhims['rassrok']][md5($iz.'/'.$alhims['dolg'])] == 1){
$count mysql_num_rows(mysql_query("SELECT `invent`.*, `items`.* FROM `items` INNER JOIN `invent` ON `items`.`id` = `invent`.`protype` WHERE `pl_id`='".$player['id']."' and `items`.`type`='w71' and `items`.`id`='".$alhims['id']."' and `invent`.`bank`='0'"));
$sum=$alhims['massa']*$count;
            
$i++;
                  if(
$i==5){
                      echo
'<tr>';
                  }
        echo
'<td bgcolor=#FFFFFF width=25% align=center><font class=travma><b>'.$alhims['ItemName'].'</b><br>В наличии: '.$count.'<br>Масса: '.$sum.'<br><img src=http://image.gamele.ru/1x1.gif width=1 height=5><br><img src=http://image.gamele.ru/tools/'.$alhims['img'].'><br><img src=http://image.gamele.ru/1x1.gif width=1 height=5><BR><input type=checkbox name="'.$alhims['ItemName'].'" value="'.$alhims['protype'].'"></td>';
        }}}else{
            echo
'<td class="travma" colspan="8" align="center" bgcolor="#FFFFFF"><b><font color="#336699">НЕТ В НАЛИЧИИ</font></b></td>';
            }
        echo
'
</FORM></table></td></tr><tr><td><img src=http://image.gamele.ru/1x1.gif width=1 height=4></td></tr><tr><td bgcolor=#CCCCCC width=100%><table cellpadding=5 cellspacing=1 border=0 width=100%><FORM action="main.php" method="GET" id="FRES"><tr><td colspan=2 width=20%></td><td class=travma colspan=5 align=center width=60%><B>АЛХИМИЧЕСКИЕ РЕСУРСЫ</B></td><td align=right width=20%><SELECT class=weaponch name="subact" id="subact"><option value=0> выбрать действие </option><option value=1> выкинуть</option></SELECT> </td></tr>'
;
$invent=mysql_query('SELECT `invent`.*,`items`.* FROM `items` INNER JOIN `invent` ON `items`.`id` = `invent`.`protype` WHERE `pl_id`="'.$player['id'].'" AND `items`.`type`="w66" and `items`.`slot`!="3"');
        
$invents = (mysql_num_rows($invent));
        if(
$invents>0){
            echo
'<tr><td bgcolor=#FCFAF3 width=5% align=center><input type=checkbox DISABLED></td><td bgcolor=#FCFAF3 width=15% class=travma align=center><B>Наличие</B></td><td colspan=2 bgcolor=#FCFAF3 class=travma align=center><B>Использовать</B></td><td bgcolor=#FCFAF3 width=25% class=travma align=center><B>Ресурс</B></td><td bgcolor=#FCFAF3 width=10% class=travma align=center><B>ER/масса</B></td><td bgcolor=#FCFAF3 width=25% class=travma align=center><B>Склад</B></td><td bgcolor=#FCFAF3 width=20% class=travma align=center><B>Рост</B></td></tr>';
        
$i=0;
        while(
$inven mysql_fetch_assoc($invent)) {
            
$ItemToOne[$inven['id']+$inven['arenda']+$inven['rassrok']][md5($iz.'/'.$inven['dolg'])] += 1;
if(
$ItemToOne[$inven['id']+$inven['arenda']+$inven['rassrok']][md5($iz.'/'.$inven['dolg'])] == 1){
$count mysql_num_rows(mysql_query("SELECT `invent`.*, `items`.* FROM `items` INNER JOIN `invent` ON `items`.`id` = `invent`.`protype` WHERE `pl_id`='".$player['id']."' and `items`.`type`='w66' and `items`.`id`='".$inven['id']."' and `items`.`slot`!='3'"));
$res mysql_fetch_assoc(mysql_query("SELECT * FROM `res_birja` WHERE `protype` = '".$inven['protype']."'"));
$sum=$inven['massa']*$count;
        echo
'<tr><td bgcolor=#FFFFFF width=5% align=center><input type=checkbox name="res_10" value="10"></td><td bgcolor=#FFFFFF width=15% class=travma align=center>'.number_format($sum3'.''').'</td><td bgcolor=#FFFFFF align=center><input type=text size=3 class=weaponch name="use_10" value="1"></td><td bgcolor=#FFFFFF align=center><img src=http://image.gamele.ru/weapon/'.$inven['img'].'></td><td bgcolor=#FFFFFF width=25% class=travma align=center><B>'.$inven['ItemName'].'</B><BR><font color=#008800><B>Срок годности:</B> '.date("d.m.y H:i",$inven['death']).'</font></td><td bgcolor=#FFFFFF width=10% class=travma align=center>'.number_format($inven['price'], 2'.''').'</td><td bgcolor=#FFFFFF width=25% class=travma align=center>'.$res['min_sclad'].' / '.$res['max_sclad'].'</td><td bgcolor=#FFFFFF width=20% class=travma align=center><B><img src=http://image.gamele.ru/1x1.gif width=10 height=14>'.number_format($res['spros'], 2'.''').'%</B></td></tr>';
        }}}else{
            echo
'<td class="travma" colspan="8" align="center" bgcolor="#FFFFFF"><b><font color="#336699">НЕТ В НАЛИЧИИ</font></b></td>';
            }
echo
'</FORM></table></td></tr>';
    
        break;
            case
'3':
                 echo
'<table cellpadding=5 cellspacing=1 border=0 width=100%><FORM action="main.php" method="GET"><tr><td width=25%></td><td class=travma colspan=2 align=center width=50%><B>РЫБНЫЙ ИНВЕНТАРЬ</B></td><td align=right width=25%><SELECT class=weaponch name="subact"><option value=0> выбрать действие </option><option value=1> выкинуть</option></SELECT> <input type=submit value="OK" class=weaponch></td></tr><input type="hidden" name="get_id" value="6"><input type="hidden" name="act" value="4"><input type="hidden" name="vcode" value="faf39e5b3eef9051c85fc3df4eab2c2d"><tr>';
                  
$priman=mysql_query('SELECT `invent`.*,`items`.* FROM `items` INNER JOIN `invent` ON `items`.`id` = `invent`.`protype` WHERE `pl_id`="'.$player['id'].'" AND `items`.`type`="w69" AND `invent`.`used`="0" AND `invent`.`bank`="0" AND `items`.`slot`!="3"');
if(
mysql_num_rows($priman)>0){
            
$i=0;
               while(
$ITEM mysql_fetch_assoc($priman)) {
                  
$ItemToOne[$ITEM['id']+$ITEM['arenda']+$ITEM['rassrok']][md5($iz.'/'.$ITEM['dolg'])] += 1;
if(
$ItemToOne[$ITEM['id']+$ITEM['arenda']+$ITEM['rassrok']][md5($iz.'/'.$ITEM['dolg'])] == 1){
$count mysql_num_rows(mysql_query("SELECT `invent`.*, `items`.* FROM `items` INNER JOIN `invent` ON `items`.`id` = `invent`.`protype` WHERE `pl_id`='".$player['id']."' and `items`.`type`='w69' and `dolg`='".$ITEM['dolg']."' and `iznos`='".$ITEM['iznos']."' and `items`.`id`='".$ITEM['id']."' and `invent`.`bank`='0'"));
$sum=$ITEM['massa']*$count;
                  
$i++;
                  if(
$i==5){
                      echo
'<tr>';
                  }
    echo
'<td bgcolor=#FFFFFF width=25% align=center><font class=travma><b>'.$ITEM['ItemName'].'</b><br>В наличии: '.$count.'<br>Масса: '.$sum.'<br><img src=http://image.gamele.ru/1x1.gif width=1 height=5><br><img src=http://image.gamele.ru/weapon/'.$ITEM['img'].'><br><img src=http://image.gamele.ru/1x1.gif width=1 height=5><BR><input type=checkbox name="'.$ITEM['ItemName'].'" value="'.$ITEM['protype'].'"></td>';
        }}}else{
            echo
'<td class="travma" colspan="8" align="center" bgcolor="#FFFFFF"><b><font color="#336699">НЕТ В НАЛИЧИИ</font></b></td>';
            }
echo
'</FORM></table></td></tr><tr><td><img src=http://image.gamele.ru/1x1.gif width=1 height=4></td></tr><tr><td bgcolor=#CCCCCC width=100%><table cellpadding=5 cellspacing=1 border=0 width=100%><FORM action="main.php" method="GET" id="FRES"><tr><td colspan=2 width=20%></td><td class=travma colspan=5 align=center width=60%><B>АЛХИМИЧЕСКИЕ РЕСУРСЫ</B></td><td align=right width=20%><SELECT class=weaponch name="subact" id="subact"><option value=0> выбрать действие </option><option value=1> выкинуть</option></SELECT> </td></tr>';
echo
'<tr><td bgcolor=#FCFAF3 width=5% align=center><input type=checkbox DISABLED></td><td bgcolor=#FCFAF3 width=15% class=travma align=center><B>Наличие</B></td><td colspan=2 bgcolor=#FCFAF3 class=travma align=center><B>Использовать</B></td><td bgcolor=#FCFAF3 width=25% class=travma align=center><B>Ресурс</B></td><td bgcolor=#FCFAF3 width=10% class=travma align=center><B>ER/масса</B></td><td bgcolor=#FCFAF3 width=25% class=travma align=center><B>Склад</B></td><td bgcolor=#FCFAF3 width=20% class=travma align=center><B>Рост</B></td></tr><tr><td bgcolor=#FFFFFF width=5% align=center><input type=checkbox name="res_10" value="10"></td><td bgcolor=#FFFFFF width=15% class=travma align=center>1.000</td><td bgcolor=#FFFFFF align=center><input type=text size=3 class=weaponch name="use_10" value="1"></td><td bgcolor=#FFFFFF align=center><img src=http://image.gamele.ru/resources/10.gif width=60 height=60></td><td bgcolor=#FFFFFF width=25% class=travma align=center><B>Верхоплавка</B><BR><font color=#008800><B>Срок годности:</B> 02.04.2013 04:07</font></td><td bgcolor=#FFFFFF width=10% class=travma align=center>1.34</td><td bgcolor=#FFFFFF width=25% class=travma align=center>0 / 0</td><td bgcolor=#FFFFFF width=20% class=travma align=center><B><img src=http://image.gamele.ru/1x1.gif width=10 height=14>0.00%</B></td></tr>';
echo
'</FORM></table></td></tr>';
            break;
        case
'7':
        echo
'<table cellpadding="5" cellspacing="1" border="0" width="100%">';
        
$query mysql_query("SELECT * FROM `quest_completed` WHERE `usr_id`='".$player['id']."' and `que_st`='0'");
        if(
mysql_num_rows($query)>0){
        while(
$row mysql_fetch_assoc($query)){
         echo
' <tr>
            <td bgcolor="#FFFFFF"><img src="http://image.gamele.ru/gameplay/faces/'
.$row['que_face'].'" width="130" height="130" border="0" /></td>
            <td width="100%" class="nickname" bgcolor="#FFFFFF"><font class="travma">Задание:</font><br />
              <b>'
.$row['que_name'].'</b><br />
              '
.$row['que_desc'].' <br />';
              if(!empty(
$row['que_query'])){
                    echo
'<b>Ресурсы:</b> ';
                    
$ResMass explode("@",$row['que_query']);
                    
$ResultRes '';
                    for(
$i=0;$i<count($ResMass);$i++){
                        
$Ressource explode(";",$ResMass[$i]);
                        
$ResultRes .= mysql_result(mysql_query("SELECT `name` FROM `items` WHERE `id`='".$Ressource[0]."'"),0).' ('.$Ressource[1].'), ';
                    }
                    echo 
substr($ResultRes,0,strlen($ResultRes)-2).'.<br />';
              }
             echo
' <font class="travma"><font color="#008800"><b>Время выполнения:</b> '.date("d.m.Y H.i",$row['que_time_start']).' - '.date("d.m.Y H.i",$row['que_time_finish']).'</font></font></td>
          </tr>'
;
        }
        }else{
            echo
'<tr><td bgcolor=#F5F5F5 align=center><font class=inv><b>Нет активных заданий</b></font></td></tr>';    
        }
        echo
'</table>';
        break;
        default:
            echo
'<table cellpadding="5" cellspacing="1" border="0" width="100%"><tr><td bgcolor="#FFFFFF"><center><b>Мы над этим работаем...</b></center></td></tr></table>';
        break;
        }
        echo
'</td>
      </tr>
      <tr>
        <td><img src="http://image.gamele.ru/1x1.gif" width="1" height="3" /></td>
      </tr>
      <tr>
        <td align="right"><script language="JavaScript" type="text/javascript">

document.write(view_t());

</script></td>
      </tr>
    </table></td>
    <td valign="top"><img src="http://image.gamele.ru/1x1.gif" width="10" height="10" /></td>
  </tr>
  <tr>
    <td colspan="5"><img src="http://image.gamele.ru/1x1.gif" width="1" height="3" /></td>
  </tr>
</table>'
;
}else{
?>
<table cellpadding=0 cellspacing=0 border=0 width=100%>
<tr><td valign=top><img src=http://image.gamele.ru/1x1.gif width=10 height=10></td>
<td valign=top width=200>
<table cellpadding=0 cellspacing=0 border=0 width=500>
<tr><td colspan=6></td><td><img src=http://image.gamele.ru/1x1.gif width=300 height=10></td></tr>
<tr>
<SCRIPT language="JavaScript">
<?php
echo'slots_'.(($_SESSION['user']['pos']==1)?'inv':'pla').'("'.$player['obraz'].'","'.$player['login'].'","';
slotwiev($player['id'],$_SESSION['user']['pos']);
echo
'",115);';
?>
</SCRIPT>
<td width=5 valign=top rowspan=2><img src=http://image.gamele.ru/1x1.gif width=5 height=1></td>
<td valign=top width=500 rowspan=2>
<table cellpadding=0 cellspacing=0 border=0 width=100%>
<tr><td>
<?php
include("inc/stats.php");
?>
<table class="infoblock" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td class="left"></td><td class="layer"><div></div></td><td class="center" style="width:232px;"><div class="top_name_right">Ваши Счета</div><div class="chars">
<div class="char_item"><div>ER:</div><span class="tb"><b><?php echo round($player['nv'], 2); ?></b><u><img src="http://image.gamele.ru/rb.png" onMouseOver="tooltip(this,'<b>ER<?php
if($player['level']>and $player['finblock']<time()){
    echo
"Нажмите чтоб передать ER</b>')" onClick="transferform('0','0','Игровую валюту','".scode()."','0','0','0','0')";
}else{
    echo
"</b>')";    
}
?>" onMouseOut="hide_info(this)"></u></span></div><div class="underline"></div>

<?php
if(!empty($player['dnv'])){
    echo 
"<div class='char_item'><div>$:</div><span class='tb'><b>".number_format($player['dnv'], 2'.''')."</b><u><img src="http://image.gamele.ru/hr.png"></u></span></div><div class='underline'></div>";
}
if(!empty(
$player['dhr'])){
    echo 
"<div class='char_item'><div>DLE:</div><span class='tb'><b>".number_format($player['dhr'], 2'.''')."</b><u><img src="http://image.gamele.ru/dhr.png" onmouseover="tooltip(this,'<b>DLE".(($player['dhr']>='1')?"<br />Нажмите чтоб передать DLE</b>')" onClick="m_form('".scode()."')"":"')"")." onmouseout="hide_info(this)"></u></span></div><div class='underline'></div>";
}
if((
$player['clan_id']=='watchers' or $player['clan_id']=='admin') and (!empty($player['hpv']))){
    echo 
"<div class='char_item'><div>DPV:</div><span class='tb'><b>".number_format($player['hpv'], 2'.''')."</b><u><img src="http://image.gamele.ru/hpv.png"></u></span></div><div class='underline'></div>";
}
if(!empty(
$player['act'])){
    echo 
"<div class='char_item'><div>Акции:</div><span class='tb'><b>".$player['act']."</b><u><img src="http://image.gamele.ruact.png"></u></span></div><div class='underline'></div>";
}
?>

</div></td><td class="layer"><div></div></td><td class="right"></td></tr><tr><td class="bot_left"></td><td class="bot_layer"><div></div></td><td class="bot_center"></td><td class="bot_layer"><div></div></td><td class="bot_right"></td></tr></tbody></table><br>
<?php
include("inc/exp.php");
include(
"inc/wins.php");
include(
"inc/modif.php");
?></tr></table></td></tr><tr valign="top"><td colspan="5" id="EffePl"><img src=http://image.gamele.ru/1x1.gif width=1 height=10><br></td></tr><script>var cureff = [<?php
$Query 
mysql_query("SELECT * FROM `effects` WHERE `userid` = '".$player['id']."' and `time`>'".time()."'");
if(
mysql_num_rows($Query)>0){
    
$s '';
    while(
$row mysql_fetch_assoc($Query)){
        
$s.="[".$row['eff_id'].",".($row['time']-time()).",'".$row['f_params']."'],";
    }
    echo 
substr($s,0,strlen($s)-1);
}
?>]; effects_view();</script><tr><td colspan=5 valign=top align=center>
<?php if($_SESSION['user']['pos']==1){?>
<table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td><img src=http://image.gamele.ru/1x1.gif width=1 height=10></td></tr></table></td></tr><tr><td colspan=7 width=100%><table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td><input type=button class=invbut onClick="compl_f('<?php echo scode();?>')" value="Запомнить комплект"> <input type=button class=invbut onClick="javascript: location='main.php?post_id=57&act=3&vcode=<?php echo scode(); ?>'" value="Снять все вещи"><br><img src=http://image.gamele.ru/1x1.gif width=1 height=10></td></tr><tr><td align=center><div id=complect><img src=http://image.gamele.ru/1x1.gif width=1 height=1></div></td></tr><tr><td width=100%><table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td bgcolor=#CCCCCC><table cellpadding=5 cellspacing=1 border=0 width=100%><tr><td bgcolor=#F0F0F0 colspan=3 align=center class=freemain><B>Ваши комплекты</B></td></tr>
<SCRIPT language="JavaScript">
<?php
db_query
('SELECT * FROM pcompl WHERE uid='.AP.$player[id].AP.'');
while (
$row db_fetch()) {
echo 
"compl_view("$row[name]","$row[id]","".scode()."");";
}
?>
</SCRIPT>
</table></td></tr></table></td></tr></table>
<?php }?>

</td></tr></table></td><td valign=top><img src=http://image.gamele.ru/1x1.gif width=5 height=10></td>
<td valign=top width=100%>
<table cellpadding=0 cellspacing=0 border=0 width=100%>
<tr><td><img src=http://image.gamele.ru/1x1.gif width=1 height=10></td></tr>
<tr><td><div id=transfer><img src=http://image.gamele.ru/1x1.gif width=1 height=1></div><div id=doctordiv><img src=http://image.gamele.ru/1x1.gif width=1 height=1></div></td></tr>
<?php
if($_SESSION['user']['pos']==1){
    include(
"inc/inv.php");
}else{
    include(
"inc/mselect.php");
    
$_GET['mselect'] = isset($_GET['mselect']) ? (int)$_GET['mselect'] : 0;
    include(
"inc/mpr/".$_GET['mselect'].".php");
}
?>
<tr><td><img src=http://image.gamele.ru/1x1.gif width=1 height=3></td></tr>
<tr><td align=right>
<SCRIPT language="JavaScript">
counterview("free");
</SCRIPT>
</td></tr>
</table></td><td valign=top><img src=http://image.gamele.ru/1x1.gif width=10 height=10></td></tr>
<tr><td colspan=5><img src=http://image.gamele.ru/1x1.gif width=1 height=3></td></tr></table>
<?php
}
?>
Онлайн: 1
Реклама