summaryrefslogtreecommitdiff
path: root/themes/CleanFS/templates/register.no-magic.tpl
blob: 16fedd290263c0eb9ff6a6829a6bcabedb57d634 (plain)
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
<h3><?= eL('registernewuser') ?></h3>
<div class="box">
<?php echo tpl_form(Filters::noXSS(createUrl('register')),null,null,null,'id="registernewuser"'); ?>
	<ul class="form_elements wide">
		<li>
			<label for="username"><?= eL('username') ?></label>
			<input required="required" value="<?php echo Filters::noXSS(Req::val('user_name')); ?>" id="username" name="user_name" type="text" size="20" maxlength="32" onblur="checkname(this.value);" /> <?= eL('validusername') ?><br /><strong><span id="errormessage"></span></strong>
		</li>

		<li>
			<label for="realname"><?= eL('realname') ?></label>
			<input required="required" value="<?php echo Filters::noXSS(Req::val('real_name')); ?>" id="realname" name="real_name" type="text" size="30" maxlength="100" />
		</li>

		<li>
			<label for="emailaddress"><?= eL('emailaddress') ?></label>
			<input id="emailaddress" value="<?php echo Filters::noXSS(Req::val('email_address')); ?>" name="email_address" required="required" type="text" size="20" maxlength="100" /> <?= eL('validemail') ?>
		</li>
		<?php if ($fs->prefs['repeat_emailaddress']): ?>
		<li>
			<label for="verifyemailaddress"><?= eL('verifyemailaddress') ?></label>
			<input id="verifyemailaddress" value="<?php echo Filters::noXSS(Req::val('verify_email_address')); ?>" name="verify_email_address" required="required" type="text" size="20" maxlength="100" />
		</li>
		<?php endif ?>

		<?php if (!empty($fs->prefs['jabber_server'])): ?>
		<li>
			<label for="jabberid"><?= eL('jabberid') ?></label>
			<input id="jabberid" value="<?php echo Filters::noXSS(Req::val('jabber_id')); ?>" name="jabber_id" type="text" size="20" maxlength="100" />
		</li>
		<?php endif ?>

		<li>
			<label for="notify_type"><?= eL('notifications') ?></label>
			<select id="notify_type" name="notify_type">
			<?php echo tpl_options($fs->getNotificationOptions(), Req::val('notify_type')); ?>
			</select>
		</li>

		<li>
			<label for="time_zone"><?= eL('timezone') ?></label>
			<select id="time_zone" name="time_zone">
			<?php
				$times = array();
				for ($i = -12; $i <= 13; $i++) {
					$times[$i] = L('GMT') . (($i == 0) ? ' ' : (($i > 0) ? '+' . $i : $i));
				}
			?>
			<?php echo tpl_options($times, Req::val('time_zone', 0)); ?>
			</select>
		</li>
		<?php if($fs->prefs['captcha_securimage']) : ?>
		<li class="captchali">
			<style>
                        #captcha_code{width:100px;}
                        .captchali .securimage label{width:auto;}
                        .captchali .securimage {display:inline-block; width:300px;}
                        </style>
			<label for="captcha_code"><?= eL('registercaptcha') ?></label>
			<div class="securimage"><?php echo $captcha_securimage_html; ?></div>
		</li>
		<?php endif; ?>
	</ul>
	<div>
		<input type="hidden" name="action" value="register.sendcode" />
		<?php if(isset($fs->prefs['captcha_recaptcha']) && $fs->prefs['captcha_recaptcha']
		&& isset($fs->prefs['captcha_recaptcha_sitekey']) && $fs->prefs['captcha_recaptcha_sitekey']
		&& isset($fs->prefs['captcha_recaptcha_secret']) && $fs->prefs['captcha_recaptcha_secret']
		): ?>
		<div class="g-recaptcha" data-sitekey="<?php echo Filters::noXSS($fs->prefs['captcha_recaptcha_sitekey']); ?>"></div>
                <noscript>Javascript is required for this Google reCAPTCHA.</noscript>
		<?php endif; ?>
		<button type="submit" name="buSubmit" id="buSubmit"><?= eL('sendcode') ?></button>	
	</div>
	<br />
	<p><?= L('note') ?></p>
</form>
</div>