HEX
Server: Apache/2.4.6 (CentOS) mpm-itk/2.4.7-04 mod_fcgid/2.3.9 PHP/5.4.16
System: Linux dvm.vladweb.ru 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: region-gk.ru (1016)
PHP: 8.2.27
Disabled: NONE
Upload Files
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">&nbsp;</td>
      <td><input name="submit" type="submit" value="���">
      </td>
    </tr>
  </table>
  <p><input type="hidden" name="authorize" value="1">
    </p>
  </form>
</center>
</body>
</html>