Elgg  Version 1.9
password.php
Go to the documentation of this file.
1 <?php
2 
10 
11 if ($user) {
12  $title = elgg_echo('user:set:password');
13 
14  // only make the admin user enter current password for changing his own password.
15  $admin = '';
17  $admin .= elgg_echo('user:current_password:label') . ': ';
18  $admin .= elgg_view('input/password', array('name' => 'current_password'));
19  $admin = "<p>$admin</p>";
20  }
21 
22  $password = elgg_echo('user:password:label') . ': ';
23  $password .= elgg_view('input/password', array('name' => 'password'));
24  $password = "<p>$password</p>";
25 
26  $password2 = elgg_echo('user:password2:label') . ': ';
27  $password2 .= elgg_view('input/password', array('name' => 'password2'));
28  $password2 = "<p>$password2</p>";
29 
31 
33 }
$password2
Definition: register.php:14
elgg_view_module($type, $title, $body, array $vars=array())
Wrapper function for the module display pattern.
Definition: views.php:1197
elgg_is_admin_logged_in()
Returns whether or not the viewer is currently logged in and an admin user.
Definition: sessions.php:65
$admin
Definition: useradd.php:18
$title
Definition: save.php:24
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg echo
Translates a string.
Definition: languages.js:43
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
Definition: pageowner.php:53
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition: views.php:354
$password
Definition: login.php:25
$content
Set robots.txt action.
Definition: set_robots.php:6
elgg_get_logged_in_user_guid()
Return the current logged in user by guid.
Definition: sessions.php:42
$user
Definition: password.php:9