<?
list($msec, $sec) = explode(chr(32), microtime());
if ($_SERVER['PHP_SELF']!='/index.php') {
echo "<div class='navig'><img src='/style/icons/home.png'> <a href='/index.php'>Home</a></div>";
include ("pintas.php");
echo "<div class='navig'>";
echo "<img src='/style/icons/users.png'> Members: <a href='/users.php'><font color='#8da9cc'>\n";
include ("member.php");
echo " </a>People</font><br/>\n";
echo "</div>\n";
echo "<div class='logo'>";
echo "Guest On:<a href='/online_g.php'> ".mysql_result(mysql_query("SELECT COUNT(*) FROM `guests` WHERE `date_last` > ".(time()-600)." AND `pereh` > '0'"), 0)." </a> users<br />\n";
//New
$cowo= mysql_result(mysql_query("SELECT `nick` FROM `user` WHERE `pol` = '1' ORDER BY id DESC LIMIT 1"), 0);
echo "NewBoy: <font color='#0084b5'>$cowo&trade;</font><br />";
$cewe= mysql_result(mysql_query("SELECT `nick` FROM `user` WHERE `pol` = '0' ORDER BY id DESC LIMIT 1"), 0);
echo "NewGirl: <font color='#0084b5'>$cewe&trade;</font><br />";
$id = mysql_fetch_array(mysql_query("select max(id) from `user`;"));
$post = mysql_fetch_array(mysql_query("select `nick` from `user` where `id` = '$id[0]';"));
/*echo 'New Member: ';
echo '<a href="/info.php?id='.$id[0].'">'.$post['nick'].'</a>';echo '<br />';*/
if ((mysql_num_rows(mysql_query("SELECT `id` FROM `user` WHERE `date_last`>'".(time()-600)."'")))!=='0')
{
$q_user = mysql_query("SELECT `id`, `nick` FROM `user` WHERE `date_last`>'".(time()-600)."' LIMIT 15");

echo 'LogON: ';
if ((mysql_num_rows(mysql_query("SELECT `id` FROM `user` WHERE `date_last`>'".(time()-600)."'")))!=='0')
{
$q_user = mysql_query("SELECT `id`, `nick`, 'forum' FROM `user` WHERE `date_last`>'".(time()-600)."' LIMIT 15");
while ($ank=mysql_fetch_array($q_user))
{
$ank=get_user($ank['id']);
echo '<a href="/info.php?id='.$ank['id'].'">'.$ank['nick'].'</a>&raquo;';
echo "<a rel='$ank[url]'>".otkuda($ank['url'])."</a>, ";
}
if (mysql_num_rows($q_user)>'5')
{
echo '<a href="online.php">[+]</a><br />';
}
}
echo "(<a href='/online.php'> ".mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `date_last` > ".(time()-600).""), 0)."</a>)\n";
echo "</div>\n";

}
}
if ($_SERVER['PHP_SELF']=='/index.php') {
echo "<div class='navig'>";
if (isset($_POST['GO']))
{
header("Location: $_POST[GO]");
exit;
}
echo "<form method=\"post\" class=\"GO\" action=\"\">\n";
echo '<select name="GO">';
echo "<option value='/'>Partner Site</option>";
echo "<option value='http://mobilover.kilu.de'>Mobilover.net</option>\n";
echo "<option value='http://sinta.web.id'>Sinta.web.id</option>\n";
//echo "<option value='http://cyberz.tk'>CyberZ.Tk</option>\n";
//echo "<option value='http://indwap.tk'>indwap.tk</option>\n";
echo '</select>';
echo "<input type=\"submit\" value=\"Go!\" title=\"Go\" />\n";
echo "</form>\n";
echo "<img src='/style/icons/users.png'> Members: <a href='/users.php'><font color='#8da9cc'>\n";
include ("member.php");
echo " </a>People</font><br/>\n";
echo "</div>\n";
echo "<div class='logo'>";
echo "Guest On:<a href='/online_g.php'> ".mysql_result(mysql_query("SELECT COUNT(*) FROM `guests` WHERE `date_last` > ".(time()-600)." AND `pereh` > '0'"), 0)." </a> users<br />\n";
//New
$cowo= mysql_result(mysql_query("SELECT `nick` FROM `user` WHERE `pol` = '1' ORDER BY id DESC LIMIT 1"), 0);
echo "NewBoy: <font color='#0084b5'>$cowo&trade;</font><br />";
$cewe= mysql_result(mysql_query("SELECT `nick` FROM `user` WHERE `pol` = '0' ORDER BY id DESC LIMIT 1"), 0);
echo "NewGirl: <font color='#0084b5'>$cewe&trade;</font><br />";
/*new member
$id = mysql_fetch_array(mysql_query("select max(id) from `user`;"));
$post = mysql_fetch_array(mysql_query("select `nick` from `user` where `id` = '$id[0]';"));
echo 'New Member: ';
echo '<a href="/info.php?id='.$id[0].'">'.$post['nick'].'</a>';echo '<br />';*/
if ((mysql_num_rows(mysql_query("SELECT `id` FROM `user` WHERE `date_last`>'".(time()-600)."'")))!=='0')
{
$q_user = mysql_query("SELECT `id`, `nick` FROM `user` WHERE `date_last`>'".(time()-600)."' LIMIT 15");
//log on
echo 'LogON: ';
if ((mysql_num_rows(mysql_query("SELECT `id` FROM `user` WHERE `date_last`>'".(time()-600)."'")))!=='0')
{
$q_user = mysql_query("SELECT `id`, `nick`, 'forum' FROM `user` WHERE `date_last`>'".(time()-600)."' LIMIT 15");
while ($ank=mysql_fetch_array($q_user))
{
$ank=get_user($ank['id']);
echo '<a href="/info.php?id='.$ank['id'].'">'.$ank['nick'].'</a>&raquo;';
echo "<a rel='$ank[url]'>".otkuda($ank['url'])."</a>, ";
}
if (mysql_num_rows($q_user)>'5')
{
echo '<a href="online.php">[+]</a><br />';
}
}
echo "(<a href='/online.php'> ".mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `date_last` > ".(time()-600).""), 0)."</a>)\n";
echo "</div>\n";

}
}

if (mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `id` = '1' AND `date_last` > '".(time()-600)."' LIMIT 1"),0)==1) { echo "<div class='logo'>Admin: <a href='/info.php?id=1'><b style='color:lime'>Online</b></a></div>"; } else { echo "<div class='logo'>Admin: <b style='color:red'>Offline</b></div>
"; }
echo "</div>\n";

//echo "<div class='main_menu'>\n";
rekl(3);
//$bestr1 = file_get_contents('http://bestzona.ru/bestr1.php');
//echo "</div>\n";
/*echo "<div class='content'>";
echo "<a href='http://kodminik.h2m.ru'> Dezign by KoDmiNik </a><br/>";
echo "<a href='http://vipbest.org/sogl.php?pid=467'>Соглашение</a> | <a href='http://vipbest.org/sms.php?pid=467'>Стоимость смс </a><br/>";
echo "</div>";*/
echo "</div>\n</body>\n</html>";
exit;
//print $bestr1;
?>
