This repository has been archived by the owner on Jan 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.php
112 lines (105 loc) · 3.85 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
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
<?php
// We need these.
require_once("config.php");
require_once("SOAPRegistration.php");
// Initialize session and variables.
$messages = Array();
$showForm = true;
// If form was submitted, carry out the registration.
if(!empty($_POST["submit"]))
{
$reg = new SOAPRegistration();
$messages = $reg -> getMessages();
$showForm = $reg -> showForm();
}
$messagesDisplay = '';
foreach($messages as $msg)
{
$messagesDisplay .= '<div class="errors">'.$msg.'</div>';
}
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="site.css" />
<meta name="description" content="<?php echo META_DESCRIPTION; ?>" />
<meta name="keywords" content="<?php echo META_KEYWORDS; ?>" />
<meta name="robots" content="<?php echo META_ROBOTS; ?>" />
<meta name="author" content="CHANGEME" />
<title><?php echo SITE_TITLE; ?></title>
</head>
<body>
<table class="reg">
<tr>
<td>
CHANGEME Server Registration Form
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td>
<?php
echo $messagesDisplay;
if ($showForm)
{ ?>
<form action="" method="post" name="reg">
<table class="form">
<tr>
<td align="right">
Account Name:
</td>
<td align="left">
<input name="accountname" type="text" maxlength="32" />
</td>
</tr>
<tr>
<td align="right">
Password:
</td>
<td align="left">
<input name="password" type="password" maxlength="128" />
</td>
</tr>
<tr>
<td align="right">
Confirm Password:
</td>
<td align="left">
<input name="password2" type="password" maxlength="128" />
</td>
</tr>
<tr>
<td align="right">
Email Address:
</td>
<td align="left">
<input name="email" type="text" maxlength="254" />
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" class="sbm" value="Register" name='submit' />
</td>
</tr>
</table>
</form>
<?php
}
?>
<br />
<div class="copy">
<b><a href = "https://URL.com">Link Description 1</a></b>
<br />
<b><a href = "https://URL.com">Link Description 2</a></b>
<br />
<b><a href = "https://URL.com">Link Description 3</a></b>
</div>
</td>
</tr>
</table>
</body>
</html>