<?php
date_default_timezone_set("Asia/Jakarta");
include('login.php'); // Includes Login Script
if(isset($_SESSION['login_user'])){
	header("location: index.php"); // Redirecting To Profile Page
}
?>
<!DOCTYPE html>
<html>
<head>
    <title>Login Form</title>
    <link href="css/pw.css" rel="stylesheet" type="text/css">
    <link href="images/justice balance.ico" rel="icon" type="image/icon" />
	<style>
		body {
            margin: 0;
            background-color: #bbb;
            background-image : url('images/main_bg.png');
            }
		a { text-decoration: none; color:inherit;}
		a:hover {color:#FF00FF;}   /* Mouse over link */
    </style>	
</head>
<body>
    <div id="login">
    <h2>Login Form</h2></br></br>
    <form action="" method="post">
    <label>UserName :</label>
    <input id="name" name="username" placeholder="username" type="text">
    <label></br>Password :</label>
    <input id="password" name="password" placeholder="**********" type="password"><br><br>
    <input name="submit" type="submit" value=" Login ">
    <span><?php echo $error; ?></span>
    </form>
    </div>
</body>
</html>