-
Notifications
You must be signed in to change notification settings - Fork 17
/
index.php
70 lines (59 loc) · 2.52 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
<?php
session_start();
require("conection/connect.php");
$msg="";
if(isset($_POST['btn_log'])){
$uname=$_POST['unametxt'];
$pwd=$_POST['pwdtxt'];
$sql=mysql_query("SELECT * FROM users_tbl
WHERE username='$uname' AND password='$pwd'
");
$cout=mysql_num_rows($sql);
if($cout>0){
$row=mysql_fetch_array($sql);
if($row['type']=='admin')
$msg="Login trov hery!.....";
else
header("location: everyone.php");
}
else
$msg="Invalid login authentication, try again!";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.css"/>
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.css.map"/>
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.css"/>
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap-theme.css"/>
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap-theme.css.map"/>
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap-theme.min.css"/>
<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="bootstrap/js/bootstrap.js"></script>
<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/login.css" />
<title>Rajasthan Technical University | College management System.</title>
</head>
<body>
<div class="container">
<div class="container2">
<div class="h1_pos">
<h1>College authorities for only staff members. </h1>
</div><br><br><br>
<form method="post">
<input type="text" class="form-control" name="unametxt" placeholder="Username" title="Enter username here" /><br>
<input type="password" class="form-control" name="pwdtxt" placeholder="Password" title="Enter username here" /><br>
<input type="submit" href="#" class="btn btn-default" name="btn_log" value="Sign in" style="float: right;"/>
<div class="about_pos">
<a href="AboutManagement.php" style="text-decoration:none; color: silver">About management</a>
</div>
</form>
</div>
</div>
<h2 style="color: #3a28a5; text-align: center;">
<?php echo $msg; ?>
</h2>
</body>
</html>