File: //var/www/temp/autoprokat.vladweb.ru/access_admin.php
<?session_start();
include("./cfg/connect.inc.php");
if (isset($_POST["authorize"]))
{
if (strcmp(base64_encode($_POST["login"]),ROOT_LOGIN)==0 && strcmp(md5($_POST["password"]),ROOT_PASS)==0)
{
$_SESSION["login"] = ROOT_LOGIN;
$_SESSION["password"] = ROOT_PASS;
header("Location: ./index.php"); exit;
//echo ROOT_LOGIN;
//echo ROOT_PASS;
//echo "bad";
//echo $_SESSION["login"];
//echo $_SESSION["password"];
}
else $errorStr = "�������� �� ���������� ��� �����";
}
?>
<html>
<head>
<link rel=STYLESHEET href="style1.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<title>��� � �����������������</title><style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style></head>
<body>
<center>
<p>
<?
if (isset($errorStr)) echo "<font color=red><b>$errorStr</b></font>";
?>
</p>
<form name="form1" method="post" action="access_admin.php">
<table border="0" cellpadding="3" cellspacing="1">
<tr>
<td colspan="2" align="right" class="txt_big">��� � ����������������� </td>
</tr>
<tr>
<td align="right" class="txt_normal">login</td>
<td>
<input name="login" type="text" size="20"<? if (isset($_POST["login"])) echo ' value="'.$_POST["login"].'"';?>></td>
</tr>
<tr>
<td align="right" class="txt_normal">pass</td>
<td>
<input name="password" type="password" size="20"></td>
</tr>
<tr>
<td align="right"> </td>
<td><input name="submit" type="submit" value="���">
</td>
</tr>
</table>
<p><input type="hidden" name="authorize" value="1">
</p>
</form>
</center>
</body>
</html>