<?
list($msec, $sec) = explode(chr(32), microtime());
if(isset($user)){
echo "<div class='footer'>";
echo "<a href='/index.php?SESS=$sess'> Home</a> &#183;<a href='/info.php?SESS=$sess'> Profile</a> &#183;<a href='/frend.php?SESS=$sess'> Friends</a>";

echo " &#183;<a href='/mail.php?SESS=$sess'>";
if ($knm>0){
echo "$knm";
}
echo " Inbox</a><br /></div>\n";

if ($_SERVER['PHP_SELF']=='/users.php'){
}
else
{
/*echo "<div class='search'>";
echo "<form method=\"post\" action=\"/users.php?go&amp;sort=$sort&amp;$por\">";
echo '<input size="15" type="text" name="usearch" maxlength="15" value="" /><input type="submit" class="btn btnF" value="Search" /></div>';*/
echo "<div class=\"abt acg apm\" id=\"search\"><form method=\"post\" action=\"/users.php?go&amp;sort=$sort&amp;$por\"><table class=\"comboInput\" cellpadding=\"0\" cellspacing=\"0\"><tbody><tr><td class=\"inputCell\"><input class=\"input\" name=\"usearch\" value=\"\" size=\"15\" type=\"text\"></td><td><input value=\"Pencarian\" class=\"btn\" type=\"submit\"></td></tr></tbody></table></form></div>";

}
echo "<div class='footer'>";
echo "<a href='/indwap.jar'>Download</a> Bookmark indwap for your $user[ua] browser.<br/>";
echo "<a href='/users.php?SESS=$sess'>Find friends </a> &#183; <a href='/umenu.php?SESS=$sess'>Settings </a> &#183; <a href='/help.php?SESS=$sess'>Help</a><br/>";
echo "<a href='/exit.php'>Log out </a>";
echo " <a href='/info.php'>($user[nick])</a> ";

echo "&#183;<a href='/smiles/'> Smiles</a><br/>";

echo "</div>\n";
}
echo "<div class='footer'>\n";
echo "<font color='#A9A9A9'><b>Indwap.tk &copy; 2010-2011</b> <b><i><a href='/'>DCMS.SU</i></b></a></font><br/>";

if(isset($user)){
$cowo= mysql_result(mysql_query("SELECT `nick` FROM `user` WHERE `pol` = '1' ORDER BY id DESC LIMIT 1"), 0);
echo "<span style='text-shadow:#A3039A 0.08em 0.08em 0.08em'><font color='#800279'>M:</font></span> <font color='#0084b5'>$cowo&trade;</font> ";
$cewe= mysql_result(mysql_query("SELECT `nick` FROM `user` WHERE `pol` = '0' ORDER BY id DESC LIMIT 1"), 0);
echo "<span style='text-shadow:#A3039A 0.08em 0.08em 0.08em'><font color='#F7245B'>F:</font></span> <font color='#0084b5'>$cewe&trade;</font> ";
echo "On : \n";
if (mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `date_last` > ".(time()-600).""), 0)>0)
{
//echo "<a href='/onliner.php'> On</a>: ";
if (isset($user) && mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `date_last` > ".(time()-600).""), 0)==1)
{
//echo "<span style='text-shadow:#A3039A 0.08em 0.08em 0.08em'><font color='#800279'>Only you..</font></span>.";
}
else
{
$q = mysql_query("SELECT * FROM `user` WHERE `date_last` > '".(time()-600)."' ORDER BY `date_last` DESC");
while ($ank = mysql_fetch_array($q))
{
$u_on[]="<font color='#110CDC'><span style='text-shadow:#808080 0.08em 0.08em 0.08em'>$ank[nick]</span></font><span style='text-shadow:#E2063A 0.08em 0.08em 0.08em'><font color='#E2063A'><b> ".otkuda($ank['url'])." </b></font></span>";
}
echo implode(' | ',$u_on).' | ';
}
}
//echo "<a href='/online_g.php'>".mysql_result(mysql_query("SELECT COUNT(*) FROM `guests` WHERE `date_last` > ".(time()-600)." AND `pereh` > '0'"), 0)."</a>";
}
$satu=mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `date_last` > ".(time()-600).""), 0);
$dua=mysql_result(mysql_query("SELECT COUNT(*) FROM `guests` WHERE `date_last` > ".(time()-600)." AND `pereh` > '0'"), 0);
$tiga= $satu + $dua;
echo "<a href='/online.php?SESS=$sess'>$satu</a> + <a href='/online_g.php?SESS=$sess'>$dua</a> = $tiga";
echo '<br/><center><a href="http://waplog.net/c.shtml?350169"><img src="http://c.waplog.net/350169.cnt" alt="waplog" width="30" height="5"/></a></center>';
echo "<div class='rekl_main'>";
echo admob_request($admob_params);
echo "</div>";

rekl(3);
echo "</div>";
echo "</html>";
exit;
?>
