|
@@ -1,85 +1,99 @@
|
1
|
|
-<?
|
|
1
|
+<?php
|
2
|
2
|
View::show_header('Register');
|
3
|
3
|
echo $Val->GenerateJS('registerform');
|
4
|
4
|
?>
|
5
|
|
-<script src="<?=STATIC_SERVER?>functions/validate.js" type="text/javascript"></script>
|
6
|
|
-<script src="<?=STATIC_SERVER?>functions/password_validate.js" type="text/javascript"></script>
|
|
5
|
+<script src="<?=STATIC_SERVER?>functions/validate.js" type="text/javascript">
|
|
6
|
+</script>
|
|
7
|
+<script src="<?=STATIC_SERVER?>functions/password_validate.js"
|
|
8
|
+ type="text/javascript"></script>
|
7
|
9
|
<form class="create_form" name="user" id="registerform" method="post" action="" onsubmit="return formVal();">
|
8
|
|
-<div style="width: 500px;">
|
9
|
|
- <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
10
|
|
-<?
|
|
10
|
+ <div style="width: 250px;">
|
|
11
|
+ <input type="hidden" name="auth"
|
|
12
|
+ value="<?=$LoggedUser['AuthKey']?>" />
|
|
13
|
+ <?php
|
11
|
14
|
|
12
|
15
|
if (empty($Sent)) {
|
13
|
|
- if (!empty($_REQUEST['invite'])) {
|
14
|
|
- echo '<input type="hidden" name="invite" value="'.display_str($_REQUEST['invite']).'" />'."\n";
|
15
|
|
- }
|
16
|
|
- if (!empty($Err)) {
|
17
|
|
-?>
|
18
|
|
- <strong class="important_text"><?=$Err?></strong><br /><br />
|
19
|
|
-<? } ?>
|
20
|
|
- <table class="layout" cellpadding="2" cellspacing="1" border="0" align="center">
|
21
|
|
- <tr valign="top">
|
22
|
|
- <td align="right" style="width: 100px;">Username </td>
|
23
|
|
- <td align="left">
|
24
|
|
- <input type="text" name="username" id="username" class="inputtext" placeholder="Username" value="<?=(!empty($_REQUEST['username']) ? display_str($_REQUEST['username']) : '')?>" />
|
25
|
|
- <p>Use common sense when choosing your username. <strong>Do not choose a username that can be associated with your real name.</strong> If you do so, we will not be changing it for you.</p>
|
26
|
|
- </td>
|
27
|
|
- </tr>
|
28
|
|
- <tr valign="top">
|
29
|
|
- <td align="right">Email Address </td>
|
30
|
|
- <td align="left">
|
31
|
|
- <input type="email" name="email" id="email" class="inputtext" placeholder="Email" value="<?=(!empty($_REQUEST['email']) ? display_str($_REQUEST['email']) : (!empty($InviteEmail) ? display_str($InviteEmail) : ''))?>" />
|
32
|
|
- </td>
|
33
|
|
- </tr>
|
34
|
|
- <tr valign="top">
|
35
|
|
- <td align="right">Password </td>
|
36
|
|
- <td align="left">
|
37
|
|
- <input type="password" name="password" id="new_pass_1" class="inputtext" placeholder="Password" /> <strong id="pass_strength"></strong>
|
38
|
|
- </td>
|
39
|
|
- </tr>
|
40
|
|
- <tr valign="top">
|
41
|
|
- <td align="right">Verify Password </td>
|
42
|
|
- <td align="left">
|
43
|
|
- <input type="password" name="confirm_password" id="new_pass_2" class="inputtext" placeholder="Verify Password" /> <strong id="pass_match"></strong>
|
44
|
|
- <p>An acceptable password is 6 characters or longer (please make it longer)</p>
|
45
|
|
- </td>
|
46
|
|
- </tr>
|
47
|
|
- <tr valign="top">
|
48
|
|
- <td></td>
|
49
|
|
- <td align="left">
|
50
|
|
- <input type="checkbox" name="readrules" id="readrules" value="1"<? if (!empty($_REQUEST['readrules'])) { ?> checked="checked"<? } ?> />
|
51
|
|
- <label for="readrules">I will read the rules</label>
|
52
|
|
- </td>
|
53
|
|
- </tr>
|
54
|
|
- <tr valign="top">
|
55
|
|
- <td></td>
|
56
|
|
- <td align="left">
|
57
|
|
- <input type="checkbox" name="readwiki" id="readwiki" value="1"<? if (!empty($_REQUEST['readwiki'])) { ?> checked="checked"<? } ?> />
|
58
|
|
- <label for="readwiki">I will read the wiki</label>
|
59
|
|
- </td>
|
60
|
|
- </tr>
|
61
|
|
- <tr valign="top">
|
62
|
|
- <td></td>
|
63
|
|
- <td align="left">
|
64
|
|
- <input type="checkbox" name="agereq" id="agereq" value="1"<? if (!empty($_REQUEST['agereq'])) { ?> checked="checked"<? } ?> />
|
65
|
|
- <label for="agereq">I am 18 years of age or older</label>
|
66
|
|
- </td>
|
67
|
|
- </tr>
|
68
|
|
- <tr>
|
69
|
|
- <td colspan="2" height="10"></td>
|
70
|
|
- </tr>
|
71
|
|
- <tr>
|
72
|
|
- <td colspan="2" align="right"><input type="submit" name="submit" value="Submit" class="submit" /></td>
|
73
|
|
- </tr>
|
74
|
|
- </table>
|
75
|
|
-<? } else { ?>
|
76
|
|
- An email has been sent to the address that you provided. After you confirm your email address, you will be able to log into your account.
|
|
16
|
+ if (!empty($_REQUEST['invite'])) {
|
|
17
|
+ echo '<input type="hidden" name="invite" value="'.display_str($_REQUEST['invite']).'" />'."\n";
|
|
18
|
+ }
|
|
19
|
+ if (!empty($Err)) {
|
|
20
|
+ ?>
|
|
21
|
+ <strong class="important_text"><?=$Err?></strong><br /><br />
|
|
22
|
+ <?php
|
|
23
|
+ } ?>
|
|
24
|
+ <table class="layout" cellpadding="2" cellspacing="1" border="0" align="center">
|
|
25
|
+ <tr valign="top">
|
|
26
|
+ <!-- <td align="right" style="width: 100px;">Username </td> -->
|
|
27
|
+ <td align="left">
|
|
28
|
+ <input type="text" name="username" id="username" class="inputtext" placeholder="Username"
|
|
29
|
+ value="<?=(!empty($_REQUEST['username']) ? display_str($_REQUEST['username']) : '')?>" />
|
|
30
|
+ <p>Use common sense when choosing your username. <strong>Do not choose a username that can be associated with
|
|
31
|
+ your real name.</strong> If you do so, we will not be changing it for you.</p>
|
|
32
|
+ </td>
|
|
33
|
+ </tr>
|
|
34
|
+ <tr valign="top">
|
|
35
|
+ <!-- <td align="right">Email Address </td> -->
|
|
36
|
+ <td align="left">
|
|
37
|
+ <input type="email" name="email" id="email" class="inputtext" placeholder="Email"
|
|
38
|
+ value="<?=(!empty($_REQUEST['email']) ? display_str($_REQUEST['email']) : (!empty($InviteEmail) ? display_str($InviteEmail) : ''))?>" />
|
|
39
|
+ </td>
|
|
40
|
+ </tr>
|
|
41
|
+ <tr valign="top">
|
|
42
|
+ <!-- <td align="right">Password </td> -->
|
|
43
|
+ <td align="left">
|
|
44
|
+ <input type="password" name="password" id="new_pass_1" class="inputtext" placeholder="Password" /> <strong
|
|
45
|
+ id="pass_strength"></strong>
|
|
46
|
+ </td>
|
|
47
|
+ </tr>
|
|
48
|
+ <tr valign="top">
|
|
49
|
+ <!-- <td align="right">Verify Password </td> -->
|
|
50
|
+ <td align="left">
|
|
51
|
+ <input type="password" name="confirm_password" id="new_pass_2" class="inputtext"
|
|
52
|
+ placeholder="Confirm Password" /> <strong id="pass_match"></strong>
|
|
53
|
+ <p>An acceptable password is 6 characters or longer (please make it longer).</p>
|
|
54
|
+ </td>
|
|
55
|
+ </tr>
|
|
56
|
+ <tr valign="top">
|
|
57
|
+ <!-- <td></td> -->
|
|
58
|
+ <td align="left">
|
|
59
|
+ <input type="checkbox" name="readrules" id="readrules" value="1" <?php if (!empty($_REQUEST['readrules'])) { ?>
|
|
60
|
+ checked="checked"<?php } ?> />
|
|
61
|
+ <label for="readrules">I will read the rules</label>
|
|
62
|
+ </td>
|
|
63
|
+ </tr>
|
|
64
|
+ <tr valign="top">
|
|
65
|
+ <!-- <td></td> -->
|
|
66
|
+ <td align="left">
|
|
67
|
+ <input type="checkbox" name="readwiki" id="readwiki" value="1" <?php if (!empty($_REQUEST['readwiki'])) { ?>
|
|
68
|
+ checked="checked"<?php } ?> />
|
|
69
|
+ <label for="readwiki">I will read the wiki</label>
|
|
70
|
+ </td>
|
|
71
|
+ </tr>
|
|
72
|
+ <tr valign="top">
|
|
73
|
+ <!-- <td></td> -->
|
|
74
|
+ <td align="left">
|
|
75
|
+ <input type="checkbox" name="agereq" id="agereq" value="1" <?php if (!empty($_REQUEST['agereq'])) { ?>
|
|
76
|
+ checked="checked"<?php } ?> />
|
|
77
|
+ <label for="agereq">I am 18 years of age or older</label>
|
|
78
|
+ </td>
|
|
79
|
+ </tr>
|
|
80
|
+ <tr>
|
|
81
|
+ <td colspan="2" height="10"></td>
|
|
82
|
+ </tr>
|
|
83
|
+ <tr>
|
|
84
|
+ <td colspan="2" align="right"><input type="submit" name="submit" value="Submit" class="submit" /></td>
|
|
85
|
+ </tr>
|
|
86
|
+ </table>
|
|
87
|
+ <?php
|
|
88
|
+} else { ?>
|
|
89
|
+ <p>An email has been sent to the address that you provided. After you confirm your email address, you will be able
|
|
90
|
+ to log into your account.</p>
|
77
|
91
|
|
78
|
|
-<? if ($NewInstall) {
|
79
|
|
- echo "Since this is a new installation, you can log in directly without having to confirm your account.";
|
|
92
|
+ <?php if ($NewInstall) {
|
|
93
|
+ echo "Since this is a new installation, you can log in directly without having to confirm your account.";
|
80
|
94
|
}
|
81
|
95
|
} ?>
|
82
|
|
-</div>
|
|
96
|
+ </div>
|
83
|
97
|
</form>
|
84
|
|
-<?
|
|
98
|
+<?php
|
85
|
99
|
View::show_footer();
|