-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
184 lines (119 loc) · 4.96 KB
/
login.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<script src="https://apis.google.com/js/client:platform.js?onload=startApp"></script>
<link href="https://fonts.googleapis.com/css?family=Aleo" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
<title>Flipr LMS</title>
<!----Linking google fonts-->
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet">
<!----font-awsome start-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!----font-awsome ends-->
<!----css file link-->
<link rel="stylesheet" type="text/css" href="css/login.css">
<!----favicon setting-->
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!-- Google Client id to integrate google signin-->
<meta name="google-signin-client_id" content="762591851385-brcn7mt3qb3tomi3c2j1b1r89umuerqs.apps.googleusercontent.com">
<!-- Google JavaScript file to integrate google signin-->
<script src="https://apis.google.com/js/platform.js" async defer></script>
<!-- Google custom JavaScript file to integrate google signin-->
<script type="text/javascript" src="js/google_signin.js"></script>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<!----------email notification-------->
<script type="text/css">
</script>
</head>
<body>
<!---Navigation Starts ----->
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<!------Responsive Button---->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navi">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<h1 style="color: white;margin-top: 10px;" id="myhead">Flipr LMS</h1>
</div>
<div class="collapse navbar-collapse" id="navi">
<!------Navigation menus starts---->
<ul class="nav navbar-nav navbar-right">
<li> <a href="">Home</a></li>
<li> <a href="">About</a></li>
<li> <a href="" id="our-location" class="btn-success" data-target="#mymodal" data-toggle="modal">Login/Signup</a></li>
</ul>
<!------Navigation menus ends---->
</div>
</div>
</nav>
<!---Navigation Ends ----->
<!---Slider Section starts ------->
<section class="slider text-center" id="slider">
<div class="modal-dialog ">
<div class="modal-content">
<h3 id="login-heading">Login</h3>
<div class="modal-body" >
<div class="left-box">
<form method="POST" action="validation.php" onsubmit="return validation()">
<div class="form-group">
<label><i class="fa fa-user fa-2x"></i>Username :</label>
<input type="text" autocomplete="off" name="name" class="form-control" id="username" onkeypress="clear()">
<label><i class="fa fa-lock fa-2x"></i>Password :</label>
<input type="password" autocomplete="off" name="password" class="form-control" id="password">
<span id="perror"><?php
if(isset($_SESSION['error']))
{
echo "wrong username or password";
}
else{ echo " ";}
?>
</span>
<button id="btn-login" type="submit">Login</button>
</div>
<div class="register">
<h2>Don't have an account? <span id="create-account"><a href="signup.html">Create</span></a> </h2>
</div>
</form>
</div>
<div class="right-box">
<span class="signinwith">Sign in With <br> Social Networks</span>
<button class="social facebook">Log in with Facebook</button>
<button class="social twitter">Log in with twitter</button>
<button type="submit" class="social google g-signin2" data-onsuccess="onSignIn()">Log in with gmail</button>
</div>
</div>
</div>
</div>
</section>
<!---Slider Section ends------->
<!---confirm password validation Start------->
<script type="text/javascript">
function validation() {
var username=document.getElementById('username').value;
var password=document.getElementById('password').value;
if ((username=="") ||( password==""))
{
document.getElementById('perror').innerHTML="please fill the details";
return false;
}
}
function clear() {
document.getElementById('perror').innerHTML="ksdfisdhfg";
}
</script>
<!---confirm password validation end------->
<script src="js/jquery.ripples-min.js" type="text/javascript"></script>
<script src="js/typed.min.js" type="text/javascript"></script>
</body>
</html>