-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
executable file
·85 lines (82 loc) · 2.47 KB
/
index.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
<?php
include_once('classes.php');
session_start();
if( isset($_SESSION['user']) && $_SESSION['user']->isLoggedIn() ){
header('location: profile.php');
}
exec("./matchusers.exe");
?>
<!DOCTYPE HTML>
<html>
<head>
<title> eHarbginer</title>
<meta charset="utf-8" />
<link rel= "stylesheet" href="css/main.css" />
</head>
<body>
<section id="banner">
<div class="inner split">
<section>
<h2>Welcome to eHarbinger!!</h2>
</section>
</div>
</section>
<section id="one" class="wrapper">
<div class="inner split">
<section>
<h2>Why should you join us?</h2>
<p>eHarbinger was created with the gamer in mind. We've developed a safe environment for gamers to be able to find others to play with. Our algorithm uses each person's game preferences and personality to match them with other gamers with the same qualities.</p>
</section>
<section>
<img class = "image-left" src = "images/logo.png" />
</section>
</div>
</section>
<section class="wrapper">
<section class="errorMsg">
<!-- Megham pls-->
<?php
if ($_GET["err"] == 1){
echo "<font color='red'>Incorrect username and/or password.</font>";
}
elseif ($_GET["err"] == 2){
echo "<font color='red'>Username already exists.</font>";
}
elseif ($_GET["err"] == 3){
echo "<font color='red'>Your username and/or password is invalid.</font>";
}
?>
</section>
<div class="inner split">
<section>
<h2>Log In</h2>
<form action="userauth.php" method="POST">
<div>
<input type = "text" name="user" placeholder = "Username" autofocus='autofocus'>
<br>
<input type = "password" name="pxwd" placeholder = "Password">
<br>
</div>
<input type="hidden" name="type" value="login">
<input value="Log In" type = "submit">
</form>
</section>
<section>
<h2>Sign Up</h2>
<form action = "createprofile.php" method="POST">
<div>
<input type = "text" name = "user" placeholder = "Username" autocomplete='off'>
<br>
<input type = "email" name = "email" placeholder = "Email" autocomplete='off'>
<br>
<input type = "password" name = "pxwd" placeholder = "Password" autocomplete='off'>
<br>
</div>
<!-- Need to put with back end -->
<input value = "Sign Up" type = "submit">
</form>
</section>
</div>
</section>
</body>
</html>