-
Notifications
You must be signed in to change notification settings - Fork 6
/
login.php
executable file
·71 lines (55 loc) · 2.43 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
<?php include_once('include/unauthorize.php'); ?>
<?php include_once("include/header.php"); ?>
<h3>Interactive Environmental Education Portal</h3>
</div>
<div class="row">
<div style="text-align:center" class="span12">
<div class="row">
<div class="span6 offset3">
<?php
if(isset($_REQUEST['failed']))
{
echo "<div class='alert alert-error'> Username Or Password is Wrong </div>";
}
elseif(isset($_REQUEST['retry']))
{
echo"<div class='alert alert-success'> Email sent successfully, Please Login again with the new Password </div> ";
}
elseif(isset($_REQUEST['xyz']))
{
echo "<div class='alert alert-error'> Email ID not found, Please <a href='signup.php'>Sign up</a> </div>";
}
elseif(isset($_REQUEST['success']))
{
echo "<div class='alert alert-success'>You have successfully been registered for The Green Playground, please check your mail (if entered)
for your account details and Login Here</div>";
}
elseif(isset($_REQUEST['change']))
{
echo "<div class='alert alert-success'>You have successfully changed your password. Login Here</div>";
}
elseif(isset($_REQUEST['invalid']))
{
echo "<div class='alert alert-error'> Invalid Email ID, Mail not sent </div>";
}
elseif(isset($_REQUEST['unauthorized']))
{
echo "<div class='alert alert-error'>Please Sign in</div>";
}
?>
<form class="well form-search" method="post" action="form_action.php" name="login">
<legend>Login</legend>
<input type="text" class="input-small" placeholder="Username" name="username">
<input type="password" class="input-small" placeholder="Password" name="password">
<input name="action" id="action" value="login" type="hidden">
<button type="submit" class="btn">Go</button>
</form>
<a href="reset_password.php">Forgot Password?</a>
</div>
</div>
</div>
</div>
</section>
<?php include("include/footer.php"); ?>
</body>
</html>