-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmincheck.php
More file actions
45 lines (43 loc) · 947 Bytes
/
Copy pathadmincheck.php
File metadata and controls
45 lines (43 loc) · 947 Bytes
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
<?php
if ($_POST['submit'] == 'Login')
{
$login = $_POST['uname'];
$password = $_POST['pass'];
if($login && $password)
{
if($login == 'dfr' && $password =='12345')
{
$count = 1;
}
else
{
include('admin.php');
echo '<center>Incorrect Username or Password !!!<center>';
exit();
}
if( $count == 1)
{
session_start();
$_SESSION['IS_AUTHENTICATED'] = 1;
header('location:adminPage.php');
}
else
{
include('admin.php');
echo '<center>Incorrect Username or Password !!!<center>';
exit();
}
}
else
{
include('admin.php');
echo '<center>Username or Password missing!!</center>';
exit();
}
}
else
{
header("location: admin.php");
exit();
}
?>