-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
72 lines (69 loc) · 2.42 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
session_start();
error_reporting(1);
require('../connection.php');
extract($_REQUEST);
if(isset($login))
{
if($eid=="" || $pass=="")
{
$error= "<h3 style='color:red'>fill all details</h3>";
}
else
{
$sql=mysqli_query($con,"select * from admin where username='$eid' && password='$pass' ");
if(mysqli_num_rows($sql))
{
$_SESSION['admin_logged_in']=$eid;
header('location:dashboard.php');
}
else
{
$error= "<h3 style='color:red'>Invalid login details</h3>";
}
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>La Velle</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<link href="../css/style.css"rel="stylesheet"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css?family=Akronim|Libre+Baskerville" rel="stylesheet">
</head>
<body id="primary"style="margin-top:50px;">
<?php
include('Menu Bar.php');
?>
<div class="container-fluid"> <!-- Primary Id-->
<div class="container">
<div class="row"><br>
<div class="col-sm-4"></div>
<div class="col-sm-4 text-center"style="box-shadow:2px 2px 2px;background-color:#990707;">
<h1 align="center"><b><font style="font-family: 'Libre Baskerville', serif;text-shadow:5px 5px #000;">Admin Login ?</font></b></h1>
<img src="../image/clipart/user.png"alt="Bird" width="200" height="170"style="padding-top:30px;">
<?php echo @$error;?>
<form action="#" method="post"><br>
<div class="form-group">
<input type="Email" class="form-control"name="eid" placeholder="Email Id"required>
</div>
<div class="form-group">
<input type="Password" class="form-control"name="pass" placeholder="Password"required>
</div>
<input type="submit" value="Login" name="login" class="btn btn-primary btn-group btn-group-justified"required>
</form><br>
</div>
</div><br>
</div>
</div>
<?php
include('Footer.php');
?>
</body>
</html>