Файл: public_html/admin/index.php
Строк: 60
<?php
session_start();
include 'config.php';
if (isset($_SESSION['autoblg'])) {
header( 'Location: home.php' ) ;
}
if (isset($_POST["password"])) {
$password = $_POST["password"];
if ($password == $configpassword) {
$_SESSION['autoblg']=1;
echo '<script type="text/javascript">
window.location = "home.php"
</script>';
} else {
$errmsg = 'Password Incorrect. Please Try Again';
}}
?>
<!DOCTYPE html>
<html>
<head>
<title>Autoblog Admin</title>
<!-- Bootstrap -->
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen">
<link href="assets/styles.css" rel="stylesheet" media="screen">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script src="js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
</head>
<body id="login">
<?php if (isset($errmsg)) { ?>
<div class="alert">
<button type="button" class="close" data-dismiss="alert">×</button>
<strong><?php echo $errmsg ?></strong>
</div>
<?php } ?>
<div class="container">
<form class="form-signin" method="POST">
<h2 class="form-signin-heading">Please sign in</h2>
<input type="password" class="input-block-level" name="password" placeholder="Password">
<button class="btn btn-large btn-info btn-block" type="submit">Sign in</button>
</form>
</div> <!-- /container -->
<script src="vendors/jquery-1.9.1.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
</body>
</html>