<?php
include "../cfg.php";
include "../ini.php";
header('Content-Type: text/html; charset=utf-8');
if(($status == 1 || $status == 2) && $login) {
print "<html><head><script language=\"javascript\">top.location.href='admin.php';</script></head><body><a href=\"admin
.php\"><b>Enter</b></a></body></html>";
} else {
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="files/styles.css" rel="stylesheet">
<link href="files/favicon.ico" type="image/x-icon" rel="shortcut icon">
<title>Управление</title>
</head>
<body bgcolor="#ffffff">
<table width="100%" height="100%">
<tr height="11">
<td></td>
</tr>
<form action="login.php" method="post">
<input type="hidden" name="submit" value="go">
<tr>
<td align="center">
<?php
$error = intval($_GET['error']);
if($error == 1) {
print "<p class=\"er\" style=\"width: 292px;\">Введите логин/пароль</p>";
} elseif($error == 2) {
print "<p class=\"er\" style=\"width: 292px;\">Введите правильный логин/пароль</p>";
}
?>
<table width="300" height="200" cellpadding="0" cellspacing="0" border="0" >
<tr height="4">
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td align="center">
<table cellspacing="1" cellpadding="0" border="0">
<tr>
<td><input class="input" style="width: 130px;" type="text" name="login" size="20" maxlength="20" onblur="if (value == '') {value='Login'}" onfocus="if (value == 'Login') {value =''}" value="Login" /></td>
<td><input type="checkbox" name="cookies" value="1" /></td>
</tr>
<tr>
<td><input class="input" style="width: 130px;" type="password" name="pass" size="20" maxlength="50" onblur="if (value == '') {value='password'}" onfocus="if (value == 'password') {value =''}" value="password" /></td>
<td><input type="image" src="images/submit.gif" width="100" height="19" border="0" title="Войти в систему!" /></td>
</tr>
</table>
</td>
<td></td>
</tr>
<tr height="4">
<td></td>
<td></td>
<td></td>
</tr>
</table>
</td>
</tr>
</form>
</table>
</body>
</html>
<?php } ?>