|
43 | 43 | <div id="regform" class="blockform"> |
44 | 44 | <h2><span><?php _e('Register') ?></span></h2> |
45 | 45 | <div class="box"> |
46 | | - <form id="register" method="post" action="" onsubmit="this.register.disabled=true;if(process_form(this)){return true;}else{this.register.disabled=false;return false;}"> |
| 46 | + <form id="register" method="post" action=""> |
47 | 47 | <input type="hidden" name="csrf_name" value="<?= $csrf_name; ?>"><input type="hidden" name="csrf_value" value="<?= $csrf_value; ?>"> |
48 | 48 | <div class="inform"> |
49 | 49 | <div class="forminfo"> |
|
57 | 57 | <input type="hidden" name="form_sent" value="1" /> |
58 | 58 | <input type="hidden" name="username" value="" /> |
59 | 59 | <input type="hidden" name="password" value="" /> |
60 | | - <label class="required"><strong><?php _e('Username') ?> <span><?php _e('Required') ?></span></strong><br /><input type="text" name="req_user" value="<?php if (Input::post('req_user')) { |
61 | | - echo Utils::escape(Input::post('req_user')); |
62 | | -} ?>" size="25" maxlength="25" /><br /></label> |
| 60 | + <label class="required"><strong><?php _e('Username') ?> <span><?php _e('Required') ?></span></strong><br /><input type="text" name="req_user" value="<?= Input::post('req_user'); ?>" size="25" maxlength="25" required /><br /></label> |
63 | 61 | </div> |
64 | 62 | </fieldset> |
65 | 63 | </div> |
66 | | -<?php if (ForumSettings::get('o_regs_verify') == '0'): ?> <div class="inform"> |
| 64 | +<?php if (ForumSettings::get('o_regs_verify') == '0'): ?> |
| 65 | + <div class="inform"> |
67 | 66 | <fieldset> |
68 | 67 | <legend><?php _e('Pass legend') ?></legend> |
69 | 68 | <div class="infldset"> |
70 | | - <label class="conl required"><strong><?php _e('Password') ?> <span><?php _e('Required') ?></span></strong><br /><input type="password" name="req_password1" value="<?php if (Input::post('req_password1')) { |
71 | | - echo Utils::escape(Input::post('req_password1')); |
72 | | -} ?>" size="16" /><br /></label> |
73 | | - <label class="conl required"><strong><?php _e('Confirm pass') ?> <span><?php _e('Required') ?></span></strong><br /><input type="password" name="req_password2" value="<?php if (Input::post('req_password2')) { |
74 | | - echo Utils::escape(Input::post('req_password2')); |
75 | | -} ?>" size="16" /><br /></label> |
| 69 | + <label class="conl required"><strong><?php _e('Password') ?> <span><?php _e('Required') ?></span></strong><br /><input type="password" name="req_password1" value="<?= Input::post('req_password1') ?>" size="16" required /><br /></label> |
| 70 | + <label class="conl required"><strong><?php _e('Confirm pass') ?> <span><?php _e('Required') ?></span></strong><br /><input type="password" name="req_password2" value="<?= Input::post('req_password2'); ?>" size="16" required /><br /></label> |
76 | 71 | <p class="clearb"><?php _e('Pass info') ?></p> |
77 | 72 | </div> |
78 | 73 | </fieldset> |
79 | 74 | </div> |
80 | | -<?php endif; ?> <div class="inform"> |
| 75 | +<?php endif; ?> |
| 76 | + <div class="inform"> |
81 | 77 | <fieldset> |
82 | 78 | <legend><?php echo(ForumSettings::get('o_regs_verify') == '1') ? __('Email legend 2') : __('Email legend') ?></legend> |
83 | 79 | <div class="infldset"> |
84 | | -<?php if (ForumSettings::get('o_regs_verify') == '1'): ?> <p><?php _e('Email info') ?></p> |
85 | | -<?php endif; ?> <label class="required"><strong><?php _e('Email') ?> <span><?php _e('Required') ?></span></strong><br /> |
86 | | - <input type="text" name="req_email1" value="<?php if (Input::post('req_email1')) { |
87 | | - echo Utils::escape(Input::post('req_email1')); |
88 | | -} ?>" size="50" maxlength="80" /><br /></label> |
89 | | -<?php if (ForumSettings::get('o_regs_verify') == '1'): ?> <label class="required"><strong><?php _e('Confirm email') ?> <span><?php _e('Required') ?></span></strong><br /> |
90 | | - <input type="text" name="req_email2" value="<?php if (Input::post('req_email2')) { |
91 | | - echo Utils::escape(Input::post('req_email2')); |
92 | | -} ?>" size="50" maxlength="80" /><br /></label> |
93 | | -<?php endif; ?> </div> |
| 80 | +<?php if (ForumSettings::get('o_regs_verify') == '1'): ?> |
| 81 | + <p><?php _e('Email info') ?></p> |
| 82 | +<?php endif; ?> |
| 83 | + <label class="required"><strong><?php _e('Email') ?> <span><?php _e('Required') ?></span></strong><br /> |
| 84 | + <input type="email" name="req_email1" value="<?= Input::post('req_email1'); ?>" size="50" maxlength="80" required /><br /></label> |
| 85 | +<?php if (ForumSettings::get('o_regs_verify') == '1'): ?> |
| 86 | + <label class="required"><strong><?php _e('Confirm email') ?> <span><?php _e('Required') ?></span></strong><br /> |
| 87 | + <input type="email" name="req_email2" value="<?= Input::post('req_email2'); ?>" size="50" maxlength="80" required /><br /></label> |
| 88 | +<?php endif; ?> |
| 89 | + </div> |
94 | 90 | </fieldset> |
95 | 91 | </div> |
96 | 92 | <?php |
|
128 | 124 | <legend><?php _e('Robot title') ?></legend> |
129 | 125 | <div class="infldset"> |
130 | 126 | <p><?php _e('Robot info') ?></p> |
131 | | - <label class="required"><strong><?= sprintf(__('Robot question'), $question[$index_questions]) ?> <span><?php _e('Required') ?></span></strong><br /><input name="captcha" id="captcha" type="text" size="10" maxlength="30" /><input name="captcha_q" value="<?= $qencoded ?>" type="hidden" /></label> |
| 127 | + <label class="required"><strong><?= sprintf(__('Robot question'), $question[$index_questions]) ?> <span><?php _e('Required') ?></span></strong><br /><input name="captcha" id="captcha" type="text" size="10" maxlength="30" required /><input name="captcha_q" value="<?= $qencoded ?>" type="hidden" /></label> |
132 | 128 | </div> |
133 | 129 | </fieldset> |
134 | 130 | </div> |
|
0 commit comments