
15.01.2010, 16:17
|
|
Флудер
Регистрация: 21.06.2006
Сообщений: 3,193
С нами:
10467746
Репутация:
4738
|
|
PHP код:
<?PHP
include("config.php");
if($_POST['Pass']==$password){setcookie('Pass',md5($password));head er("Location: ".$_SERVER["SCRIPT_NAME"]);}
if($_COOKIE['Pass']==md5($password))
{
if($_POST['do_exit']=='Выход'){setcookie('Pass','');header("Location: ".$_SERVER["SCRIPT_NAME"]);}
include("header.php");
include("panel.php");
include("logs.php");
include("footer.php");
}
else
{
echo '<html>
<title>Вход в панель администратора</title>
<table border="0" align="center" cellpadding="0" cellspacing="0" id="enter">
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<tr>
<td id="header-enter"><img src="admin_files/logo0000.gif" width="315" height="64" alt="Вход в панель администратора"/></td>
</tr>
<tr>
<td >
<form method=POST>
<input name="auth" type="hidden" value="1"/>
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td align="right">Пароль</td>
<td><input name="Pass" type="password" tabindex="2"/></td>
<td width="34%" rowspan="2" align="center" valign="middle"><button type="submit" tabindex="3" style="width: 100px" >Войти<img src="admin_files/icon_key.gif" width="18" height="18" align="absmiddle" style="margin-left: 6px" /></button></td>
</tr>
</table>
<br />
</form>
</td>
</tr>
</table>
</html>';
}
?>
мля, как да же вы кавычки будете юзать разные или экранировать их научитись? Подсветка тут для кого сделана? Сразу ведь видно!
|
|
|