game/modules_data/3_panel.php

85 lines
4.1 KiB
PHP
Raw Normal View History

2022-06-06 21:30:34 +00:00
<?
echo "
<script language='JavaScript'>
var elem = document.getElementById('se-pre-con');
elem.parentNode.removeChild(elem);
</script>
";
if(!defined('GAME'))
{
die();
}
if($u->info['align']>=3 && $u->info['align'] <4) {
if($u->error!='')
{
echo '<font color="red"><b>'.$u->error.'</b></font><br>';
}
$vu = array(0,0,0,0,0,0,0);
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> $item_dark
$item_dark = array(
"" => array(
//array(4398,1,0,0,0,'useOnLogin=1|onlyOne=1|oneType=37|noremont=1|musor=1|tr_align=3|sudba='.$u->info['login'].'|srok=86400|nosale=1|sudba=1',1),
array(2391,1,0,0,0,'useOnLogin=1|musor=1|noremont=1|tr_align=3|sudba='.$u->info['login'].'|srok=86400|nosale=1|sudba=1',1)
),
);
$vi = array(
);
?>
<link href="https://img.new-combats.com/css/main.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="css/clu0b.css" />
<link rel="stylesheet" type="text/css" href="css/windows.css" />
<?
?>
<table width="100%">
<tr>
<center><h3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <?=$u->microLogin($u->info['id'],1)?></center></h3>
<td width="150" align="right"><input type="button" class="btn" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" onclick="location='main.php?3_panel=1';" /> </div> <input type="button" class="btn" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" onclick="location='main.php';" /></td>
</table>
<center><p><b><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:</b><br /><small>(<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)</small></p>
<p>
<?
$i = 0; $seet = '';
$vnr = array(0 => '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',1 => ' <20><><EFBFBD><EFBFBD><EFBFBD>');
while($i < count($item_dark[$dark_panel])) {
if($item_dark[$dark_panel][$i][1]>0) {
$itm = mysql_fetch_array(mysql_query('SELECT * FROM `items_main` WHERE `id` = "'.$item_dark[$dark_panel][$i][0].'" LIMIT 1'));
if(isset($itm['id'])) {
$vix = 0;
if($item_dark[$dark_panel][$i][4] == 0) {
$vix = $u->testAction('`uid` = "'.$u->info['id'].'" AND `time`>='.strtotime('now 00:00:00').' AND `vars` = "dark_itm'.$itm['id'].'"',2);
$vix = $vix[0];
}else{
$vix = $u->testAction('`uid` = "'.$u->info['id'].'" AND `time`>='.$vt['timeUse'].' AND `vars` = "dark_itm'.$itm['id'].'" ',2);
$vix = $vix[0];
}
if($item_dark[$dark_panel][$i][1]-$vix > 0) {
if(isset($_GET['take_item_dark_panel']) && $_GET['take_item_dark_panel'] == $itm['id']) {
$nitm = $u->addItem($itm['id'],$u->info['id'],$item_dark[$dark_panel][$i][5]);
if($item_dark[$dark_panel][6]>0) {
}
$u->addAction(time(),'dark_itm'.$itm['id'],'');
echo '<font color="red"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> &quot;<b>'.$itm['name'].'</b>&quot; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!</font><br><br>';
}
}
$seet0 = '';
//<2F><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
$seet0 .= '<img '.$vix.' title="'.$itm['name'].'
(<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.$vnr[$item_dark[$i][4]].': '.($item_dark[$dark_panel][$i][1]-$vix).' <EFBFBD><EFBFBD>.)" src="https://'.$c['img'].'/i/items/'.$itm['img'].'"> ';
if($item_dark[$dark_panel][$i][1]-$vix > 0) {
$seet0 = '<a href="main.php?3_panel=1&take_item_dark_panel='.$itm['id'].'">'.$seet0.'</a>';
}else{
$seet0 = '<span style="filter: alpha(opacity=20); -moz-opacity: 0.20; -khtml-opacity: 0.20; opacity: 0.20;">'.$seet0.'</span>';
}
$seet .= $seet0;
}
}
$i++;
}
}
echo $seet;
?>
</p></td></center>
</tr>
</table>