<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1251">
<META Http-Equiv=Cache-Control Content=no-cache>
<meta http-equiv=PRAGMA content=NO-CACHE>
<META Http-Equiv=Expires Content=0>
</head>
<BODY bgcolor="#EBEDEC">
<script>
function exit(){
if(confirm("Вы уверены что хотите выйти из игры?")){top.location.href='index.php?action=logout';}
}
</script>
<script LANGUAGE="JavaScript">
<!--
function b (img, link, title, no_framed) {
document.write('<td WIDTH=32>');
if (no_framed < 2) {
document.write('[img]i/navigate/'+img+'.gif[/img]</td>');
}
else {
document.write('[url="\'../'+link+'\'"]<IMG SRC=\'i/navigate/'+img+'.gif\' border=0 alt="'+title+'">[/url]</td>');
}
}
-->
</SCRIPT>
<table WIDTH=100% HEIGHT="64" CELLSPACING="0" CELLPADDING="0">
<tr>
<td background="i/navigate/top_left.gif" WIDTH="418">
<td background="i/navigate/top.gif"></td>
<td background="i/navigate/top_right.gif" WIDTH="418" align=right valign="top">
<table border=0 cellspacing=0 cellpadding=7 align=right>
<tr>
<script LANGUAGE="JavaScript">
<!--
b('settings','main.php?set=edit','Настройки / Инвентарь',0);
b('fight','battle.php?battle_type=1','Поединки',0);
b('world','main.php?set=map','Карта города',0);
<?
include("inc/db_connect.php");
$stat = mysql_fetch_array(mysql_query("SELECT `rank`, 'sclon', `admin`, `tribe`, `level` FROM `players` WHERE `user` = '".mysql_escape_string($_COOKIE['user'])."' AND `pass` = '".mysql_escape_string($_COOKIE['pass'])."' LIMIT 1"));
if ($stat['level'] >= 7) print "b('transfer','main.php?set=transfer','Передача предметов / золота',0);";
if ($stat['tribe']) print "b('clan','main.php?set=clan','Клан',0);";
if (($stat['rank'] >= 80 && $stat['rank'] < 85) || ($stat['rank'] >= 88 && $stat['rank'] <= 90)) print "b('guard2','guard2.php?','Инквизиция',0);";
if (($stat['rank'] >= 10 && $stat['rank'] < 15) || $stat['rank'] >= 98) print "b('guard','guard.php?','Инквизиция',0);";
if ($stat['rank'] == 30) print "b('diller','diller.php?','Дилерство',0);";
if ($stat['admin'] == 1) print "b('admin','admin/index.php?','Центр администрирования',0);";
if (($stat['rank'] == 20)||($stat['rank'] >= 88 && $stat['rank'] <= 90)||($stat['rank'] >= 80 && $stat['rank'] < 85)) print "b('dark','dark.php?','Тьма',0);";
if (($stat['sclon'] == 1)||($stat['sclon'] >= 88 && $stat['sclon'] <= 90)||($stat['sclon'] >= 80 && $stat['sclon'] < 85)) print "b('light','light?','Свет',0);";
if (($stat['sclon'] == 2)||($stat['sclon'] >= 88 && $stat['sclon'] <= 90)||($stat['sclon'] >= 80 && $stat['sclon'] < 85)) print "b('dark','sclon/dark.php?','Тьма',0);";
?>
b('friends','main.php?set=friends','Друзья',0);
b('abils','forum.php?f=main','Форум',2);
b('exit','index.php?action=logout','Выйти из игры',1);
//-->
</SCRIPT>
</tr>
</table>
</td>
</tr>
</table>