-
Notifications
You must be signed in to change notification settings - Fork 0
/
signIn.php
41 lines (33 loc) · 941 Bytes
/
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
<?php
include_once 'includes/dbHandler.php';
session_start();
include_once 'includes/overlay.php';
?>
<!DOCTYPE html>
<html>
<head> <link rel="stylesheet" href="design/index.css?v=<?php echo time(); ?>"> </head>
<body>
<h1>Sign in</h1>
<form action = "includes/signIn.inc.php" method = "POST">
<input type="text" name="uid" placeholder="Username"><br><br>
<input type="password" name="password" placeholder="Password"><br><br>
<button type="submit" value="Submit"> Submit </button>
</form>
<?php
if(isset($_GET["error"])){
if($_GET["error"] == "empty"){
echo "<p> Fill in all fields </p>";
}
else if($_GET["error"] == "signedIn"){
echo "<p> You are logged in </p>";
}
else if($_GET["error"] == "falselogin"){
echo "<p> Wrong information </p>";
}
else if($_GET["error"] == "banned"){
echo "<p> You have been banned, contact Admin. </p>";
}
}
?>
</body>
</html>