This repository was archived by the owner on Nov 11, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.php
65 lines (64 loc) · 3.1 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
<?php require_once("config.php");
session_start();
if (isset($_SESSION['id'])) {
header('Location: dashboard.php');
}
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="css/style.css" media="screen">
</head>
<body>
<div class="bodywrap">
<div class="stackright login-container">
<form action="dashboard.php" method="post">
login: <input name="email" type="email" required="required" placeholder="first.last@<?php echo(Settings::$validEmailDomain); ?>" /> <input name="password" type="password" required="required" placeholder="password"/> <input type="submit" value="go" />
</form>
</div>
<br style="clear:both">
<div class="padded content">
<div id="error">
<?php
echo '<font color="red">';
if (isset($_GET['error'])) {
echo $_GET['error'];
}
echo '</font>';
?>
</div>
<h1><?php echo(Settings::$name); ?></h1>
<p>A service from the <?php echo(Settings::$organization); ?> to help you find a date (or a friend).</p>
<h2>How it works:</h2>
<ol>
<li>You answer some questions about yourself.</li>
<li>We add you to our magic database so that others can get matched to you.</li>
<li>If you make a small donation to the <?php echo(Settings::$organization); ?>, our monkeys and robots make a list of people you would get along with on a date or as buddies.</li>
</ol>
<h2>Create an account:</h2>
<form id="form" name="login" action="dashboard.php" method="post">
<table class="register-container">
<tr>
<td>Email Address</td>
<td><input name="email" id="email" type="email" required="required" class="register-container register-field" value="@<?php echo(Settings::$validEmailDomain); ?>" /></td>
</tr>
<tr>
<td>Choose a Password</td>
<td><input type="password" name="password" required="required" class="register-field" /></td>
</tr>
<tr>
<td>Confirm Password</td>
<td><input type="password" name="password-check" required="required" class="register-field" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" id="submit" value="sign me up!" /></td>
</tr>
<input type="hidden" name="isNewUser" value="true" />
</table>
</form>
</div>
</div>
<div class="fixed-corner">Powered by <a href="http://github.com/WartburgComputerClub/date2knight">Date 2 Knight</a> :: <a href="http://wartburg.edu">Wartburg College</a> <a href="http://mcsp.wartburg.edu">Computer Club</a></div>
<body>
</html>