904 lines
37 KiB
PHP
904 lines
37 KiB
PHP
|
<?
|
|||
|
if(!defined('GAME'))
|
|||
|
{
|
|||
|
die();
|
|||
|
}
|
|||
|
|
|||
|
if( $u->info['level'] > 0 && $u->info['inTurnir'] == 0 && $c['bonusonline'] == true && !isset($u->info['noreal']) ) {
|
|||
|
$bns = mysql_fetch_array(mysql_query('SELECT `id`,`time` FROM `aaa_bonus` WHERE `uid` = "'.$u->info['id'].'" AND `time` > '.time().' LIMIT 1'));
|
|||
|
if(isset($_GET['takebns']) && $u->newAct($_GET['takebns'])==true && !isset($bns['id'])) {
|
|||
|
$u->takeBonus();
|
|||
|
$bns = mysql_fetch_array(mysql_query('SELECT `id`,`time` FROM `aaa_bonus` WHERE `uid` = "'.$u->info['id'].'" AND `time` > '.time().' LIMIT 1'));
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
$uShow = explode('|',$u->info['showmenu']);
|
|||
|
if(isset($_GET['showmenu']))
|
|||
|
{
|
|||
|
$_GET['showmenu'] = round($_GET['showmenu']);
|
|||
|
if($_GET['showmenu']>=1 && $_GET['showmenu']<=8)
|
|||
|
{
|
|||
|
if($uShow[$_GET['showmenu']-1]==0)
|
|||
|
{
|
|||
|
$uShow[$_GET['showmenu']-1] = 1;
|
|||
|
}else{
|
|||
|
$uShow[$_GET['showmenu']-1] = 0;
|
|||
|
}
|
|||
|
$u->info['showmenu'] = implode('|',$uShow);
|
|||
|
mysql_query('UPDATE `stats` SET `showmenu`="'.$u->info['showmenu'].'" WHERE `id`="'.$u->info['id'].'"');
|
|||
|
}
|
|||
|
}
|
|||
|
?>
|
|||
|
<style type="text/css">
|
|||
|
.linestl1 {
|
|||
|
background-color: #ececec;
|
|||
|
font-size: 11px;
|
|||
|
font-weight: bold;
|
|||
|
border-radius: 2px;
|
|||
|
-moz-border-radius: 2px;
|
|||
|
-webkit-border-radius: 2px;
|
|||
|
padding-right:4px;
|
|||
|
padding-bottom:1px;
|
|||
|
}
|
|||
|
</style>
|
|||
|
<script>
|
|||
|
function getLine(id,name,a,b,o,id2)
|
|||
|
{
|
|||
|
var tss = '<td width="20"><img src="https://img.new-combats.com/i/minus.gif" style="display:block;cursor:pointer;margin-bottom:3px;" title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" class="btn-slide" onClick="location=\'main.php?inv=1&otdel=<? echo $_GET['otdel']; ?>&showmenu='+id2+'&rnd=<? echo $code; ?>\';"></td>';
|
|||
|
if(o==0)
|
|||
|
{
|
|||
|
tss ='<td width="20"><img src="https://img.new-combats.com/i/plus.gif" style="display:block;cursor:pointer;margin-bottom:3px;" title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" class="btn-slide" onClick="location=\'main.php?inv=1&otdel=<? echo $_GET['otdel']; ?>&showmenu='+id2+'&rnd=<? echo $code; ?>\';"></td>';
|
|||
|
}
|
|||
|
var sts01 = '<a href="main.php?inv=1&otdel=<? echo $_GET['otdel']; ?>&up='+id+'&rnd=<? echo $code; ?>"><img style="display:block;float:right; margin-bottom:3px;" src="https://img.new-combats.com/i/3.gif"></a>';
|
|||
|
if(id==0)
|
|||
|
{
|
|||
|
sts01 = '<img style="display:block;float:right;margin-bottom:3px;" src="https://img.new-combats.com/i/4.gif">';
|
|||
|
}
|
|||
|
var sts02 = '<a href="main.php?inv=1&otdel=<? echo $_GET['otdel']; ?>&down='+id+'&rnd=<? echo $code; ?>"><img style="display:block; margin-bottom:3px; float:right;" src="https://img.new-combats.com/i/1.gif"></a>';
|
|||
|
if(id==6)
|
|||
|
{
|
|||
|
sts02 = '<img style="display:block;float:right;margin-bottom:3px;" src="https://img.new-combats.com/i/2.gif">';
|
|||
|
}
|
|||
|
var sts2 = '<td width="40"><div style="float:right;">'+sts01+''+sts02+'</div></td>';
|
|||
|
document.write('<table class="mroinv" width="100%" border="0" cellspacing="2" cellpadding="0">'+
|
|||
|
'<tr>'+tss+
|
|||
|
'<td style="font-size:9px;"><span class="linestl1"> '+name+'</span></td>'+sts2+'</tr>'+
|
|||
|
'</table>');
|
|||
|
}
|
|||
|
|
|||
|
function showDiv (id)
|
|||
|
{
|
|||
|
var block = document.getElementById('block_'+id);
|
|||
|
block.style.display = 'block';
|
|||
|
}
|
|||
|
function hiddenDiv (id)
|
|||
|
{
|
|||
|
var block = document.getElementById('block_'+id);
|
|||
|
block.style.display = 'none';
|
|||
|
}
|
|||
|
<?
|
|||
|
$rb = mysql_fetch_array(mysql_query('SELECT COUNT(*) FROM `bank` WHERE `block` = 0 AND `uid` = "'.$u->info['id'].'"'));
|
|||
|
?>
|
|||
|
function bank_info() {
|
|||
|
<? if(!isset($u->bank['id']) && $rb[0]==0){ ?>
|
|||
|
alert('<27> <20><><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. \n\n <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD> "<? echo $c['title3']; ?>",'+
|
|||
|
' <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>*\n\n* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.');
|
|||
|
<?
|
|||
|
}elseif($rb[0]>0){
|
|||
|
?>
|
|||
|
var ddtpswBank = '<div><form action="main.php?inv=1&otdel=<? echo $_GET['otdel']; ?>&rnd=<? echo $code; ?>" method="post">'+
|
|||
|
'<table style="border:1px solid #B1A996;" width="300" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="#B1A996"><div align="center"><strong><3E><><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD></strong><a href="javascript:void(0)" onclick="document.getElementById(\'chpassbank\').style.display=\'none\'" title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>" style="float:right;padding-right:5px;">x</a></div></td></tr><tr><td bgcolor="#DDD5C2" style="padding:5px;"><div align="center"><small><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br />'+
|
|||
|
'<select name="bank" id="bank">'+
|
|||
|
<?
|
|||
|
$scet = mysql_query('SELECT `id` FROM `bank` WHERE `block` = "0" AND `uid` = "'.$u->info['id'].'"');
|
|||
|
while ($num_scet = mysql_fetch_array($scet))
|
|||
|
{
|
|||
|
echo "'<option>".$u->getNum($num_scet['id'])."</option>'+";
|
|||
|
}
|
|||
|
?>
|
|||
|
'</select><input style="margin-left:5px;" type="password" name="bankpsw" id="bankpsw" /><label></label></small><input style="margin-left:3px;" type="submit" name="button" id="button" value=" ok " /></div></td></tr></table></form></div>';
|
|||
|
var ddtpsBankDiv = document.getElementById('chpassbank');
|
|||
|
if(ddtpsBankDiv!=undefined)
|
|||
|
{
|
|||
|
ddtpsBankDiv.style.display = '';
|
|||
|
ddtpsBankDiv.innerHTML = ddtpswBank;
|
|||
|
}
|
|||
|
<?
|
|||
|
}
|
|||
|
?>
|
|||
|
}
|
|||
|
function save_com_can()
|
|||
|
{
|
|||
|
var ddtpsBankDiv = document.getElementById('chpassbank');
|
|||
|
if(ddtpsBankDiv!=undefined)
|
|||
|
{
|
|||
|
ddtpsBankDiv.style.display = 'none';
|
|||
|
ddtpsBankDiv.innerHTML = '';
|
|||
|
}
|
|||
|
}
|
|||
|
function save_compl()
|
|||
|
{
|
|||
|
var ddtpswBank = '<div><form action="main.php?inv=1&otdel=<? echo $_GET['otdel']; ?>&rnd=<? echo $code; ?>" method="post">'+
|
|||
|
'<table style="border:1px solid #B1A996;" width="250" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="#B1A996"><div align="center"><strong><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></strong></div></td></tr><tr><td bgcolor="#DDD5C2" style="padding:5px;"><div align="center"><small><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:<br />'+
|
|||
|
'<input style="width:90%;" type="text" name="compname" value="" id="compname" /><label></label></small><br><input style="margin-left:3px;cursor:pointer;" type="submit" name="button" id="button" value=" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> " /><input style="margin-left:3px;cursor:pointer;" onClick="save_com_can();" type="button" value=" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> " /></div></td></tr></table></form></div>';
|
|||
|
var ddtpsBankDiv = document.getElementById('chpassbank');
|
|||
|
if(ddtpsBankDiv!=undefined)
|
|||
|
{
|
|||
|
ddtpsBankDiv.style.display = '';
|
|||
|
ddtpsBankDiv.innerHTML = ddtpswBank;
|
|||
|
}
|
|||
|
}
|
|||
|
function za_block(id) {
|
|||
|
if($('#za_block_'+id).css('display') == 'none') {
|
|||
|
$('#za_block_'+id).css('display','');
|
|||
|
}else{
|
|||
|
$('#za_block_'+id).css('display','none');
|
|||
|
}
|
|||
|
}
|
|||
|
</script>
|
|||
|
<style>
|
|||
|
.mroinv {
|
|||
|
/*background-color:#e2e2e2;border-top:1px solid #eeeeee;border-left:1px solid #eeeeee;border-right:1px solid #a0a0a0;border-bottom:1px solid #a0a0a0;*/
|
|||
|
background:url(https://img.new-combats.com/i/back.gif) 0 2px;
|
|||
|
}
|
|||
|
.mroinv img {
|
|||
|
display:inline-block;
|
|||
|
border:0;
|
|||
|
padding-top:3px;
|
|||
|
padding-left:1px;
|
|||
|
}
|
|||
|
.dot {
|
|||
|
display:block;
|
|||
|
padding-bottom:2px;
|
|||
|
text-decoration: none; /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|||
|
border-bottom: 1px dotted #080808; /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> */
|
|||
|
cursor:pointer;
|
|||
|
}
|
|||
|
.dot:hover {
|
|||
|
border-bottom: 1px dotted #080808; /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> */
|
|||
|
background-color:#BEBEBE;
|
|||
|
}
|
|||
|
</style>
|
|||
|
<div id="chpassbank" style="display:none; position:absolute; top:50px; left:250px;"></div>
|
|||
|
<?php
|
|||
|
|
|||
|
$rz0 = '';
|
|||
|
$rz1 = '';
|
|||
|
$rz2 = '';
|
|||
|
$rz3 = '';
|
|||
|
$rz4 = '';
|
|||
|
$rz5 = '';
|
|||
|
$expbase = number_format($u->stats['levels']['exp'], 0, ",", " ");
|
|||
|
if( $expbase-1 == $u->info['exp'] && $c['nolevel'] == true ) {
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
$tlus = mysql_fetch_array(mysql_query('SELECT COUNT(*) FROM `users` WHERE `real` = 1 AND `level` = "'.$u->info['level'].'" LIMIT 1'));
|
|||
|
if($tlus[0] < $u->info['level']*10) {
|
|||
|
$expbase = '<strike>'.$expbase.'</strike>';
|
|||
|
}
|
|||
|
$expbase = '(<a href="https://new-combats.com/exp" target="_blank">'.$expbase.'</a>)';
|
|||
|
if(((1+$u->info['level']*10)-$tlus[0]) > 0) {
|
|||
|
$expbase .= ' <u><a onMouseOver="top.hi(this,\'<b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.$u->info['level'].' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>.</b><br><3E><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <u>'.((1+$u->info['level']*10)-$tlus[0]).' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></u> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\',event,0,1,1,1,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();" style="cursor:help">[?]</a></u>';
|
|||
|
}
|
|||
|
}else{
|
|||
|
$expbase = '(<a href="https://new-combats.com/exp" target="_blank">'.$expbase.'</a>)';
|
|||
|
}
|
|||
|
if($u->info['exp'] == 12499 && $c['infinity5level'] == true) {
|
|||
|
$trks5 = '<div align="center"><hr><font color=red><3E><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <a target="_blank" href="https://new-combats.com/item/1204"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a></font><hr></div>';
|
|||
|
}
|
|||
|
$repovo=$u->rep['rep3']-$u->rep['rep3_buy'];
|
|||
|
|
|||
|
echo '
|
|||
|
<table width="100%" border="0" cellspacing="3" cellpadding="0">
|
|||
|
<tr><td> </td></tr>
|
|||
|
<tr>
|
|||
|
<td height="15">
|
|||
|
<small style="font-size:12px;">
|
|||
|
<div style="padding:5px 5px 0px 5px;">
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <span style="float0:right"><a href="/exp" target="_blank">'.number_format($u->info['exp'], 0, ",", " ").'</a></span><br>'.$trks5.'
|
|||
|
';
|
|||
|
if ($u->info['expstopu']<3 && $u->info['exp']==$c['expstop'])
|
|||
|
{
|
|||
|
echo '
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <b>12</b><EFBFBD>: <span style="float0:right">
|
|||
|
<a href="/quest" target="_blank"><b>'.($u->info['expstopu']+1).'/3 </b></a> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
|||
|
echo '<button style="width:224px;margin-top:5px;" class="btnnew" onclick="location.href=\'/main.php?inv&propusk=1\';">
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 600 <EFBFBD><EFBFBD><EFBFBD></button> <br>';
|
|||
|
|
|||
|
/*
|
|||
|
takelevelplease
|
|||
|
*/
|
|||
|
}
|
|||
|
echo '
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>: <span style="float0:right"><span title="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.number_format($u->info['win'], 0, ",", " ").'"><b>'.number_format($u->info['win'], 0, ",", " ").' <img width="7" height="7" title="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.number_format($u->info['win'], 0, ",", " ").'"
|
|||
|
src="https://img.new-combats.com/i/ico/wins.gif" style="display:inline-block;" /></b></span> <span title="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.number_format($u->info['lose'], 0, ",", " ").'"><b>'.number_format($u->info['lose'], 0, ",", " ").' <img width="7" height="7" alt="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.number_format($u->info['lose'], 0, ",", " ").'"
|
|||
|
src="https://img.new-combats.com/i/ico/looses.gif" style="display:inline-block;" /></b></span> <span title="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.number_format($u->info['nich'], 0, ",", " ").'"><b>'.number_format($u->info['nich'], 0, ",", " ").' <img width="7" height="7" alt="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.number_format($u->info['nich'], 0, ",", " ").'"
|
|||
|
src="https://img.new-combats.com/i/ico/draw.gif" style="display:inline-block;" /></b></span></span><br />
|
|||
|
<!--<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.(0+$u->info['swin']).'<br>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.(0+$u->info['slose']).'<br>-->
|
|||
|
</div><div style="padding:0px 5px 5px 5px;">
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <b>'.$u->info['money'].' <EFBFBD><EFBFBD>.</b><br />
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <b style="color:green">'.$u->info['money2'].' <EFBFBD><EFBFBD><EFBFBD>.</b><br />
|
|||
|
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <b style="color:green">'.$repovo.' <EFBFBD><EFBFBD>.</b><br />
|
|||
|
|
|||
|
';
|
|||
|
/*
|
|||
|
if ($u->info['level'] > 9)
|
|||
|
{
|
|||
|
$check = mysql_fetch_array(mysql_query('SELECT * FROM `actions` WHERE `uid` = "'.$u->info['id'].'" AND `vars`= "end_trup" AND `time` > "'.(time()-3*60*60).'" ORDER BY `actions`.`time` DESC LIMIT 1;'));
|
|||
|
if (!isset($check['id']))
|
|||
|
{
|
|||
|
echo '<27><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <b style="color:green"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.</b><br />';
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
echo '<27><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <b style="color:green">'.date('d.m.Y H:i',($check['time']+10800)).'.</b><br />';
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
if ($u->info['palpro'] > time())
|
|||
|
{
|
|||
|
echo '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>: <b style="color:green">'.date('d.m.Y H:i',$u->info['palpro']).'.</b><br />';
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
echo '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>: <b style="color:red"> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.</b><br />';
|
|||
|
}*/
|
|||
|
|
|||
|
echo '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <b style="color:green">'.$u->info['relik']['relik'].' <20><>.</b><br />';
|
|||
|
|
|||
|
if($u->stats['pbe'] > 0) {
|
|||
|
echo '<a href="https://new-combats.com/news/268/" target="_blank"><3E><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.$u->stats['pbe'].' <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a>';
|
|||
|
$nowby = mysql_fetch_array(mysql_query('SELECT `good` FROM `pay_operation` WHERE `uid` = "'.$u->info['id'].'" AND `good` > 0 ORDER BY `good` DESC LIMIT 1'));
|
|||
|
if($u->stats['pbe'] > 0 && date('d.m.Y') != date('d.m.Y',$nowby['good'])) {
|
|||
|
echo ' <font color="red"><br>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)</font>';
|
|||
|
}
|
|||
|
echo '<br>';
|
|||
|
}
|
|||
|
if($u->info['level'] < 8 && $c['zuby'] == true) {
|
|||
|
echo '<27><><EFBFBD><EFBFBD>: '.$u->zuby($u->info['money4']).'<br>';
|
|||
|
}
|
|||
|
if($u->info['ability'] > 0 || ($u->info['skills'] > 0 && $u->info['level'] > 0))
|
|||
|
{
|
|||
|
echo ' <a href="main.php?skills=1&side=1">+ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a><br>';
|
|||
|
}
|
|||
|
|
|||
|
/*if($u->info['skills'] > 0 && $u->info['level'] > 0)
|
|||
|
{
|
|||
|
echo ' • <a href="main.php?skills=1&side=1"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a><br />';
|
|||
|
}*/
|
|||
|
/*if($u->info['level']>0 && $u->info['inTurnir'] == 0 && !isset($u->info['noreal']))
|
|||
|
{
|
|||
|
echo'
|
|||
|
<br><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
|
|||
|
';
|
|||
|
if(!isset($u->bank['id']))
|
|||
|
{
|
|||
|
if($rb[0]>0)
|
|||
|
{
|
|||
|
echo '<a href="javascript:bank_info();"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></a>';
|
|||
|
}else{
|
|||
|
echo '<a href="javascript:bank_info();"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a>';
|
|||
|
}
|
|||
|
}else{
|
|||
|
echo '<27><><EFBFBD><EFBFBD> <20> <b>'.$u->bank['id'].'</b><br><b>'.$u->bank['money1'].'</b> <20><>. <b>'.$u->bank['money2'].'</b> <20><><EFBFBD>. <img style="display:inline-block;cursor:pointer;" src="https://img.new-combats.com/i/close_bank.gif" onClick="top.frames[\'main\'].location=\'main.php?inv=1&otdel='.$_GET['otdel'].'&bank_exit='.$code.'\';" title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" style="cursor:pointer">';
|
|||
|
}
|
|||
|
echo '<br>';
|
|||
|
}*/
|
|||
|
|
|||
|
|
|||
|
if( $u->info['inTurnir'] == 0 ) {
|
|||
|
/*if( $u->stats['silver'] > 0 ) {
|
|||
|
echo '<div style="padding-top:5px;padding-bottom:5px;color:#ad4421;">';
|
|||
|
echo '<a style="color:#ad4421;" href="/main.php?vip='.$u->stats['silver'].'"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <img title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.$u->stats['silver'].' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" src="https://img.new-combats.com/blago/'.$u->stats['silver'].'.png" width="15" height="15" style="vertical-align:sub;display:inline-block;"></a>';
|
|||
|
echo '</div>';
|
|||
|
}else{
|
|||
|
echo '<div style="padding-top:5px;padding-bottom:5px;color:#ad4421;">';
|
|||
|
echo '<a style="color:#ad4421;" href="/benediction/" target="_blank"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <img title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>" src="https://img.new-combats.com/blago/1d.png" width="15" height="15" style="vertical-align:sub;display:inline-block;"></a>';
|
|||
|
echo '</div>';
|
|||
|
}*/
|
|||
|
}
|
|||
|
|
|||
|
if ($_GET['propusk'] == 1)
|
|||
|
{
|
|||
|
$usrdata = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `id` = "'.$u->info['id'].'" LIMIT 1'));
|
|||
|
if ($usrdata['money2'] >= 600 && $u->info['level'] == 11)
|
|||
|
{
|
|||
|
mysql_query('UPDATE `users` SET `money2` = `money2` - 600 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|||
|
mysql_query('UPDATE `stats` SET `exp`= 150000000, `expstopu` = 3 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|||
|
$er8 = '<27><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!!!';
|
|||
|
die('<script>top.frames[\'main\'].location = "main.php";</script>');
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
$er8 = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!!!';
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
if( $u->info['level'] >= 0 && $u->info['inTurnir'] == 0 && $c['bonuslevel'] == true && !isset($u->info['noreal']) && $c['bonussocial'] == true ) {
|
|||
|
/*
|
|||
|
[1] <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> 1 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
|||
|
[2]-[3]-[4] <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> e-mail <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> 2 <EFBFBD><EFBFBD> 4 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
|||
|
[5]-[6] <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> 5 <EFBFBD><EFBFBD><EFBFBD> 6 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
|||
|
[7] <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
|||
|
[8] <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 3 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 3 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
|||
|
[9] <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 5 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 50 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
|||
|
[10] <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 7 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 100 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
|||
|
*/
|
|||
|
$mxlvl = mysql_fetch_array(mysql_query('SELECT `id`,`level` FROM `users` WHERE `real` = 1 AND `admin` = 0 AND `banned` = 0 ORDER BY `level` DESC LIMIT 1'));
|
|||
|
if(isset($mxlvl['id']) && $mxlvl['level'] > $u->info['level']+1) {
|
|||
|
$gd = 1;
|
|||
|
$gb = 1;
|
|||
|
$sl = $u->info['level'];
|
|||
|
$ml = $u->info['level']+1;
|
|||
|
//
|
|||
|
if(isset($_GET['takelevelplease'])) {
|
|||
|
$er8 = '';
|
|||
|
//
|
|||
|
if($ml <= 1) {
|
|||
|
$er8 = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> 1 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.';
|
|||
|
}elseif($ml <= 4) {
|
|||
|
$mcf = mysql_fetch_array(mysql_query('SELECT * FROM `mini_actions` WHERE `uid` = "'.$u->info['id'].'" AND `val` = "mailconfirm" AND `ok` > 0 LIMIT 1'));
|
|||
|
if(!isset($mcf['id'])) {
|
|||
|
$er8 = '<27><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> E-mail.';
|
|||
|
}else{
|
|||
|
if($ml == 2) {
|
|||
|
mysql_query('UPDATE `stats` SET `exp` = 420 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|||
|
}elseif($ml == 3) {
|
|||
|
mysql_query('UPDATE `stats` SET `exp` = 1300 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|||
|
}elseif($ml == 4) {
|
|||
|
mysql_query('UPDATE `stats` SET `exp` = 2500 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|||
|
}
|
|||
|
$er8 = '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.$ml.' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!';
|
|||
|
$u->info['level']++;
|
|||
|
$ml++;
|
|||
|
}
|
|||
|
}elseif($ml <= 6) {
|
|||
|
$mcf = mysql_fetch_array(mysql_query('SELECT * FROM `mini_actions` WHERE `uid` = "'.$u->info['id'].'" AND (`val` = "vkauth" OR `val` = "fbauth" OR `val` = "okauth") LIMIT 1'));
|
|||
|
if(!isset($mcf['id'])) {
|
|||
|
$er8 = '<27><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>.';
|
|||
|
}else{
|
|||
|
$itmsv = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 1204 AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 AND `uid` = "'.$u->info['id'].'" LIMIT 1'));
|
|||
|
if($ml == 5) {
|
|||
|
mysql_query('UPDATE `stats` SET `exp` = 5000 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|||
|
}elseif($ml == 6) {
|
|||
|
mysql_query('UPDATE `stats` SET `exp` = 12500 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|||
|
}
|
|||
|
if($ml == 6 && !isset($itmsv['id']) && $c['infinity5level'] == true) {
|
|||
|
$er8 = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!';
|
|||
|
}else{
|
|||
|
if($ml == 6) {
|
|||
|
mysql_query('INSERT INTO `mini_actions` (
|
|||
|
`uid`,`time`,`val`,`var`
|
|||
|
) VALUES (
|
|||
|
"'.$u->info['id'].'","'.time().'","mbtnlvl6","0"
|
|||
|
)');
|
|||
|
}
|
|||
|
$er8 = '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.$ml.' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!';
|
|||
|
$u->info['level']++;
|
|||
|
$ml++;
|
|||
|
}
|
|||
|
}
|
|||
|
}elseif($ml <= 7) {
|
|||
|
$tstlvl = mysql_fetch_array(mysql_query('SELECT * FROM `mini_actions` WHERE `uid` = "'.$u->info['id'].'" AND `val` = "mbtnlvl6" LIMIT 1'));
|
|||
|
//$refs = mysql_fetch_array(mysql_query('SELECT COUNT(*) FROM `users` WHERE `level` >= 5 AND `timereg` > "'.(0+$tstlvl['time']).'" AND `real` = 1 AND `host_reg` = "'.$u->info['id'].'" LIMIT 1'));
|
|||
|
//$btls = mysql_fetch_array(mysql_query('SELECT COUNT(*) FROM `battle` WHERE `time_start` > "'.(0+$tstlvl['time']).'" AND `id` IN (SELECT `battle_id` FROM `battle_last` WHERE `uid` = "'.$u->info['id'].'" AND `time` > "'.(0+$tstlvl['time']).'") LIMIT 1'));
|
|||
|
//
|
|||
|
$btls[0] = $u->info['win'];
|
|||
|
if( $btls[0] >= 50 ) {
|
|||
|
//
|
|||
|
mysql_query('UPDATE `stats` SET `exp` = 30000 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|||
|
//
|
|||
|
mysql_query('INSERT INTO `mini_actions` (
|
|||
|
`uid`,`time`,`val`,`var`
|
|||
|
) VALUES (
|
|||
|
"'.$u->info['id'].'","'.time().'","mbtnlvl7","0"
|
|||
|
)');
|
|||
|
$er8 = '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.$ml.' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!';
|
|||
|
$u->info['level']++;
|
|||
|
$ml++;
|
|||
|
}else{
|
|||
|
$er8 = '<27><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.(50-$btls[0]).' <20><><EFBFBD><EFBFBD><EFBFBD>).';
|
|||
|
}
|
|||
|
}elseif($ml <= 8) {
|
|||
|
$tstlvl = mysql_fetch_array(mysql_query('SELECT * FROM `mini_actions` WHERE `uid` = "'.$u->info['id'].'" AND `val` = "mbtnlvl7" LIMIT 1'));
|
|||
|
$refs = mysql_fetch_array(mysql_query('SELECT COUNT(*) FROM `users` WHERE `level` >= 5 AND `timereg` > "'.(0+$tstlvl['time']).'" AND `real` = 1 AND `host_reg` = "'.$u->info['id'].'" LIMIT 1'));
|
|||
|
$btls = mysql_fetch_array(mysql_query('SELECT COUNT(*) FROM `battle` WHERE `time_start` > "'.(0+$tstlvl['time']).'" AND `razdel` = 5 AND `id` IN (SELECT `battle_id` FROM `battle_last` WHERE `uid` = "'.$u->info['id'].'" AND `time` > "'.(0+$tstlvl['time']).'") LIMIT 1'));
|
|||
|
//
|
|||
|
if($refs[0] < 3 || $btls[0] < 3) {
|
|||
|
$er8 = '<27><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.(0+$refs[0]).'/3 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.(0+$btls[0]).'/3 <20><><EFBFBD><EFBFBD><EFBFBD>.';
|
|||
|
}else{
|
|||
|
//
|
|||
|
mysql_query('UPDATE `stats` SET `exp` = 300000 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|||
|
//
|
|||
|
mysql_query('INSERT INTO `mini_actions` (
|
|||
|
`uid`,`time`,`val`,`var`
|
|||
|
) VALUES (
|
|||
|
"'.$u->info['id'].'","'.time().'","mbtnlvl8","0"
|
|||
|
)');
|
|||
|
$er8 = '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.$ml.' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!';
|
|||
|
$u->info['level']++;
|
|||
|
$ml++;
|
|||
|
}
|
|||
|
}elseif($ml <= 9) {
|
|||
|
$er8 = '<27><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 5 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 50 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.';
|
|||
|
$er8 = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!';
|
|||
|
}elseif($ml <= 10) {
|
|||
|
$er8 = '<27><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 7 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 100 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.';
|
|||
|
$er8 = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!';
|
|||
|
}else{
|
|||
|
$er8 = '<27><><EFBFBD>-<2D><> <20><><EFBFBD> <20><> <20><><EFBFBD>...';
|
|||
|
$er8 = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!';
|
|||
|
}
|
|||
|
//
|
|||
|
if($sl != $u->info['level']) {
|
|||
|
|
|||
|
die('<script>location.href="/main.php?inv";</script>');
|
|||
|
}
|
|||
|
if(isset($mxlvl['id']) && ($mxlvl['level'] > $ml+1 || $u->info['admin'] > 0)) {
|
|||
|
//
|
|||
|
}else{
|
|||
|
if($sl != $u->info['level']) {
|
|||
|
$gd = 0;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
//
|
|||
|
if($ml <= 1) {
|
|||
|
$zd = '<font color=red><3E><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> 1 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.</font>';
|
|||
|
$gb = 1;
|
|||
|
}elseif($ml <= 4) {
|
|||
|
$zd = '<27><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> E-mail, <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 2-4 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.';
|
|||
|
$gb = 1;
|
|||
|
}elseif($ml <= 6) {
|
|||
|
$zd = '<27><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 5-6 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.';
|
|||
|
$gb = 1;
|
|||
|
}elseif($ml <= 7) {
|
|||
|
$zd = '<27><><EFBFBD><EFBFBD><EFBFBD> <!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> --><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 50 <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 7 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.';
|
|||
|
$gb = 1;
|
|||
|
}elseif($ml <= 8) {
|
|||
|
$zd = '<27><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 3 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 3 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 8 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.';
|
|||
|
$gb = 1;
|
|||
|
}elseif($ml <= 9) {
|
|||
|
$zd = '<27><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 5 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 50 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 9 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.';
|
|||
|
$gb = 1;
|
|||
|
}elseif($ml <= 10) {
|
|||
|
$zd = '<27><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 7 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 100 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 10 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.';
|
|||
|
$gb = 1;
|
|||
|
}else{
|
|||
|
$zd = '';
|
|||
|
$gb = 0;
|
|||
|
}
|
|||
|
//
|
|||
|
if($gd == 1) {
|
|||
|
//
|
|||
|
if($zd!='') {
|
|||
|
echo '<hr><b><center><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:</center></b><div align="center" style="border:1px solid #aeaeae;background-color:#FFF;margin-top:3px;padding:4px;">'.$zd.'</div>';
|
|||
|
}else{
|
|||
|
echo '<hr>';
|
|||
|
}
|
|||
|
if($er8 != '') {
|
|||
|
echo '<div style="padding:3px;" align="center"><font color=red>'.$er8.'</font></div>';
|
|||
|
}
|
|||
|
//
|
|||
|
if($gb == 1 && $ml > 1) {
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
echo '<button style="width:224px;margin-top:5px;" class="btnnew" onclick="location.href=\'/main.php?inv&takelevelplease=1\';"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.($u->info['level']+1).' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></button></div>';
|
|||
|
}
|
|||
|
//
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
if(!isset($u->info['noreal']) && $c['bonussocial'] == true) {
|
|||
|
$mcf = mysql_fetch_array(mysql_query('SELECT * FROM `mini_actions` WHERE `uid` = "'.$u->info['id'].'" AND `val` = "mailconfirm" LIMIT 1'));
|
|||
|
if((isset($mcf['id']) && $mcf['ok'] == 0) || !isset($mcf['id'])) {
|
|||
|
if(isset($_GET['confmail'])) {
|
|||
|
//
|
|||
|
$gd = 0;
|
|||
|
$zdml = 3600; //<2F><><EFBFBD>
|
|||
|
if(isset($mcf['id']) && $mcf['time'] > time() - $zdml ) {
|
|||
|
echo '<hr><center><font color="red"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>.<2E><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.$u->timeOut($mcf['time']+$zdml-time()).'</font></center>';
|
|||
|
$gd = 1;
|
|||
|
}elseif(!preg_match('#^[a-z0-9.!\#$%&\'*+-/=?^_`{|}~]+@([0-9.]+|([^\s]+\.+[a-z]{2,6}))$#si', $_GET['confmail'])) {
|
|||
|
echo '<hr><center><font color="red"><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> E-mail.</font></center>';
|
|||
|
$gd = 1;
|
|||
|
}
|
|||
|
|
|||
|
if( $gd == 0 ) {
|
|||
|
if(isset($mcf['id'])) {
|
|||
|
mysql_query('UPDATE `mini_actions` SET `time` = "'.time().'",`var` = "'.mysql_real_escape_string($_GET['confmail']).'" WHERE `id` = "'.$mcf['id'].'" LIMIT 1');
|
|||
|
}else{
|
|||
|
mysql_query('INSERT INTO `mini_actions` (`uid`,`time`,`val`,`var`,`ok`) VALUES (
|
|||
|
"'.$u->info['id'].'","'.time().'","mailconfirm","'.mysql_real_escape_string($_GET['confmail']).'","0"
|
|||
|
)');
|
|||
|
}
|
|||
|
function sendmail($message,$keymd5,$mail) {
|
|||
|
global $u;
|
|||
|
//
|
|||
|
$md5mail = md5($keymd5.'+'.$mail);
|
|||
|
//
|
|||
|
$msgtxt = '<27><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> E-mail <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <b>'.$u->info['login'].'</b> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:';
|
|||
|
$msgtxt .= ' <a href="https://new-combats.com/mail/key='.$md5mail.'&mail='.$mail.'"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD></a> (https://new-combats.com/mail/key='.$md5mail.'&mail='.$mail.')';
|
|||
|
$msgtxt .= '<br><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.';
|
|||
|
$msgtxt .= '<br><3E><><EFBFBD><EFBFBD> <20><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <a href="https://new-combats.com/mail/key='.$md5mail.'&mail='.$mail.'&cancel"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD></a> (https://new-combats.com/mail/key='.$md5mail.'&mail='.$mail.'&cancel)<br><br>- - - - - - -<br><br><3E> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<br><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>';
|
|||
|
//
|
|||
|
$headers = "MIME-Version: 1.0\r\n";
|
|||
|
$headers .= "Content-type: text/html; charset=windows-1251\r\n";
|
|||
|
$headers .= "From: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> \r\n";
|
|||
|
$to = $mail;
|
|||
|
//
|
|||
|
$subject = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>: '.$u->info['login'] . ' - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><>.<2E><><EFBFBD><EFBFBD><EFBFBD>';
|
|||
|
//
|
|||
|
if (mail($to, $subject, $msgtxt, $headers) == true) {
|
|||
|
return true;
|
|||
|
}else{
|
|||
|
return false;
|
|||
|
}
|
|||
|
}
|
|||
|
//
|
|||
|
$mcf = mysql_fetch_array(mysql_query('SELECT * FROM `mini_actions` WHERE `uid` = "'.$u->info['id'].'" AND `val` = "mailconfirm" LIMIT 1'));
|
|||
|
//
|
|||
|
sendmail( '' , 'mailconf*15' , $mcf['var'] );
|
|||
|
//
|
|||
|
echo '<hr><center><font color="red"><3E><> <20><><EFBFBD> E-mail <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.</font></center>';
|
|||
|
//
|
|||
|
}
|
|||
|
}
|
|||
|
$mcff = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> E-mail <20><> 1 <20><><EFBFBD>.';
|
|||
|
if(isset($mcf['id'])) {
|
|||
|
$mcff = '<b>'.$mcf['var'].'</b><br><font color="grey"><small>(<28><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)</small></font>';
|
|||
|
}
|
|||
|
echo '<div align="center"><button style="width:224px;margin-top:5px;" class="btnnew" onclick="top.mailConf();"><img src="https://img.new-combats.com/mini_mail.png" height="13" width="13"> '.$mcff.'</button></div>';
|
|||
|
}else{
|
|||
|
//echo '<div align="center"><button style="width:224px;margin-top:5px;" class="btnnew" onclick="top.mailConf();"><img src="https://img.new-combats.com/mini_mail.png" height="13" width="13"> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> E-mail <20><> 1 <20><><EFBFBD>.</button></div>';
|
|||
|
}
|
|||
|
|
|||
|
$mcf = mysql_fetch_array(mysql_query('SELECT * FROM `mini_actions` WHERE `uid` = "'.$u->info['id'].'" AND (`val` = "vkauth" OR `val` = "fbauth" OR `val` = "okauth") LIMIT 1'));
|
|||
|
if(!isset($mcf['id'])) {
|
|||
|
require_once('vk/VK.php');
|
|||
|
require_once('vk/VKException.php');
|
|||
|
$vk_config = array(
|
|||
|
'app_id' => '5145826',
|
|||
|
'api_secret' => 'V90yIzlgSglfgrnHw7Ny',
|
|||
|
'callback_url' => 'https://new-combats.com/social.php?vkconnect',
|
|||
|
'api_settings' => 'offline,friends,email'
|
|||
|
);
|
|||
|
|
|||
|
if(isset($_GET['vkconnect'])) {
|
|||
|
echo '<hr>';
|
|||
|
try {
|
|||
|
$vk = new VK\VK($vk_config['app_id'], $vk_config['api_secret']);
|
|||
|
|
|||
|
if (!isset($_REQUEST['code'])) {
|
|||
|
/**
|
|||
|
* If you need switch the application in test mode,
|
|||
|
* add another parameter "true". Default value "false".
|
|||
|
* Ex. $vk->getAuthorizeURL($api_settings, $callback_url, true);
|
|||
|
*/
|
|||
|
$authorize_url = $vk->getAuthorizeURL(
|
|||
|
$vk_config['api_settings'], $vk_config['callback_url']);
|
|||
|
|
|||
|
/*echo '<script>location.href="'.$authorize_url.'";</script>';
|
|||
|
*/
|
|||
|
//echo '<a target="_blank" href="' . $authorize_url . '"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> VK.com</a>';
|
|||
|
} else {
|
|||
|
$access_token = $vk->getAccessToken($_REQUEST['code'], $vk_config['callback_url']);
|
|||
|
|
|||
|
echo 'access token: ' . $access_token['access_token']
|
|||
|
. '<br />expires: ' . $access_token['expires_in'] . ' sec.'
|
|||
|
. '<br />user id: ' . $access_token['user_id'] . '<br /><br />';
|
|||
|
|
|||
|
}
|
|||
|
} catch (VK\VKException $error) {
|
|||
|
echo $error->getMessage();
|
|||
|
}
|
|||
|
|
|||
|
echo '<hr>';
|
|||
|
}else{
|
|||
|
$vk = new VK\VK($vk_config['app_id'], $vk_config['api_secret']);
|
|||
|
$authorize_url = $vk->getAuthorizeURL(
|
|||
|
$vk_config['api_settings'], $vk_config['callback_url']);
|
|||
|
}
|
|||
|
|
|||
|
echo '<div align="center"><hr>';
|
|||
|
|
|||
|
echo '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> 1 <20><><EFBFBD>. <20> 150 <20><>.<br><br>';
|
|||
|
|
|||
|
echo '<button style="width:224px;margin-top:5px;" class="btnnew" onclick="window.open(\''.$authorize_url.'\', \'opener\', \'width=660,height=450\');"><img src="https://img.new-combats.com/vk.png" height="13" width="13"> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> </button>';
|
|||
|
|
|||
|
echo '<br><3E><><EFBFBD><br>';
|
|||
|
|
|||
|
echo '<button style="width:224px;margin-top:5px;" class="btnnew" onclick="window.open(\'https://new-combats.com/social.php?fbconnect\', \'opener\', \'width=660,height=450\');"><img src="https://img.new-combats.com/fb.png" height="13" width="13"> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Facebook </button>';
|
|||
|
|
|||
|
//echo '<br><3E><><EFBFBD><br>';
|
|||
|
|
|||
|
//echo '<button style="width:224px;margin-top:5px;" class="btnnew" onclick="window.open(\''.$authorize_url.'\', \'opener\', \'width=660,height=450\');"><img src="https://img.new-combats.com/ok.png" height="13" width="13"> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></button>';
|
|||
|
|
|||
|
echo '</div>';
|
|||
|
}
|
|||
|
}
|
|||
|
echo '</div>';
|
|||
|
$prt = explode('|',$u->info['prmenu']);
|
|||
|
if(isset($_GET['up']))
|
|||
|
{
|
|||
|
$i = 0;
|
|||
|
if(isset($prt[$_GET['up']],$prt[$_GET['up']-1]))
|
|||
|
{
|
|||
|
$prt1 = $prt[intval($_GET['up'])];
|
|||
|
$prt[$_GET['up']] = $prt[$_GET['up']-1];
|
|||
|
$prt[$_GET['up']-1] = $prt1;
|
|||
|
$prtNew = implode('|',$prt);
|
|||
|
$u->info['prmenu'] = $prtNew;
|
|||
|
mysql_query('UPDATE `stats` SET `prmenu`="'.mysql_real_escape_string($u->info['prmenu']).'" WHERE `id`="'.$u->info['id'].'" LIMIT 1');
|
|||
|
$prt = explode('|',$u->info['prmenu']);
|
|||
|
}
|
|||
|
}elseif(isset($_GET['down']))
|
|||
|
{
|
|||
|
$i = 0;
|
|||
|
if(isset($prt[$_GET['down']],$prt[$_GET['down']+1]))
|
|||
|
{
|
|||
|
$prt1 = $prt[intval($_GET['down'])];
|
|||
|
$prt[$_GET['down']] = $prt[$_GET['down']+1];
|
|||
|
$prt[$_GET['down']+1] = $prt1;
|
|||
|
$prtNew = implode('|',$prt);
|
|||
|
$u->info['prmenu'] = $prtNew;
|
|||
|
mysql_query('UPDATE `stats` SET `prmenu`="'.mysql_real_escape_string($u->info['prmenu']).'" WHERE `id`="'.$u->info['id'].'" LIMIT 1');
|
|||
|
$prt = explode('|',$u->info['prmenu']);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
$i = 0;
|
|||
|
while($i<count($prt))
|
|||
|
{
|
|||
|
$prtpos[$prt[$i]] = $i;
|
|||
|
$i++;
|
|||
|
}
|
|||
|
|
|||
|
function intSpan($val) {
|
|||
|
$val = explode('>',$val);
|
|||
|
$val = explode('<',$val[1]);
|
|||
|
$val = $val[0];
|
|||
|
return $val;
|
|||
|
}
|
|||
|
|
|||
|
$rz0 = '<script>getLine('.$prtpos[0].',"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ","0","0","'.$uShow[0].'",1);</script>';
|
|||
|
$rz0 .= '<font id="rz0">';
|
|||
|
if($uShow[0]==1){
|
|||
|
$i = 1;
|
|||
|
while( $i <= 10 ) {
|
|||
|
$u->stats['s'.$i] = 0+$u->stats['s'.$i];
|
|||
|
$i++;
|
|||
|
}
|
|||
|
$rz0 .= '<div style="display:none" id="lnk0">
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <b>'.$u->stats['s1'].'</b><br />
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <b>'.$u->stats['s2'].'</b><br />
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <b>'.$u->stats['s3'].'</b><br />
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <b>'.$u->stats['s4'].'</b><br />
|
|||
|
';
|
|||
|
if($u->info['level'] >= 4 || $u->stats['n5']!=0)
|
|||
|
{
|
|||
|
$rz0 .= '
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <b>'.$u->stats['s5'].'</b><br />
|
|||
|
';
|
|||
|
}
|
|||
|
if($u->info['level'] >= 7 || (@isset($u->stats['n6']) && @$u->stats['n6']>0))
|
|||
|
{
|
|||
|
$rz0 .= '
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <b>'.@$u->stats['s6'].'</b><br />
|
|||
|
';
|
|||
|
}
|
|||
|
if($u->info['level'] >= 10 || @$u->stats['s7']>0)
|
|||
|
{
|
|||
|
$rz0 .= '
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <b>'.@$u->stats['s7'].'</b><br />
|
|||
|
';
|
|||
|
}
|
|||
|
}
|
|||
|
$rz0 .= '</font></div>';
|
|||
|
$rz1 = '<script>getLine('.$prtpos[1].',"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ","0","0",'.$uShow[1].',2);</script>';
|
|||
|
if($uShow[1]==1)
|
|||
|
{
|
|||
|
//if( $u->info['admin'] > 0 ) {
|
|||
|
$rz1 .= '<div style="display:none" id="lnk1">';
|
|||
|
$rz1 .= '<27><><EFBFBD><EFBFBD>: '.$u->inform('yrontest').'';
|
|||
|
$rz1 .= '<br><font color=maroon><3E><><EFBFBD><EFBFBD>. <20><><EFBFBD><EFBFBD>: '.$u->inform('yrontest-krit').'</font>';
|
|||
|
//}else{
|
|||
|
// $rz1 .= '<27><><EFBFBD><EFBFBD>: '.$u->inform('yron');
|
|||
|
//}
|
|||
|
$rz1 .= '
|
|||
|
<br>
|
|||
|
<span><EFBFBD><EFBFBD>. <EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.$u->inform('m1').'';
|
|||
|
if(intSpan($u->inform('m3'))!=0)
|
|||
|
{
|
|||
|
$rz1 .='
|
|||
|
</span><br>
|
|||
|
<nobr>
|
|||
|
<span><EFBFBD><EFBFBD>. <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.$u->inform('m3').'';
|
|||
|
}
|
|||
|
if( intSpan($u->inform('antm3')) != 0) {
|
|||
|
$rz1 .='
|
|||
|
</span><br>
|
|||
|
<nobr>
|
|||
|
<span><EFBFBD><EFBFBD>. <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.$u->inform('antm3').'';
|
|||
|
}
|
|||
|
$rz1 .= '
|
|||
|
</span></nobr><br />
|
|||
|
<span><EFBFBD><EFBFBD>. <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.$u->inform('m2').'';
|
|||
|
$rz1 .= '</span><br />
|
|||
|
<span><EFBFBD><EFBFBD>. <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.$u->inform('m4').'';
|
|||
|
$rz1 .= '</span><br>
|
|||
|
<nobr><span><EFBFBD><EFBFBD>. <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.$u->inform('m5').'';
|
|||
|
$rz1 .= '</span></nobr><br>
|
|||
|
<span><EFBFBD><EFBFBD>. <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.$u->inform('m9').'';
|
|||
|
$rz1 .= '</span><br>
|
|||
|
<span><EFBFBD><EFBFBD>. <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.$u->inform('m6').'';
|
|||
|
if( intSpan($u->inform('m7')) != 0 ) {
|
|||
|
$rz1 .='
|
|||
|
</span><br>
|
|||
|
<span><EFBFBD><EFBFBD>. <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.$u->inform('m7').'';
|
|||
|
}
|
|||
|
if( intSpan($u->inform('m8')) != 0 ) {
|
|||
|
$rz1 .= '</span><br />
|
|||
|
<span><EFBFBD><EFBFBD>. <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.$u->inform('m8').'';
|
|||
|
}
|
|||
|
if( intSpan($u->inform('za')) != 0 ) {
|
|||
|
$rz1 .= '</span><br />
|
|||
|
<span><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.$u->inform('za').' ('.round($u->zago($u->stats['za'])).'%)';
|
|||
|
}
|
|||
|
if( intSpan($u->inform('zm')) != 0 ) {
|
|||
|
$rz1 .= '</span><br />
|
|||
|
<span><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.$u->inform('zma').' ('.round($u->zago($u->stats['zma'])).'%)';
|
|||
|
}
|
|||
|
if( intSpan($u->inform('zmproc')) != 0 ) {
|
|||
|
$rz1 .= '</span><br />
|
|||
|
<span><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>: '.$u->inform('zmproc').'%';
|
|||
|
}
|
|||
|
if( intSpan($u->inform('zaproc')) != 0 ) {
|
|||
|
$rz1 .= '</span><br />
|
|||
|
<span><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>: '.$u->inform('zaproc').'%';
|
|||
|
}
|
|||
|
$rz1 .= '</span>';
|
|||
|
$rz1 .= '</nobr></div>';
|
|||
|
}
|
|||
|
$rz2 ='<script>getLine('.$prtpos[2].',"<22><><EFBFBD><EFBFBD><EFBFBD> ","0","0",'.$uShow[2].',3);</script>';
|
|||
|
if($uShow[2]==1)
|
|||
|
{
|
|||
|
$rz2 .= '<div style="display:none" id="lnk2">
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.$u->stats['mib1'].'-'.$u->stats['mab1'].' ('.($u->stats['mib1']).'+d'.($u->stats['mab1']-($u->stats['mib1'])+1).')<br />
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.$u->stats['mib2'].'-'.$u->stats['mab2'].' ('.($u->stats['mib2']).'+d'.($u->stats['mab2']-($u->stats['mib2'])+1).')<br />
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.$u->stats['mib2'].'-'.$u->stats['mab2'].' ('.($u->stats['mib2']).'+d'.($u->stats['mab2']-($u->stats['mib2'])+1).')<br />
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.$u->stats['mib3'].'-'.$u->stats['mab3'].' ('.($u->stats['mib3']).'+d'.($u->stats['mab3']-($u->stats['mib3'])+1).')<br />
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>: '.$u->stats['mib4'].'-'.$u->stats['mab4'].' ('.($u->stats['mib4']).'+d'.($u->stats['mab4']-($u->stats['mib4'])+1).')<br /></div>';
|
|||
|
}
|
|||
|
$rz3 = '<script>getLine('.$prtpos[3].',"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ","0","0",'.$uShow[3].',4);</script>';
|
|||
|
if($uShow[3]==1)
|
|||
|
{
|
|||
|
$rz3 .= '<div style="display:none" id="lnk3">';
|
|||
|
$i = 1;
|
|||
|
$rz3 .= ucfirst(str_replace('<27><>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ',$u->is['m10'].': '));
|
|||
|
if( intSpan($u->inform('m10')) > 0 )
|
|||
|
{
|
|||
|
$rz3 .= '+';
|
|||
|
}
|
|||
|
$rz3 .= $u->inform('m10').'%<br>';
|
|||
|
while($i<=4)
|
|||
|
{
|
|||
|
|
|||
|
if( intSpan($u->inform('pa'.$i)) != 0 ) {
|
|||
|
$rz3 .= ucfirst(str_replace('<27><>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ',$u->is['pa'.$i].': '));
|
|||
|
if($u->stats['pa'.$i]>0)
|
|||
|
{
|
|||
|
//$rz3 .= '+';
|
|||
|
}
|
|||
|
//$rz3 .= $u->stats['pa'.$i].'<br />';
|
|||
|
if( intSpan($u->inform('pa'.$i)) > 0 ) {
|
|||
|
$rz3 .= '+';
|
|||
|
}
|
|||
|
$rz3 .= $u->inform('pa'.$i).'%<br>';
|
|||
|
}
|
|||
|
$i++;
|
|||
|
}
|
|||
|
$i = 1;
|
|||
|
|
|||
|
while($i<=7)
|
|||
|
{
|
|||
|
if( intSpan($u->inform('pm'.$i)) != 0 ) {
|
|||
|
$rz3 .= ucfirst(str_replace('<27><>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ',$u->is['pm'.$i].': '));
|
|||
|
if($u->stats['pm'.$i]>0)
|
|||
|
{
|
|||
|
//$rz3 .= '+';
|
|||
|
}
|
|||
|
//$rz3 .= $u->stats['pm'.$i].'<br />';
|
|||
|
if( intSpan($u->inform('pm'.$i)) > 0 ) {
|
|||
|
$rz3 .= '+';
|
|||
|
}
|
|||
|
$rz3 .= $u->inform('pm'.$i).'%<br>';
|
|||
|
}
|
|||
|
$i++;
|
|||
|
}
|
|||
|
$rz3 .= '</div>';
|
|||
|
}
|
|||
|
|
|||
|
$zi = array( //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD>
|
|||
|
'n' => array(
|
|||
|
'','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<27><><EFBFBD><EFBFBD><EFBFBD>','<27><><EFBFBD><EFBFBD><EFBFBD>','<27><><EFBFBD><EFBFBD>','<27><><EFBFBD><EFBFBD>'
|
|||
|
),
|
|||
|
1 => array( 1 , 8 , 9 , 52 ), //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
2 => array( 4 , 5 , 6 ), //<2F><><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
3 => array( 2 , 4 , 5 , 6 , 13 ), //<2F><><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
4 => array( 7 , 16 , 10 , 11 , 12 ), //<2F><><EFBFBD><EFBFBD>
|
|||
|
5 => array( 17 ) //<2F><><EFBFBD><EFBFBD>
|
|||
|
);
|
|||
|
|
|||
|
$rz4 = '<script>getLine('.$prtpos[4].',"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ","0","0",'.$uShow[4].',5);</script>';
|
|||
|
if($uShow[4]==1)
|
|||
|
{
|
|||
|
$rz4 .= '<div style="display:none" id="lnk4"><center style="padding:5px;">';
|
|||
|
$rz4 .= '<input class="btn" style="padding:3px 15px 3px 15px;" type="button" name="snatvso" value="<22><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>" onclick="top.frames[\'main\'].location=\'main.php?inv=1&remitem&otdel='.$_GET['otdel'].'\';"
|
|||
|
style="font-weight:bold;" />
|
|||
|
';
|
|||
|
$hgo = $u->testHome();
|
|||
|
if(!isset($hgo['id']))
|
|||
|
{
|
|||
|
$rz4 .= '<input class="btn" style="padding:3px 15px 3px 15px;" type="button" value="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" onclick="top.frames[\'main\'].location=\'main.php?homeworld&rnd='.$code.'\';" style="font-weight:bold;width: 90px" />';
|
|||
|
}
|
|||
|
unset($hgo);
|
|||
|
$rz4 .= '</center>';
|
|||
|
$rz4 .= '</div>';
|
|||
|
}
|
|||
|
|
|||
|
$rz5 ='<script>getLine('.$prtpos[5].',"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <a href=\"#\" onClick=\"save_compl();\"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a> ","0","0",'.$uShow[5].',6);</script>';
|
|||
|
if($uShow[5]==1)
|
|||
|
{
|
|||
|
$rz5 .= '<div style="display:none" id="lnk5">';
|
|||
|
$sp = mysql_query('SELECT * FROM `save_com` WHERE `uid` = "'.$u->info['id'].'" AND `delete` = "0" LIMIT 10');
|
|||
|
while($pl = mysql_fetch_array($sp))
|
|||
|
{
|
|||
|
$rz5 .= '<a href="?inv=1&delc1='.$pl['id'].'&otdel='.((int)$_GET['otdel']).'&rnd='.$code.'"><img src="https://img.new-combats.com/i/close2.gif" title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" width="9" height="9"></a> <small><a href="?inv=1&usec1='.$pl['id'].'&otdel='.((int)$_GET['otdel']).'&rnd='.$code.'"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "'.$pl['name'].'"</a></small><br>';
|
|||
|
}
|
|||
|
$rz5 .= '</div>';
|
|||
|
}
|
|||
|
|
|||
|
$rz6 ='<script>getLine('.$prtpos[6].',"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <a href=\"/main.php?skills=1&rz=4&rnd='.$code.'\"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a> ","0","0",'.$uShow[6].',7);</script>';
|
|||
|
if($uShow[6]==1)
|
|||
|
{
|
|||
|
$rz6 .= '<div style="display:none" id="lnk6">'; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 5
|
|||
|
$sp = mysql_query('SELECT * FROM `complects_priem` WHERE `uid` = "'.$u->info['id'].'" LIMIT 10');
|
|||
|
$rz6 .= '<small>';
|
|||
|
while($pl = mysql_fetch_array($sp)) {
|
|||
|
$rz6 .= '<a onclick="if(confirm(\'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> ?\')){location=\'main.php?inv=1&otdel='.round((int)$_GET['otdel']).'&delcop='.$pl['id'].'\'}" href="javascript:void(0)"><img src="https://'.$c['img'].'/i/close2.gif" width="9" height="9"></a> <a href="main.php?inv=1&otdel='.round((int)$_GET['otdel']).'&usecopr='.$pl['id'].'"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "'.$pl['name'].'"</a><br>';
|
|||
|
}
|
|||
|
$rz6 .= '</small>';
|
|||
|
$rz6 .= '</div>'; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 5
|
|||
|
}
|
|||
|
|
|||
|
$i = 0;
|
|||
|
while($i<count($prt))
|
|||
|
{
|
|||
|
if(isset(${'rz'.$prt[$i]}))
|
|||
|
{
|
|||
|
echo ${'rz'.$prt[$i]};
|
|||
|
}
|
|||
|
$i++;
|
|||
|
}
|
|||
|
|
|||
|
//
|
|||
|
?>
|
|||
|
<script>
|
|||
|
<?
|
|||
|
$i = 0;
|
|||
|
while( $i < count($uShow) ) {
|
|||
|
if( isset($uShow[$i]) && $uShow[$i] == 1 ) {
|
|||
|
echo '$("#lnk'.$i.'").slideToggle();';
|
|||
|
}
|
|||
|
$i++;
|
|||
|
}
|
|||
|
?>
|
|||
|
</script>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</table>
|