Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
changepassword.php
Go to the documentation of this file.
1 <?php
6 $text = elgg_autop(elgg_echo('user:changepassword:change_password_confirm'));
7 
8 $password1_label = elgg_echo('user:password:label');
9 $password1 = elgg_view('input/password', array(
10  'name' => 'password1',
11 ));
12 
13 $password2_label = elgg_echo('user:password2:label');
14 $password2 = elgg_view('input/password', array(
15  'name' => 'password2',
16 ));
17 
18 $u = elgg_view('input/hidden', array(
19  'name' => 'u',
20  'value' => $vars['guid'],
21 ));
22 
23 $c = elgg_view('input/hidden', array(
24  'name' => 'c',
25  'value' => $vars['code'],
26 ));
27 
28 $submit = elgg_view('input/submit', array(
29  'value' => elgg_echo('changepassword')
30 ));
31 
32 echo <<<HTML
33 $text
34 <div><label>$password1_label</label>$password1</div>
35 <div><label>$password2_label</label>$password2</div>
36 <div class="elgg-foot">
37 $u $c
38 $submit
39 </div>
40 HTML;
41 
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$password1
$text
Reset user password form.
$vars['entity']
$submit
elgg_autop($string)
Create paragraphs from text with line spacing.
Definition: output.php:56
$password1_label
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:342
$password2_label
$password2