forgotten_password.php 658 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Assembles and outputs the forgotten password page.
  4. *
  5. * @package Elgg.Core
  6. * @subpackage Registration
  7. */
  8. if (elgg_is_logged_in()) {
  9. forward();
  10. }
  11. $title = elgg_echo("user:password:lost");
  12. $content = elgg_view_form('user/requestnewpassword', array(
  13. 'class' => 'elgg-form-account',
  14. ));
  15. if (elgg_get_config('walled_garden')) {
  16. elgg_load_css('elgg.walled_garden');
  17. $body = elgg_view_layout('walled_garden', array('content' => $content));
  18. echo elgg_view_page($title, $body, 'walled_garden');
  19. } else {
  20. $body = elgg_view_layout('one_column', array(
  21. 'title' => $title,
  22. 'content' => $content,
  23. ));
  24. echo elgg_view_page($title, $body);
  25. }