<?
$set['web']=false;
//header("Content-type: application/vnd.wap.xhtml+xml");
//header("Content-type: application/xhtml+xml");
header("Content-type: text/html");
echo '<?xml version="1.0" encoding="utf-8"?>';
?><!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">
<head><title>indwap.tk | <?echo $set['title'];?></title>
<link rel="shortcut icon" href="/favicon.ico" /><style type="text/css">
.composerIcon{padding:0 3px 3px;vertical-align:middle}.composerInput{height:60px;margin-bottom:7px} .composerClosed .composerInput{height:auto} #composer_form{display:inline}.acw{background-color:#fff} .acbk{background-color:#000} .acb{background-color:#3b5998} .aclb{background-color:#eceff5} .acg{background-color:#f2f2f2} .acy{background-color:#fffbe2} .acr{background-color:#ffebe8}.aps{padding:2px 3px} .apm{padding:4px 3px} .apl{padding:6px 3px}form{margin:0;border:0}.comboInput td{vertical-align:top} .comboInput .inputCell{width:100%;padding-right:10px} .comboInput .input{width:100%}.input{border:solid 1px #999;border-top-color:#888;margin:0;padding:3px}label.btn input{background:none;border:none;margin:0} .btn{background:#e4e4e3;border:solid 2px;border-color:#aaa #999 #888;margin:0} .btnC{background:#5b74a8;border-color:#8a9ac5 #29447E #1a356e;color:#fff} .btnS{background:#69a74e;border-color:#98c37d #3b6e22 #2c5115;color:#fff} .btnN{background:#ee3f10;border-color:#f48365 #8d290e #762610;color:#fff} .btnF{display:inline}
.abt{border-top:solid 1px} .abb{border-bottom:solid 1px} .acw{border-color:#e9e9e9} .aclb{border-color:#d8dfea} .acg{border-color:#ccc} .acy{border-color:#e2c822} .acr{border-color:#dd3c10}
</style>

<link rel="stylesheet" href="/style/themes/<?echo $set['set_them'];?>/style.css" type="text/css" />
</head>
<body>
<?

if(isset($user)){
echo "<div id='fb_header' class='logo'><table width='100%'><tr><td align='left' style='width:30%'><img height='25' width='79' id='facebook_logo' alt='indwap.tk' src='/style/themes/$set[set_them]/logo.png' /></td><td align='right' id='down' valign='bottom' style='width:50%'><small><a id='down' href='#usearch'><span class='qsearch'>Search</ span></a></td></tr></table>";
echo "<table><small><tr>";
if($_SERVER['PHP_SELF']=='/index.php'){
echo "<td class='logono'><a href='/index.php' >Home</a></td>";
}
else
{
echo "<td><a href='/index.php?SESS=$sess' >Home</a></td>";
}
if($_SERVER['PHP_SELF']=='/info.php'){
echo "<td class='logono'><a href='/info.php?SESS=$sess' >Profile</a></td>";
}
else
{
echo "<td><a href='/info.php?SESS=$sess' >Profile</a></td>";
}
if($_SERVER['PHP_SELF']=='/frend.php'){
echo "<td class='logono'><a href='/frend.php?SESS=$sess' >Friends</a></td>";
}
else
{
echo "<td><a href='/frend.php?SESS=$sess' >Friends</a></td>";
}



if($_SERVER['PHP_SELF']=='/mail.php'){
$knm=mysql_result(mysql_query("SELECT COUNT(*) FROM `mail` WHERE `id_kont` = '$user[id]' AND `read` = '0'"), 0);

echo "<td class='logono'><a href='/mail.php?SESS=$sess' >";
if ($knm>0){
echo "$knm";
}
echo "Inbox</a></td>";
}
else
{
$knm=mysql_result(mysql_query("SELECT COUNT(*) FROM `mail` WHERE `id_kont` = '$user[id]' AND `read` = '0'"), 0);
echo "<td><a href='/mail.php?SESS=$sess' >";
if ($knm>0){
echo "$knm";
}
echo "Inbox</a></td>";
}
echo "</tr></small></table>";
echo "</div></div>";
}

if(!isset($user)){
echo'<div id="marquee_tabs" class="logo"><table width="100%"><tr><td align="left" style="width:50%"><img height="25" width="79" id="facebook_logo" alt="INDWAP.Tk" src="/style/themes/default/logo.png" /> </td><td align="right" valign="bottom" style="width:50%"><small><span class="qsearch"></span></a></small></td></tr></table></div>';}

?>
