File size: 692B
<?
Error_Reporting(E_ALL & ~E_NOTICE);
include("func.php");
include("set.php");
include("start.php");
if($mode=='ok')
{
if($log==$set_admin && $pas==$set_pass)
{
setcookie("admin","$log");
setcookie("pass",md5($pas));
Header("Location: index.php");
}
else
{
Header("Location: admin.php");
}
exit;
}
include("modul/head.php");
print "<form action=\"admin.php\">
<input name=\"mode\" type=\"hidden\" value=\"ok\"/>
Логин:<br/><input name=\"log\"/><br/>
Пароль:<br/><input name=\"pas\"/><br/>
<input type=\"submit\" value=\"Войти\"/><br/>
</form>";
include("modul/foot.php");
?>