File size: 1.96Kb
<?
list($msec,$sec)=explode(chr(32),microtime());
$HeadTime=$sec+$msec;
/////////////////////
$file="data/online.dat";
$lines=file("$file");
$online=count($lines);
/////////////////////
$online=round($online*1);
echo'
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><meta forua="true" http-equiv="Cache-Control" content="no-cache,no-store,must-revalidate"/><title>Faschist чат</title></head>
<body bgcolor="#05A8DD" link="#5555FF" vlink="#5555FF" text="#000000">
<table align="center" border="0" cellspacing="1" cellpadding="5" width="108">
<tr><td bgcolor="#2222FF" align="center"><font color="#ffffff"><b>Faschist Чат<br/>Самый лучщий чат</b></font></td></tr>';
if (isset($error))
{ echo'Пароль или логин неверен.<br/>'; }
echo'<tr><td bgcolor="#79EBFB" align="center">';
echo "Сейчас в чате: $online человек<br/>";
echo'<form method="post" action="enter.php">';
echo "<b>Логин:</b><br/>";
echo "<input name=\"log\" maxlength=\"10\" title=\"nick\" emptyok=\"true\"/><br/>";
echo "<b>Пароль:</b><br/>";
echo "<input name=\"pas\" maxlength=\"10\" title=\"password\" emptyok=\"true\"/><br/><br/>";
echo '<input class="button" type="submit" value="Войти>>"/></form><br/>';
echo "<a href=\"rules.php\">Регистрация</a><br/>";
echo "<a href=\"password.php\">Забыли пароль?</a><br/>";
echo "<tr><td bgcolor=\"#C3F6FD\" align=\"center\">Тут ваш счечщик</a></td></tr>";
echo "<tr><td bgcolor=\"#79EBFB\" align=\"center\"><a href=\"http://Demonik.cn\">DEMONIK.CN</a> & <a href=\"http://darkworlds.ru\">Онлайн игра</a><br/><b>All rights reserved</b></td></tr><tr><td bgcolor=\"#C3F6FD\" align=\"center\">";
list($msec,$sec)=explode(chr(32),microtime());
echo "[".round((($sec+$msec)-$HeadTime),4)."]";
echo'</td></tr>
</body>
</html>
';
?>