battles/game_main.php

558 lines
28 KiB
PHP
Raw Normal View History

2018-01-28 16:40:49 +00:00
<?php
function er($e) {
global $c;
die('<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta http-equiv="Content-Language" content="ru"><title>Произошла ошибка</title></head><body text="#FFFFFF"><p><font color=black>Произошла ошибка: <pre>'.$e.'</pre><b><p><a href="//capitalcity.old-dark.ru/">Назад</b></a><hr /><p align="right">(&copy;) <a href="//capitalcity.old-dark.ru/">Бойцовский Клуб Возрождение</a></p></body></html>');
}
session_start();
header('Content-type: text/html; charset=utf-8');
include('config.php');
include('functions.php');
if(!isset($user['id'])){
er('Возникла проблема с определением id персонажа<br />Авторизируйтесь с главной страницы.');
}
/*
if($user['online'] < time()-60) {
$filter->setOnline($user['online'], $user['id'], 0);
mysql_query("UPDATE `users` SET `online` = '".time()."', `timeMain` = '".time()."' WHERE `id` = '".$user['id']."' LIMIT 1");
}
*/
$code = mt_rand(1, 99999999);
if($user['align'] == 2.99) {
$admin = 1;
} else {
$admin = 0;
}
$user['login'] = iconv("utf-8", "utf-8", $user['login']);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "//www.w3.org/TR/html4/frameset.dtd">
<html xmlns="//www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
<title>Бойцовский Клуб Возрождение</title>
<meta name="author" content="The Kite Runner"/>
<noscript><meta http-equiv="refresh" content="0; URL=/badbrowser.html" /></noscript>
<link href="//img.capitalcity.old-dark.ru/css/main.css" rel="stylesheet" type="text/css" />
<link href="//img.capitalcity.old-dark.ru/css/clu0b.css" rel="stylesheet" type="text/css" />
<script>
var c = {
noEr:0,
noErTmr:0,
url:'capitalcity.old-dark.ru',
img:'img.capitalcity.old-dark.ru',
uid:<?=(0+$user['id']);?>,
login:'<?=$user['login'];?>',
city:'capitalcity',
lvl:<?=$user['level'];?>,
rnd:'<?=$code;?>',
filter:0,
time:<?=time();?>,
pl:0,
align:<?=$user['align'];?>,
clan:'<?=$user['clan'];?>',
admin:<?=$admin;?>,
sound:0,
money:<?=$user['money'];?>,
room:<?=$user['room'];?>
}, sd4key = "", lafstReg = {},enterUse = 0;
function ctest(city) {
if(city != c['city']) {
top.location = 'game_main.php';
}
}
function testKey(event) {
if(event.keyCode == 10 || event.keyCode == 13) {
if(top.enterUse == 0) {
chat.subSend(); top.enterUse = 1; setTimeout('top.enterUse = 0',1000);
}
}
}
setInterval('c.time++', 1000);
var rnd = Math.random();
var delay = 12;
var redHP = 0.33;
var yellowHP = 0.66;
var TimerOn = -1;
var tkHP, maxHP;
function setHP(value, max) {
tkHP = value; maxHP = max;
if(TimerOn >= 0) {
clearTimeout(TimerOn);
TimerOn = -1;
}
setHPlocal();
}
function setHPlocal() {
if(tkHP > maxHP) {
tkHP = maxHP;
}
var sz1 = Math.round((149/maxHP)*tkHP);
var sz2 = 150 - sz1;
if(top.frames['main'].document.all("HP")) {
top.frames['main'].document.HP1.width = sz1;
top.frames['main'].document.HP2.width = sz2;
if(tkHP/maxHP < redHP) {
top.frames['main'].document.HP1.src = 'i/1red.gif';
} else {
if(tkHP/maxHP < yellowHP) {
top.frames['main'].document.HP1.src = 'i/1yellow.gif';
} else {
top.frames['main'].document.HP1.src = 'i/1green.gif';
}
}
var s = top.frames['main'].document.all("HP").innerHTML;
top.frames['main'].document.all("HP").innerHTML = s.substring(0, s.lastIndexOf(':')+1) + Math.round(tkHP)+"/"+maxHP;
}
tkHP = (tkHP+(maxHP/100));
if(tkHP < maxHP) {
TimerOn = setTimeout('setHPlocal()', delay*1000);
} else {
TimerOn = -1;
}
}
</script>
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script>
$.ajaxSetup({ cache: false });
$(window).error(function() {
return true;
});
var iusrno = {};
function ignoreUser(u) {
if(iusrno[u] == undefined || iusrno[u] == 0) {
$('#main').attr({'src':'main.php?friends=1&ignore=' + u + ''});
} else {
$('#main').attr({'src':'main.php?friends=1&ignore=' + u + ''});
}
}
</script>
<script type="text/javascript" src="js/main/jqueryrotate.js"></script>
<script type="text/javascript" src="js/main/jquery.zclip.js"></script>
<script type="text/javascript" src="js/main/jquery.cookie.js"></script>
<script type="text/javascript" src="js/main/title.js"></script>
<script type="text/javascript" src="js/main/gameEngine.js?<?=time()?>"></script>
<script type="text/javascript" src="js/main/interface.js"></script>
<script type="text/javascript" src="js/main/onlineList.js?<?=time()?>"></script>
<script type="text/javascript" src="js/main/jquery-fireHint.js"></script>
<script type="text/javascript" src="js/main/swiffy.min.js"></script>
<script type="text/javascript" src="js/main/swiffy/clock.js?hours=<?=date("H")?>&minutes=<?=date("i")?>&sec=<?=date("s")?>"></script>
<style type="text/css">
.woman a { color: #C33; }
.woman a:hover { color: #ff0000; }
img { vertical-align: bottom; }
.qel0 { dispaly: none; position:absolute; z-index:100000; border:4px solid #f5cc50; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; }
</style>
</head>
<body onload="bodyLoaded()">
<div class="qel0" id="qel0" style="display: none;"></div>
<noscript><center>Рвашем браузере отсутствует поодержка <b>javascript</b></center></noscript>
<style>
.CSSteam0 { font-weight: bold; cursor:pointer; }
.CSSteam1 { font-weight: bold; color: #6666CC; cursor:pointer; }
.CSSteam2 { font-weight: bold; color: #B06A00; cursor:pointer; }
.CSSteam3 { font-weight: bold; color: #269088; cursor:pointer; }
.CSSteam4 { font-weight: bold; color: #A0AF20; cursor:pointer; }
.CSSteam5 { font-weight: bold; color: #0F79D3; cursor:pointer; }
.CSSteam6 { font-weight: bold; color: #D85E23; cursor:pointer; }
.CSSteam7 { font-weight: bold; color: #5C832F; cursor:pointer; }
.CSSteam8 { font-weight: bold; color: #842B61; cursor:pointer; }
.CSSteam9 { font-weight: bold; color: navy; cursor:pointer; }
.CSSvs { font-weight: bold; }
.buttons:hover { background-color:#EFEFEF; }
.buttons:active { color:#777777; }
.buttons { background-color:#E9E9E9; }
.menutop2{color:#003366;} .menutop2:hover{
color:#446B93;
}
.klan { font-weight:bold; color: green; background-color: #99FFCC;}
.redColor {
color: #FF0000;
font-weight: bold;
}
.borderWhite {
border: 1px solid #f2f0f0;
}
.date21 {
font-family: Courier;
font-size: 8pt;
text-decoration:underline;
font-weight:normal;
color: #007000;
background-color: #00FFAA
}
.zoneCh_no {
float:left;
overflow:hidden;
height: 18px;
width: 18px;
}
.inpBtl {
color: #000000;
text-decoration: none;
background-color: #ECE9D8;
border: 1px solid #000000;
}
.zoneCh_yes {
float:left;
overflow:hidden;
height: 18px;
width: 18px;
background-color: #A9AFB1;
}
body {
background-color: #e8e8e8;
}
.st1222 {
font-size: 18px;
color: #990000;
font-weight: bold;
}
.crop {
float:left;
overflow:hidden;
height: 18px;
width: 18px;
}
.radio_off {
margin-left:0px;
}
.radio_on {
margin-left:-18px;
}
.battle_hod_style {
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #AEAEAE;
}
.zbtn1l{ width:9px; height:18px; background: url(/tab.png) 0px 0px repeat-x;}
.zbtn1r { width:9px; height:18px; background: url(/tab.png) -18px 0px repeat-x;}
.zbtn1r2 { width:9px; height:18px; background: url(/tab.png) 18px 0px repeat-x;}
.zbtn2l{ width:9px; height:18px; background: url(/tab.png) -36px 0px repeat-x;}
.zbtn2r { width:9px; height:18px; background: url(/tab.png) -54px 0px repeat-x;}
.zbtn2r2 { width:9px; height:18px; background: url(/tab.png) -90px 0px repeat-x;}
.zbtn2r3 { width:9px; height:18px; background: url(/tab.png) 54px 0px repeat-x;}
.zbtn1c{ background-color: #808080; border-top-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-bottom-style: solid; border-top-color: #000000; border-bottom-color: #000000; color: #FFFFFF; cursor:default; padding-left:5px; padding-right:5px; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif;}
.zbtn2c{
background-color: #D5D2C9;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #000000;
color: #000000;
cursor:default;
padding-left:5px;
padding-right:5px;
FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif;
font-weight: bold;
}
</style>
<script>
if(window.top !== window.self) {
document.write = "";
window.top.location = window.self.location;
setTimeout(function() {
document.body.innerHTML = 'Ошибка доступа.';
}, 500);
window.self.onload = function(evt) {
document.body.innerHTML = 'Ошибка доступа.';
};
}
function cc(el) {
$(window).resize(function() {
$(el).css({position : 'absolute', left : ($(document).width() - $(el).outerWidth())/2, top : ($(document).height() - $(el).outerHeight())/2});
});
$(window).resize();
}
</script>
<style>
#qsst {
position:absolute;
z-index:10000000;
cursor:default;
display:none;
top:50px;
left:50px;
}
#onbon {
position:absolute;
z-index:100;
cursor:default;
display:none;
bottom:30px;
left:18px;
}
#mini_qsst {
position:absolute;
z-index:100;
cursor:default;
display:none;
bottom:10px;
right:18px;
}
#mini_sms {
position:absolute;
z-index:100;
cursor:default;
display:none;
bottom:10px;
right:18px;
}
</style>
<div id="qsst"></div>
<div id="ttl" class="ttl_css" style="display:none;z-index:1111;"></div>
<div id="nfml" style="display:none;position:absolute;"></div>
<div id="persmenu" style="display:none;z-index:1110;"></div>
<div id="windows" style="position:absolute;z-index:1101;"></div>
<div id="wupbox" onmouseup="win.WstopDrag()" onmousemove="win.WmoveDrag(event)" onselectstart="return false"></div>
<div id="actionDiv" style="position: absolute;"></div>
<div id="reline1" onselectstart="return false">
<img src="//img.capitalcity.old-dark.ru/1x1.gif" width="9" height="4" style="float:left; display:block; position:absolute; background-image:url(//img.capitalcity.old-dark.ru/i/lite/_top_24.gif);" />
<img src="//img.capitalcity.old-dark.ru/1x1.gif" width="10" height="4" style="float:right; display:block; background-image:url(//img.capitalcity.old-dark.ru/i/lite/_top_28.gif);" />
</div>
<div id="reline2" onselectstart="return false"></div>
<div id="upbox" onselectstart="return false"></div>
<div style="position:absolute; top:0; left:0; height:37px; width:100%;" onselectstart="return false">
<div style="background: url(//img.capitalcity.old-dark.ru/i/lite/capitalcity/top_lite_cap_11.gif) repeat-x bottom; ">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="background: url(//img.capitalcity.old-dark.ru/i/lite/top_lite_cap_03.gif) repeat-x top; ">
<tr>
<td align="left"><img src="//img.capitalcity.old-dark.ru/i/lite/capitalcity/top_lite_cap_01.gif" height="14" class="db" /></td>
<td align="right" class="main_text" style="position: relative"><table cellspacing="0" cellpadding="0" border="0" width="490">
<tr valign="bottom" align="center">
<td width="31" height="14"><img class="db" height="14" src="//img.capitalcity.old-dark.ru/i/lite/mennu112_06_lite.gif" width="31" /></td>
<td align="center"><table height="14" cellspacing="0" cellpadding="0" width="100%" background="//img.capitalcity.old-dark.ru/i/lite/mennu112_06.gif" border="0">
<tr align="middle">
<td id="el1" class="main_text" onClick="this.style.backgroundColor='#404040'; this.style.color='#FFFFFF'; showtable('1');" align="center">Знания</td>
<td width="1"><img class="db" height="11" src="//img.capitalcity.old-dark.ru/i/lite/mennu112_09.gif" width="1" /></td>
<td id="el2" class="main_text" onClick="this.style.backgroundColor='#404040'; this.style.color='#FFFFFF'; showtable('2');" align="center">Общение</td>
<td width="1"><img class="db" height="11" src="//img.capitalcity.old-dark.ru/i/lite/mennu112_09.gif" width="1" /></td>
<td id="el3" class="main_text" onClick="this.style.backgroundColor='#404040'; this.style.color='#FFFFFF'; showtable('3');" align="center">Безопасность</td>
<td width="1"><img class="db" height="11" src="//img.capitalcity.old-dark.ru/i/lite/mennu112_09.gif" width="1" /></td>
<td id="el4" class="main_text" onClick="this.style.backgroundColor='#404040'; this.style.color='#FFFFFF'; showtable('4');" style="background:#404040; color:#FFFFFF;" align="center">Персонаж</td>
<td width="1"><img class="db" height="11" src="//img.capitalcity.old-dark.ru/i/lite/mennu112_09.gif" width="1" /></td>
<td id="el5" class="main_text" onClick="if(confirm('Выйти из игры?')) { top.location = '/game_main.php?exit&rnd=<?=$code?>'; }" align="center">Выход&nbsp;</td>
</tr>
</table></td>
<td width="38"><img class="db" height="14" src="//img.capitalcity.old-dark.ru/i/lite/mennu112_04_lite.gif" width="37" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left"><img style="display:block; float:left;" src="//img.capitalcity.old-dark.ru/i/lite/top_lite_cap_07.gif" width="15" height="17" /><img class="db" src="//img.capitalcity.old-dark.ru/i/lite/capitalcity/top_lite_cap_08.gif" height="17" /></td>
<td align="right">
<table cellspacing="0" cellpadding="0" width="490" style="background-image:url(//img.capitalcity.old-dark.ru/i/lite/top_lite_cap_15.gif);" border="0">
<tr>
<td align="right" class="menutop"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="20"><img class="db" src="//img.capitalcity.old-dark.ru/i/lite/top_lite_13.gif" width="20" height="17" /></td>
<td align="right" valign="top" background="//img.capitalcity.old-dark.ru/i/lite/top_lite_low_15.gif" style="font-size:10px;">
<span style="display: none;" id="menu1"> <a href="//www.istbk.ru/encicl/law.html" target="_blank" class="menutop">Законы</a> | <a href="/encicl/sagl.html" target="_blank" class="menutop">Соглашения</a> | <a href="//www.istbk.ru/encicl" target="_blank" class="menutop">Библиотека</a>| <a href="/ratings_users.htm" target="_blank" class="menutop">Рейтинг</a>&nbsp;</span>
<span style="display: none;" id="menu2"><a onClick="top.telegraf(); return false" href="javascript:void(0)" target="_blank" class="menutop"> Телеграммы </a> | <a href="//events.capitalcity.old-dark.ru" target="_blank" class="menutop"> Новости </a> | <a href="//capitalcity.old-dark.ru/forum.php" target="_blank" class="menutop"> Форум </a> &nbsp;</span>
<span style="display: none;" id="menu3"> <a href="main.php?act_sec=1" target="main" class="menutop">Отчеты</a> | <a href="main.php?security&rnd=<?=$code;?>" target="main" class="menutop">Смена пароля</a>&nbsp;</span>
<span style="display:;" id="menu4"><a href="/main.php?edit=1&rn=<?=$code;?>" target="main" class="menutop">Инвентарь</a> | <a href="/main.php?skills=1&side=5" target="main" class="menutop">Умения</a> | <a href="/main.php?act_trf=1" target="main" class="menutop">Отчеты о переводах</a> | <a href="/main.php?zayvka=1" target="main" class="menutop">Поединки</a> | <a href="/main.php?anketa=1" target="main" class="menutop">Анкета</a>&nbsp;</span>
</td>
<td width="22"><img class="db" src="//img.capitalcity.old-dark.ru/i/lite/top_lite_18.gif" width="22" height="17" /></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="15" height="6"><img class="db" src="//img.capitalcity.old-dark.ru/i/lite/_lit_20.gif" width="15" height="6" /></td>
<td background="//img.capitalcity.old-dark.ru/i/lite/_top_20s.gif"><img class="db" src="//img.capitalcity.old-dark.ru/i/lite/capitalcity/cap_lit_21.gif" width="79" height="6" /></td>
<td width="24" height="6"><img class="db" src="//img.capitalcity.old-dark.ru/i/lite/_lit_27.gif" width="24" height="6" /></td>
</tr>
</table>
<!-- -->
</div>
<table id="globalMain" width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="31" width="9" bgcolor="#D6D6D6"></td>
<td height="31" bgcolor="#D6D6D6">&nbsp;</td>
<td height="31" width="12" bgcolor="#D6D6D6"></td>
</tr>
<tr>
<td bgcolor="#D6D6D6" background="//img.capitalcity.old-dark.ru/i/lite/_top_24.gif"></td>
<td valign="top" bgcolor="#e2e0e0" id="main_td">
<div id="touchmain" style="margin-top: 3px;">
<iframe id="main" name="main" src="main.php" frameborder="0" style="display:block;padding-top:0px;padding:0;margin:0;width:100%;border:0;" scrolling="auto"></iframe>
</div>
</td>
<td bgcolor="#D6D6D6" background="//img.capitalcity.old-dark.ru/i/lite/_top_28.gif"></td>
</tr>
<tr>
<td bgcolor="#D6D6D6" background="//img.capitalcity.old-dark.ru/i/lite/_top_24.gif"></td>
<td id="chat" valign="top" height="30%" bgcolor="#eeeeee">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" style="border-top:1px solid #CCCCCC">
<tr>
<td valign="top" id="chat_block" style="position:relative;display:block;border-top:1px solid #808080">
<div id="mini_qsst" onClick="top.qn_slk()" style="cursor: pointer"></div>
<div id="onbon"></div>
<div id="chat_menus" unselectable="on" onselectstart="return false;" style="position:absolute; right:0px; top:3px; padding-right:20px; height:18px; text-align:right; white-space:nowrap;">
<!-- -->
<table border="0" style="margin-top:-3px;" align="right" cellpadding="0" cellspacing="0">
<tr>
<td>
<div id="chat_menu" style="text-align: right; white-space: nowrap;"></div>
</td>
<td style="display: none;" id="scroll_none" width="3"></td>
</tr>
</table>
<!-- -->
</div>
<div id="ttSmiles" onselectstart="return false" style="display:none;z-index:1100;">
<div id="smilesDiv">Загрузка смайликов</div>
<div align="center"><button onClick="chat.lookSmiles()">Закрыть</button></div>
</div>
<div id="chat_list" style="cursor:default;">
<div id="canals">
</div>
</div>
</td>
<td width="260" valign="top" bgcolor="#faf2f2" style="border-left: 2px solid #CCCCCC; border-top: 1px solid #808080" id="online">
<div id="online_list" style="cursor: default;">
<div align="center" style="margin-top:5px;"><input type="button" id="robtn" onclick="chat.reflesh()" value="Обновить" /></div>
<font class="db" style="padding:0px 0 8px 0;font-size: 10pt; color:#8f0000;"><b id="roomName"></b></font>
<div id="onlist"></div>
<div style="border-top:#cac2c2 solid 1px;padding:5px;margin-top:5px;">
<div><label><input type="checkbox" value="1" <? if($user['level'] < 8 ) { ?>checked<? } ?> id="autoRefOnline">Обновлять автомат.</label></div>
</div>
</div>
</td>
</tr>
</table>
</td>
<td bgcolor="#D6D6D6" background="//img.capitalcity.old-dark.ru/i/lite/_top_28.gif"></td>
</tr>
<tr>
<td height="30" valign="bottom"><img class="db" src="//img.capitalcity.old-dark.ru/i/lite/bkf_l_r1_02.gif" width="9" height="30"></td>
<td height="30" bgcolor="#E9E9E9" background="//img.capitalcity.old-dark.ru/i/buttons/chat_bg.gif">
<table width="100%" height="26" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="30"><img class="db" src="//img.capitalcity.old-dark.ru/b___.gif" width="30" height="30" title="Чат"></td>
<td <? if($_COOKIE['chatCfg11'] < 1) { echo 'style="display: none;" '; } ?>width="100" align="center" id="globalMode"><div style="border:1px solid #CCCCCC;background-color:#EAEAEA;color:#717171;padding:2px; width:90%;"><small id="moneyGM"><?=$user['money']?> РєСЂ.</small></div></td>
<td><input onmouseup="top.chat.inObj=undefined;" type="text" name="textmsg" id="textmsg" maxlength="240" onKeyPress="top.testKey(event)" style="width:100%;font-size:9pt;margin-bottom:2px;" /></td>
<td width="6">&nbsp;</td>
<td width="30"><img onClick="chat.subSend();" src="//img.capitalcity.old-dark.ru/1x1.gif" class="db cp chatBtn2_1"></td>
<td width="5">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="//fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="1" height="1" id="Sound" align="middle">
<param name="allowScriptAccess" value="always" />
<param name="movie" value="flash/Sound2.1.swf" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="wmode" value="transparent" />
<embed src="flash/Sound2.1.swf" quality="high" scale="noscale" wmode="transparent" width="1" height="1" name="Sound" id="Sound2" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="//www.macromedia.com/go/getflashplayer" />
</object>
</td>
<td width="30"><img onClick="chat.clear();" class="db cp" src="//img.capitalcity.old-dark.ru/i/buttons/chatBtn3.gif"></td>
<td width="30"><img onClick="chat.filterMsg();" id="chbtn1" src="//img.capitalcity.old-dark.ru/1x1.gif" class="db cp chatBtn1_1"></td>
<td width="30"><img onClick="chat.systemMsg();" id="chbtn4" src="//img.capitalcity.old-dark.ru/1x1.gif" class="db cp chatBtn4_<? if(isset($_COOKIE['citySys']) && $_COOKIE['citySys']==1){ echo 2; }else{ echo 1; } ?>"></td>
<td width="30"><img id="chbtn6" onClick="chat.translitChat()" src="//img.capitalcity.old-dark.ru/1x1.gif" class="db cp chatBtn6_1"></td>
<td width="30"><img id="chbtn7" onClick="chat.soundChat()" src="//img.capitalcity.old-dark.ru/1x1.gif" class="db cp chatBtn7_1"></td>
<td width="5">&nbsp;</td>
<td width="30"><img id="chbtn8" class="db cp chatBtn8_1" onClick="chat.lookSmiles()" src="//img.capitalcity.old-dark.ru/1x1.gif"></td>
<td width="16" bgcolor="#BAB7B3"><img src="//img.capitalcity.old-dark.ru/i/buttons/chat_explode.gif" width="16" height="30" class="db" /></td>
<td width="30"><img width="30" height="30" id="qel1" onclick="top.getUrl('main','main.php?inv=1&rnd='+c.rnd);" class="db cp" src="//img.capitalcity.old-dark.ru/i/buttons/chatBtn13.gif"></td>
<? if($user['level']>3){ ?>
<td width="30"><img onClick="top.getUrl('main','main.php?transfer=1&rnd='+c.rnd);" class="db cp" src="//img.capitalcity.old-dark.ru/i/buttons/chatBtn16.gif"></td>
<? } if($user['level']>0){ ?>
<td width="30"><img onClick="top.getUrl('main','main.php?alh=1&rnd='+c.rnd);" class="db cp" src="//img.capitalcity.old-dark.ru/i/buttons/chatBtn9.gif"></td>
<? } if($admin == 1) {?>
<td width="30"><img onClick="top.getUrl('main','main.php?alhp=1&rnd='+c.rnd);" class="db cp" src="//img.capitalcity.old-dark.ru/i/buttons/chatBtn20.gif"></td>
<?} if($user['align']>=1 && $user['align']<2 ){ ?>
<td width="30"><img onClick="top.getUrl('main','main.php?light=1&rnd='+c.rnd);" class="db cp" src="//img.capitalcity.old-dark.ru/i/buttons/chatBtn15.gif"></td>
<? } if($user['align']>=3 && $user['align']<4){ ?>
<td width="30"><img onClick="top.getUrl('main','main.php?dark=1&rnd='+c.rnd);" class="db cp" src="//img.capitalcity.old-dark.ru/i/buttons/chatBtn10.gif"></td>
<? } if($user['vip']>time() || $u->stats['silver']>0){ ?>
<td width="30"><img onClick="top.getUrl('main','main.php?vip=1&rnd='+c.rnd);" class="db cp" src="//img.capitalcity.old-dark.ru/i/buttons/chatBtn17.gif"></td>
<? } if($user['level']>0){ ?>
<td width="30"><img onClick="top.getUrl('main','main.php?friends=1&rnd='+c.rnd);" class="db cp" src="//img.capitalcity.old-dark.ru/i/buttons/chatBtn12.gif"></td>
<? } if($user['level']>=0){ ?>
<td width="30"><img onClick="top.getUrl('main','main.php?notepad=1&rnd='+c.rnd);" class="db cp" src="//img.capitalcity.old-dark.ru/b_notepad.gif"></td>
<? } if($user['level']>-1){ ?>
<? } if($user['klan'] != '' || ($user['align']>1 && $user['align']<2)){ ?>
<td width="30"><img onClick="top.getUrl('main','main.php?clan=1&rnd='+c.rnd);" class="db cp" src="//img.capitalcity.old-dark.ru/i/buttons/chatBtn14.gif"></td>
<? } if($admin > 0){ ?>
<td width="30"><img onClick="top.getUrl('main','main.php?admin=1&rnd='+c.rnd);" class="db cp" src="//img.capitalcity.old-dark.ru/i/buttons/chatBtn19.gif"></td>
<? } ?>
<td width="30"><img onClick="if(confirm('Выйти из игры?')){ top.location = '/buttons.php?exit&rnd=<?=$code?>'; }" class="db cp" src="//img.capitalcity.old-dark.ru/i/buttons/chatBtn11.gif"></td>
<td width="70">
<div id="header-fallback" style="display:none;">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="70" height="25">
<param name="movie" value="flash/clock.swf?hours=<?=date("H")?>&amp;minutes=<?=date("i")?>&amp;sec=<?=date("s")?>">
<param name="quality" value="high">
<embed src="flash/clock.swf?hours=<?=date("H")?>&minutes=<?=date("i")?>&sec=<?=date("s")?>" quality="high" pluginspage="//www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="70" height="25"></embed>
</object>
</div>
<div id="swiffycontainer" style="width: 70px; height: 26px"></div>
</td>
</tr>
</table>
</td>
<td height="30" align="right" bgcolor="#D6D6D6"><img class="db" src="//img.capitalcity.old-dark.ru/i/lite/bkf_l_r1_06.gif" width="9" height="30"></td>
</tr>
<tr>
<td height="5" bgcolor="#D6D6D6" style="background:url(//img.capitalcity.old-dark.ru/sand_mid_31.png);"></td>
<td height="5" bgcolor="#D6D6D6" style="background:url(//img.capitalcity.old-dark.ru/sand_mid_31.png);"><!-- iFrames zone --></td>
<td height="5" bgcolor="#D6D6D6" style="background:url(//img.capitalcity.old-dark.ru/sand_mid_31.png);"></td>
</tr>
</table>
<script>
$(window).load(function(){
if(!jQuery.support.leadingWhitespace) {
$('#swiffycontainer').hide();
$('#header-fallback').show();
} else {
window.history.replaceState('', 'Бойцовский Клуб Возрождение', '?hours=<?=date("H")?>&minutes=<?=date("i")?>&sec=<?=date("s")?>');
var stage = new swiffy.Stage(document.getElementById('swiffycontainer'), swiffyobject);
stage.start();
window.history.replaceState('', 'Бойцовский Клуб Возрождение', 'game_main.php');
}
});
startEngine(); chat.testTimer(false);
<?
echo 'top.frames[\'main\'].locitems = 1; parent.$(\'#canal1\').html(\'\'); top.ctest("capitalcity"); top.sd4key = ""; var battle = '.(0+$user['battle']).';';
?>
</script>
</body>
</html>