View file reginc.php

File size: 1.44Kb
<?
include("./includes/constants/index");
$chat = file("chat.dat");
$logo = trim($chat[0]);
$message = trim($chat[1]);

$q = mysql_query("SELECT COUNT(`id`) FROM `chat_users` WHERE `time` >= ".time().";");
$online = mysql_result($q, 0);

$q = mysql_query("SELECT COUNT(`id`) FROM `chat_users`;");
$users = mysql_result($q, 0);

echo "<form action=\"enter.php?urls=$urls&rid=$rid&mod=$mod\" method=\"post\">\n";
echo "Имя*:<br/>\n";
echo "<input type=\"text\" name=\"nickname\" maxlength=\"15\" /><br/>\n";
//echo "Транслитировать:\n";
//echo "<input type=\"checkbox\" name=\"translit\" value=\"yes\" /><br/>\n";
echo "Пароль*:<br/>\n";
echo "<input type=\"text\" name=\"password\" maxlength=\"20\" /><br/>\n";
echo "<input type=\"hidden\" name=\"action\" value=\"auth\" />\n";
echo "<input type=\"submit\" value=\"вход\" /></form>\n";
//echo ONLINE.": <a href=\"inchat.php?ver=html\">$online</a><br/>\n";
//echo REG_USERS.": ".$users."<br/>\n";
//echo "<a href=\"rules.php?ver=html\">Правила чата</a><br/>\n";
echo "&#187; <a href=\"rules.php?ver=html&amp;action=registration\">регистрация</a><br/>\n";
//echo "&#187; <a href=\"go.php?ver=html\">".MAIN."</a><br/>\n";
echo "? - Введите ваш логин и пароль. Если у вас их еще нет, вам нужно <a href=\"rules.php?ver=html&amp;action=registration\">зарегистрироваться</a>.
<br />\n";
?>