55ok

Mini

Direktori : /home/u307599615/domains/makeoverbyaaliyabarber.com/public_html/admin/
Upload File :
Current File : /home/u307599615/domains/makeoverbyaaliyabarber.com/public_html/admin/login.php

<?php
ob_start();
session_start();
include('connection.inc.php');

if (isset($_POST['submit'])) {
    $username = $_POST['username'];
    $password = md5($_POST['password']);

    $sql = "SELECT * FROM `admin_admin_login` WHERE username = '$username' && password = '$password'";
    $quary = mysqli_query($con, $sql) or die("Error");
    if (mysqli_num_rows($quary) > 0) {
        $_SESSION['start'] = 'start';
        header('location:index.php');
    } else {
        header('location:login.php');
    }
}

?>

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="../admin/bootstrap-5.1.3-dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css">
    </link>
    <title>login</title>
    <style>
        .form-control {
            box-shadow: none;
            border-color: #ddd;
        }

        .form-control:focus {
            border-color: #4aba70;
        }

        .login-form {
            width: 350px;
            margin: 0 auto;
            padding: 30px 0;
        }

        .login-form form {
            color: #434343;
            border-radius: 1px;
            margin-bottom: 15px;
            background: #fff;
            border: 1px solid #f3f3f3;
            box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
            padding: 30px;
        }

        .login-form h4 {
            text-align: center;
            font-size: 22px;
            margin-bottom: 20px;
        }

        .login-form .avatar {
            color: #fff;
            margin: 0 auto 30px;
            text-align: center;
            width: 100px;
            height: 100px;
            border-radius: 50%;
            z-index: 9;
            background: #1d407c;
            padding: 15px;
            box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
        }

        .login-form .avatar i {
            font-size: 62px;
        }

        .login-form .form-group {
            margin-bottom: 20px;
        }

        .login-form .form-control,
        .login-form .btn {
            min-height: 40px;
            border-radius: 2px;
            transition: all 0.5s;
        }

        .login-form .close {
            position: absolute;
            top: 15px;
            right: 15px;
        }

        .login-form .btn {
            background: #1d407c;
            border: none;
            line-height: normal;
        }

        .login-form .btn:hover,
        .login-form .btn:focus {
            background: #42ae68;
        }

        .login-form .checkbox-inline {
            float: left;
        }

        .login-form input[type="checkbox"] {
            margin-top: 2px;
        }

        .login-form .forgot-link {
            float: right;
        }

        .login-form .small {
            font-size: 13px;
        }

        .login-form a {
            color: #4aba70;
        }
    </style>
</head>

<body>
    <div class="login-form">
        <form method="POST">
            <div class="avatar"><i class="fas fa-user"></i></div>
            <h4 class="modal-title">Login to Your Account</h4>
            <div class="form-group">
                <input type="text" class="form-control" placeholder="Username" name="username" required="required">
            </div>
            <div class="form-group">
                <input type="password" class="form-control" placeholder="Password" name="password" required="required">
            </div>
            <div class="form-group small clearfix">
                <!-- <label class="checkbox-inline"><input type="checkbox"> Remember me</label> -->
                <a href="./forget-pass.php" class="forgot-link">Forgot Password?</a>
            </div>
            <button type="submit" class="btn btn-primary btn-block btn-lg" name="submit">Login</button>
        </form>

        <script src="../admin/bootstrap-5.1.3-dist/js/bootstrap.bundle.min.js"></script>
</body>

</html>

<?php
ob_flush();
?>

Zerion Mini 1.0