Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
forgotten_password.php
Go to the documentation of this file.
1 <?php
9 if (elgg_is_logged_in()) {
10  forward();
11 }
12 
13 $title = elgg_echo("user:password:lost");
14 
15 $content = elgg_view_form('user/requestnewpassword', array(
16  'class' => 'elgg-form-account',
17 ));
18 
19 if (elgg_get_config('walled_garden')) {
20  elgg_load_css('elgg.walled_garden');
21  $body = elgg_view_layout('walled_garden', array('content' => $content));
22  echo elgg_view_page($title, $body, 'walled_garden');
23 } else {
24  $body = elgg_view_layout('one_column', array(
25  'title' => $title,
26  'content' => $content,
27  ));
29 }
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
elgg_is_logged_in()
Returns whether or not the user is currently logged in.
Definition: sessions.php:51
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg_view_form($action, $form_vars=array(), $body_vars=array())
Definition: views.php:1302
elgg_view_layout($layout_name, $vars=array())
Displays a layout with optional parameters.
Definition: views.php:679
elgg_load_css($name)
Load a CSS file for this page.
Definition: elgglib.php:286
forward($location="", $reason= 'system')
Forward to $location.
Definition: elgglib.php:93
if(elgg_is_logged_in()) $title
elgg_view_page($title, $body, $page_shell= 'default', $vars=array())
Assembles and outputs a full page.
Definition: views.php:437