| 1 |
<?php |
| 2 |
// Exit if accessed directly |
| 3 |
if( !defined( 'ABSPATH' ) ) exit; |
| 4 |
$user_login = (isset($_POST['wpfreg']['user_login'])) ? sanitize_user($_POST['wpfreg']['user_login']) : '';; |
| 5 |
$user_email = (isset($_POST['wpfreg']['user_email'])) ? sanitize_email($_POST['wpfreg']['user_email']) : ''; |
| 6 |
?> |
| 7 |
|
| 8 |
<p id="wpforo-title"><?php wpforo_phrase('Forum - Registration') ?></p> |
| 9 |
|
| 10 |
<?php if( wpforo_feature('user-register', $wpforo) ): ?> |
| 11 |
<form name="wpfreg" action="" method="POST"> |
| 12 |
<div class="wpforo-register-wrap"> |
| 13 |
<div class="wpforo-register-content"> |
| 14 |
<table class="wpforo-register-table wpfcl-1" width="100%" border="0" cellspacing="0" cellpadding="0"> |
| 15 |
<tr class="wpfbg-9"> |
| 16 |
<td class="wpf-register-label"> |
| 17 |
<p class="wpf-label wpfcl-1"><?php wpforo_phrase('Username') ?>:</p> |
| 18 |
<span class="wpf-desc wpfcl-2"><?php wpforo_phrase('Length must be between 3 characters and 15 characters.') ?></span> |
| 19 |
</td> |
| 20 |
<td class="wpf-register-field"><input autofocus required="TRUE" type="text" value="<?php echo esc_attr($user_login) ?>" name="wpfreg[user_login]" class="wpf-register-text wpfw-70" maxlength="30" /></td> |
| 21 |
</tr> |
| 22 |
<tr class="wpfbg-7"> |
| 23 |
<td class="wpf-register-label"> |
| 24 |
<p class="wpf-label wpfcl-1"><?php wpforo_phrase('Email') ?>:</p> |
| 25 |
</td> |
| 26 |
<td class="wpf-register-field"><input required="TRUE" type="text" value="<?php echo esc_attr($user_email) ?>" name="wpfreg[user_email]" class="wpf-register-text wpfw-70" /></td> |
| 27 |
</tr> |
| 28 |
<?php if( wpforo_feature('user-register-email-confirm', $wpforo) ): ?> |
| 29 |
<tr class="wpfbg-9"> |
| 30 |
<td class="wpf-register-label"> |
| 31 |
</td> |
| 32 |
<td class="wpf-register-field"> |
| 33 |
<span class="wpf-desc wpfcl-2"><?php wpforo_phrase('After registration you will receive email confimation and link for set a new password') ?>:</span> |
| 34 |
</td> |
| 35 |
</tr> |
| 36 |
<?php else : ?> |
| 37 |
<tr class="wpfbg-9"> |
| 38 |
<td class="wpf-register-label"> |
| 39 |
<p class="wpf-label wpfcl-1"><?php wpforo_phrase('Password') ?>:</p> |
| 40 |
<span class="wpf-desc wpfcl-2"><?php wpforo_phrase('Must be minimum 6 characters.') ?></span> |
| 41 |
</td> |
| 42 |
<td class="wpf-register-field"> |
| 43 |
<input required="TRUE" type="password" name="wpfreg[user_pass1]" class="wpf-register-text wpfw-50" /> <br /> |
| 44 |
<input required="TRUE" type="password" name="wpfreg[user_pass2]" class="wpf-register-text wpfw-50" /> <span class="wpf-desc wpfcl-2" style="white-space:nowrap"><?php wpforo_phrase('confirm password') ?></span> |
| 45 |
</td> |
| 46 |
</tr> |
| 47 |
<?php endif ?> |
| 48 |
<tr class="wpfbg-7"> |
| 49 |
<td class="wpf-register-label"></td> |
| 50 |
<td id="wpforo_register_form_hook"> |
| 51 |
<?php do_action('register_form') ?> |
| 52 |
</td> |
| 53 |
</tr> |
| 54 |
<tr class="wpfbg-9"> |
| 55 |
<td class="wpf-register-label"> </td> |
| 56 |
<td class="wpf-register-field"> <input type="submit" value="<?php wpforo_phrase('Register') ?>" /></td> |
| 57 |
</tr> |
| 58 |
</table> |
| 59 |
</div> |
| 60 |
</div> |
| 61 |
</form> |
| 62 |
<?php else: ?> |
| 63 |
<div class="wpforo-register-wrap"> |
| 64 |
<div class="wpforo-register-content"> |
| 65 |
<p class="wpf-p-error"><?php wpforo_phrase('User registration is disabled') ?></p> |
| 66 |
</div> |
| 67 |
</div> |
| 68 |
<?php endif; ?> |
| 69 |
<p> </p><p> </p><p> </p> |