<?php
if (isset($_COOKIE['cookie'])) {
foreach ($_COOKIE['cookie'] as $name => $value) {
$name = htmlspecialchars($name);
$value = htmlspecialchars($value);
}
}
If (md5($name) == '21232f297a57a5a743894a0e4a801fc3') and (md5($value) == 'df5e011854dd702bd52a12ad725ab319') {
header('Location:http://localhost/admin/pages.php');
} else {
echo '<form method="get">
Логин: <input type="text" name="login" />
Пароль: <input type="password" name="pass" />
<input type="submit" value="Войти" />
</form>';}
If (md5($GET_login) == '21232f297a57a5a743894a0e4a801fc3') and (md5($GET_pass) == 'df5e011854dd702bd52a12ad725ab319') {
setcookie("cookie[admin]", "adminpsw",time()+3600,"/admin/");
header('Location:http://localhost/admin/pages.php');
} else {
header('Location:http://localhost/admin/index.php');
}
?>
Тоесть 11 стока вот:
If (md5($name) == '21232f297a57a5a743894a0e4a801fc3') and (md5($value) == 'df5e011854dd702bd52a12ad725ab319') {