View difference between Paste ID: KcQEqFym and cBbsteDb
SHOW: | | - or go back to the newest paste.
1
<?php if (!defined('FLUX_ROOT')) exit; ?>
2
<h2><?php echo htmlspecialchars(Flux::message('AccountCreateHeading')) ?></h2>
3
<p><?php printf(htmlspecialchars(Flux::message('AccountCreateInfo')), '<a href="'.$this->url('service', 'tos').'">'.Flux::message('AccountCreateTerms').'</a>') ?></p>
4
<?php if (Flux::config('RequireEmailConfirm')): ?>
5
<p><strong>Note:</strong> You will need to provide a working e-mail address to confirm your account before you can log-in.</p>
6
<?php endif ?>
7
<p><strong>Note:</strong> <?php echo sprintf("Your password must be between %d and %d characters.", Flux::config('MinPasswordLength'), Flux::config('MaxPasswordLength')) ?></p>
8
<?php if (Flux::config('PasswordMinUpper') > 0): ?>
9
<p><strong>Note:</strong> <?php echo sprintf(Flux::message('PasswordNeedUpper'), Flux::config('PasswordMinUpper')) ?></p>
10
<?php endif ?>
11
<?php if (Flux::config('PasswordMinLower') > 0): ?>
12
<p><strong>Note:</strong> <?php echo sprintf(Flux::message('PasswordNeedLower'), Flux::config('PasswordMinLower')) ?></p>
13
<?php endif ?>
14
<?php if (Flux::config('PasswordMinNumber') > 0): ?>
15
<p><strong>Note:</strong> <?php echo sprintf(Flux::message('PasswordNeedNumber'), Flux::config('PasswordMinNumber')) ?></p>
16
<?php endif ?>
17
<?php if (Flux::config('PasswordMinSymbol') > 0): ?>
18
<p><strong>Note:</strong> <?php echo sprintf(Flux::message('PasswordNeedSymbol'), Flux::config('PasswordMinSymbol')) ?></p>
19
<?php endif ?>
20
<?php if (!Flux::config('AllowUserInPassword')): ?>
21
<p><strong>Note:</strong> <?php echo Flux::message('PasswordContainsUser') ?></p>
22
<?php endif ?>
23
<?php if (isset($errorMessage)): ?>
24
<p class="red" style="font-weight: bold"><?php echo htmlspecialchars($errorMessage) ?></p>
25
<?php endif ?>
26
<form action="<?php echo $this->url ?>" method="post" class="generic-form">
27
	<?php if (count($serverNames) === 1): ?>
28
	<input type="hidden" name="server" value="<?php echo htmlspecialchars($session->loginAthenaGroup->serverName) ?>">
29
	<?php endif ?>
30
	<table class="generic-form-table">
31
		<?php if (count($serverNames) > 1): ?>
32
		<tr>
33
			<th><label for="register_server"><?php echo htmlspecialchars(Flux::message('AccountServerLabel')) ?></label></th>
34
			<td>
35
				<select name="server" id="register_server"<?php if (count($serverNames) === 1) echo ' disabled="disabled"' ?>>
36
				<?php foreach ($serverNames as $serverName): ?>
37
					<option value="<?php echo htmlspecialchars($serverName) ?>"<?php if ($params->get('server') == $serverName) echo ' selected="selected"' ?>><?php echo htmlspecialchars($serverName) ?></option>
38
				<?php endforeach ?>
39
				</select>
40
			</td>
41
		</tr>
42
		<?php endif ?>
43
		
44
		<tr>
45
			<th><label for="register_username"><?php echo htmlspecialchars(Flux::message('AccountUsernameLabel')) ?></label></th>
46
			<td><input type="text" name="username" id="register_username" value="<?php echo htmlspecialchars($params->get('username')) ?>" /></td>
47
		</tr>
48
		
49
		<tr>
50
			<th><label for="register_password"><?php echo htmlspecialchars(Flux::message('AccountPasswordLabel')) ?></label></th>
51
			<td><input type="password" name="password" id="register_password" /></td>
52
		</tr>
53
		
54
		<tr>
55
			<th><label for="register_confirm_password"><?php echo htmlspecialchars(Flux::message('AccountPassConfirmLabel')) ?></label></th>
56
			<td><input type="password" name="confirm_password" id="register_confirm_password" /></td>
57
		</tr>
58
		
59
		<tr>
60
			<th><label for="register_email_address"><?php echo htmlspecialchars(Flux::message('AccountEmailLabel')) ?></label></th>
61
			<td><input type="text" name="email_address" id="register_email_address" value="<?php echo htmlspecialchars($params->get('email_address')) ?>" /></td>
62
		</tr>
63
		
64
		<tr>
65
			<th><label for="register_email_address"><?php echo htmlspecialchars(Flux::message('AccountEmailLabel2')) ?></label></th>
66
			<td><input type="text" name="email_address2" id="register_email_address2" value="<?php echo htmlspecialchars($params->get('email_address2')) ?>" /></td>
67
		</tr>
68
		
69
		<tr>
70
			<th><label><?php echo htmlspecialchars(Flux::message('AccountGenderLabel')) ?></label></th>
71
			<td>
72
				<p>
73
					<label><input type="radio" name="gender" id="register_gender_m" value="M"<?php if ($params->get('gender') === 'M') echo ' checked="checked"' ?> /> <?php echo $this->genderText('M') ?></label>
74
					<label><input type="radio" name="gender" id="register_gender_f" value="F"<?php if ($params->get('gender') === 'F') echo ' checked="checked"' ?> /> <?php echo $this->genderText('F') ?></label>
75
					<strong title="<?php echo htmlspecialchars(Flux::message('AccountCreateGenderInfo')) ?>">?</strong>
76
				</p>
77
			</td>
78
		</tr>
79
		
80
		<tr>
81
			<th><label><?php echo htmlspecialchars(Flux::message('AccountBirthdateLabel')) ?></label></th>
82
			<td><?php echo $this->dateField('birthdate',null,0) ?></td>
83
		</tr>
84
		
85
		<?php if (Flux::config('UseCaptcha')): ?>
86
		<tr>
87
			<?php if (Flux::config('EnableReCaptcha')): ?>
88
			<th><label for="register_security_code"><?php echo htmlspecialchars(Flux::message('AccountSecurityLabel')) ?></label></th>
89
			<td><?php echo $recaptcha ?></td>
90
			<?php else: ?>
91
			<th><label for="register_security_code"><?php echo htmlspecialchars(Flux::message('AccountSecurityLabel')) ?></label></th>
92
93
94
			<td>
95
				<div class="security-code">
96
					<img src="<?php echo $this->url('captcha') ?>" />
97
				</div>
98
				
99
				<input type="text" name="security_code" id="register_security_code" />
100
				<div style="font-size: smaller;" class="action">
101
					<strong><a href="javascript:refreshSecurityCode('.security-code img')"><?php echo htmlspecialchars(Flux::message('RefreshSecurityCode')) ?></a></strong>
102
				</div>
103
			</td>
104
105
			<?php endif ?>
106
///////
107
108
 <tr>
109
110
111
                       <th><label for="new_field">Custom Field</label></th>
112
113
114
                       <td><input type="text" name="new_field" id="new_field" /></td>
115
116
117
               </tr>
118
119
120
		</tr>
121
		<?php endif ?>
122
		
123
		<tr>
124
			<td></td>
125
			<td>
126
				<div style="margin-bottom: 5px">
127
					<?php printf(htmlspecialchars(Flux::message('AccountCreateInfo2')), '<a href="'.$this->url('service', 'tos').'">'.Flux::message('AccountCreateTerms').'</a>') ?>
128
				</div>
129
				<div>
130
					<button type="submit"><strong><?php echo htmlspecialchars(Flux::message('AccountCreateButton')) ?></strong></button>
131
				</div>
132
			</td>
133
		</tr>
134
	</table>
135
</form>