login.php

File Type: php File Location: monofiles/ File name: login.php
<?php
    $loginpage 
true;
    include_once 
'data_connect.php'
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Login</title>
<link rel="stylesheet" type="text/css" href="cmstyle.css">
<style>
@charset "utf-8";

html,body {background:/*url('lgbg.jpg') no-repeat center*/ #f9f9f9}
</style>
</head>
<body>

    <form name="login" action="" method="post">
    
    
        <div class="login-wrapper">
            <h2 style="text-align:center;font-size:20px;margin-top:55px">MonoCMS</h2>
             <h3 style="text-align:center">login</h3>
        
            <div id="login-container">
            <?php 
            
            
if (isset($_SESSION['MONfailedlogin'])) {
                
                print 
'<div class="loginf">Incorrect username or password</div>';
                unset(
$_SESSION['MONfailedlogin']);
            
            }
                
        
?>
            
                 
                <!-- Username -->
                <div class="login-box">
                    <input class="login-input" name="username" value="" placeholder="Username" type="text" style="background-image:url('user.png')">
                    <label style="background:url('user.png') no-repeat"></label>
                </div>
                
                
                <!-- Password -->
                <div class="login-box" style="animation-delay:.2s">
                    <input class="login-input" name="password" value="" placeholder="Password" type="password" style="background-image:url('pass.png')">
                    <label style="background:url('pass.png') no-repeat"></label>
                </div>

                
                <!-- Submit -->
                <div style="overflow:hidden;height:68px;width:100%;margin:15px auto -25px auto">
                    <span class="spintro">LOGIN</span>
                    <input id="login-button" class="stylish-button" type="submit" name="submit" value="LOGIN">
                </div>
                <span style="position: relative;top: 35px;font-size: 12px;display: block;text-align:center">
                    <a href="fpass.html" target="_blank">I forgot my password</a>
                </span>
            </div>
        </div>
    </form>
</body>
</html>