-
Notifications
You must be signed in to change notification settings - Fork 0
/
cp.php
149 lines (144 loc) · 4.16 KB
/
cp.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
<?php session_start(); ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/png" href="assets/img/favico.png">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>FES TimeKeeper App</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="viewport" content="width=device-width" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" type="text/css" href="dashboard/dist/sweetalert.css">
<style>
body{
margin: 0 !important;
height: 100vh;
width: 100vw;
display: -webkit-flex;
display: flex;
-webkit-justify-content: center;
justify-content: center;
-webkit-align-items: center;
align-items: center;
background-color: #ECF0F1;
background-size: cover;
background-position: center;
}
#signin{
display: -webkit-flex;
display: flex;
-webkit-align-self: center;
align-self: center;
-webkit-flex-direction: column;
flex-direction: column;
padding: 1em;
margin: 0 !important;
background-color: #ECF0F1;
-webkit-border-radius: .3em;
border-radius: .3em;
-webkit-box-shadow: 0px 2px 7px rgba(0, 0, 0, 0.40);
box-shadow: 0px 2px 7px rgba(0, 0, 0, 0.40);
}
#signin input{
width:22em;
height: 3em;
font-size: 1em;
font-weight: lighter !important; /* FIREFOX */
display: block;
margin-bottom: .5em;
outline: none;
text-align: center;
background-color: #fff;
border: 1px solid #d5dadc;
-webkit-border-radius: 2px;
border-radius: 2px;
padding: 0 !important; /* FIREFOX */
}
#signin input:-webkit-autofill{
-webkit-box-shadow: 0 0 0px 1000px white inset;
}
#signin input[type="text"]{
-webkit-text-fill-color: #7C7C7C !important;
}
#signin input[type="password"]{
-webkit-text-fill-color: #7C7C7C !important;
}
button[type=submit]{
height: 3em;
width: 100%;
border: 1px solid rgb(14,72,128);
color: #fff;
background-color: rgb(14,72,128);
cursor: pointer;
font-size: 1em;
font-weight: bold;
outline: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-family: HelveticaNeue-Light,"Helevetica Neue",Helvetica,Arial;
}
button[type=submit]:hover{
background-color: rgb(38, 95, 148);
}
button[type=submit]:active{
-webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) inset;
-moz-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) inset;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) inset;
}
img{
width: 20em;
height: 5em;
padding: 0 1em 1em 1em;
}
.errorBox {
width: 300px;
margin: auto auto;
color: red;
text-align: center;
font-family: HelveticaNeue-Light,"Helevetica Neue",Helvetica,Arial;
}
footer {
font-family: HelveticaNeue-Light,"Helevetica Neue",Helvetica,Arial;
text-align: center;
font-size: .80em;
margin-top: 5%;
}
</style>
</head>
<body>
<div>
<form id='signin' action="./assets/server/php/checkLogin.php" method="post">
<img src="./assets/img/festimekeeper-big.png" id="logo">
<input type='text' name='name' id='name' placeholder="username">
<input type='password' name='pass' id='pass' placeholder="password">
<button type="submit" id='button btn-submit'>Sign In</button>
<div class="errorBox">
<?php
if($_GET['res'] === "wp"){
echo '<br/>Password Incorrect';
} elseif ($_GET['res'] === "na"){
echo '<br/>You are not authorized to access this area!';
}
?>
</div>
</form>
<footer>Unauthorized use of this system is strictly prohibited.<br/>Questions about this system contact FES <a href="maiilto: [email protected]">Help Center</a>.</footer>
</div>
<script src="assets/js/jquery-1.12.1.min.js"></script>
<script>
$(document).ready(function(){
$('input[type=text]').focus(function() {
if (this.value == this.value) {
$(this).val("");
}
}).blur(function() {
if (this.value == "") {
$(this).val(this.value);
}
});
});
</script>
</body>
</html>