Guest User

Untitled

a guest
Feb 11th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. <?php
  2. /**
  3. * Elgg register form
  4. *
  5. * @package Elgg
  6. * @subpackage Core
  7. */
  8.  
  9. $password = $password2 = '';
  10. $username = get_input('u');
  11. $email = get_input('e');
  12. $name = get_input('n');
  13.  
  14. if (elgg_is_sticky_form('register')) {
  15. extract(elgg_get_sticky_values('register'));
  16. elgg_clear_sticky_form('register');
  17. }
  18.  
  19. ?>
  20.  
  21.  
  22.  
  23. <div class="mtm">
  24. <label><?php echo elgg_echo('name'); ?></label><br />
  25. <?php
  26. echo elgg_view('input/text', array(
  27. 'name' => 'name',
  28. 'value' => $name,
  29. 'class' => 'elgg-autofocus',
  30. ));
  31. ?>
  32. </div>
  33. <div>
  34. <label><?php echo elgg_echo('email'); ?></label><br />
  35. <?php
  36. echo elgg_view('input/text', array(
  37. 'name' => 'email',
  38. 'value' => $email,
  39. ));
  40. ?>
  41. </div>
  42. <div>
  43. <label><?php echo elgg_echo('username'); ?></label><br />
  44. <?php
  45. echo elgg_view('input/text', array(
  46. 'name' => 'username',
  47. 'value' => $username,
  48. ));
  49. ?>
  50. </div>
  51. <div>
  52. <label><?php echo elgg_echo('password'); ?></label><br />
  53. <?php
  54. echo elgg_view('input/password', array(
  55. 'name' => 'password',
  56. 'value' => $password,
  57. ));
  58. ?>
  59. </div>
  60. <div>
  61. <label><?php echo elgg_echo('passwordagain'); ?></label><br />
  62. <?php
  63. echo elgg_view('input/password', array(
  64. 'name' => 'password2',
  65. 'value' => $password2,
  66. ));
  67. ?>
  68.  
  69. </div>
  70.  
  71.  
  72.  
  73.  
  74. <?php
  75. // view to extend to add more fields to the registration form
  76. echo elgg_view('register/extend', $vars);
  77.  
  78. // Add captcha hook
  79. echo elgg_view('input/captcha', $vars);
  80.  
  81. echo '<div class="elgg-foot">';
  82. echo elgg_view('input/hidden', array('name' => 'friend_guid', 'value' => $vars['friend_guid']));
  83. echo elgg_view('input/hidden', array('name' => 'invitecode', 'value' => $vars['invitecode']));
  84. echo elgg_view('input/submit', array('name' => 'submit', 'value' => elgg_echo('register')));
  85. echo '</div>';
Add Comment
Please, Sign In to add comment