-
Notifications
You must be signed in to change notification settings - Fork 0
/
signin.php
68 lines (67 loc) · 2.98 KB
/
signin.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
<?php
$page_title = "Sign In";
include('signin_back.php');
if (isset($_SESSION['login_user'])) {
header("location: profile.php");
}
include_once "header.php";
?>
<div class="container">
<div class="row">
<div class="bs-example">
<form class="form-horizontal" action="" method="post" >
<div class="form-group">
<label class="control-label col-xs-3" for="inputUsername">Username:</label>
<div class="col-xs-9">
<input type="text" class="form-control" name="inputUsername" id="inputUsername" placeholder="Username">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-3" for="inputPassword">Password:</label>
<div class="col-xs-9">
<input type="password" class="form-control" name="inputPassword" id="inputPassword" placeholder="Password">
</div>
</div>
<div class="form-group">
<div class="col-xs-offset-3 col-xs-3">
<div class="g-recaptcha" data-sitekey="YOURKEY"></div><br />
</div>
</div>
<?php if ($error == 1) {
echo '<div class="form-group">
<label class="control-label col-xs-3"></label>
<div class="col-xs-9">
<div class="alert alert-danger alert-dismissable">
Please check username or password!
</div>
</div >
</div>';
} else if ($error == 2) {
echo '<div class="form-group">
<label class="control-label col-xs-3"></label>
<div class="col-xs-9">
<div class="alert alert-danger alert-dismissable">
Please check captcha.
</div>
</div >
</div>';
}else if ($error == 3) {
echo '<div class="form-group">
<label class="control-label col-xs-3"></label>
<div class="col-xs-9">
<div class="alert alert-danger alert-dismissable">
Fields can not be empty!
</div>
</div >
</div>';
}
?>
<div class="form-group">
<div class="col-xs-offset-3 col-xs-9">
<input type="submit" name="signinButton" class="btn btn-primary" value="Sign In">
</div>
</div>
</form>
</div>
</div>
<?php include_once "footer.php"; ?>