Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
if(!isset($_POST["submit"]))
{
print("
<li class=\"forum-user\">
<div class=\"f-avatar\"><img src=\"img/noneAvatar.png\" alt=\"img\"/></div>
<div class=\"f-all\">
<form name=\"loginform\" id=\"loginform\" action=\"\" method=\"post\">
<input type=\"hidden\" name=\"auth_key\" value=\"880ea6a14ea49e853634fbdc5015a024\" />
<input type=\"hidden\" name=\"referer\" value=\"index.html\" />
<input class=\"forum-user-login\" type=\"text\" name=\"uname\" />
<input class=\"forum-user-pass\" type=\"password\" name=\"passwd\" />
<label><div class=\"forum-user-check\"><input type=\"checkbox\" name=\"rememberMe\" value=\"1\" /></div>
<div class=\"forum-user-check-word\">Запомни</div></label>
<input type=\"hidden\" id=\"inline_invisible\" name=\"anonymous\" class=\"input_check\" />
<input class=\"forum-user-submit\" type=\"submit\" name=\"submit\" value=\"Вход\" />
<a href=\"reg.php\" class=\"forum-user-reg\">Регистрация</a>
<a href=\"lost.php\" class=\"forum-user-fpass\">Забравена парола</a>
</form>
</div>
</li>
");
}
else
{
$uname = htmlspecialchars($_POST["uname"], ENT_QUOTES);
$passwd = md5($_POST["passwd"]);
$check = mysql_query("SELECT * FROM users WHERE name='$uname' AND password='$passwd' ");