25 require_once(
"../class/config.php");
28 "login" => array (
"request",
"string",
""),
29 "pass" => array (
"request",
"string",
""),
30 "passconf" => array (
"request",
"string",
""),
35 if (!$aws->login_exists($login)) {
37 include(
"aws_users.php");
42 if ($pass != $passconf) {
43 $error = _(
"Passwords do not match");
44 include(
"aws_users.php");
47 if (!$aws->change_pass($login,$pass)) {
50 $error = _(
"Password successfuly updated");
51 include(
"aws_users.php");
57 include_once(
"head.php");
60 <h3><?php
__(
"Change a user's password"); ?></h3>
64 <p
class=
"error"><?php echo
$error ; $error=
''; ?></p>
67 <form method=
"post" action=
"aws_pass.php" name=
"main" id=
"main">
70 <?php
__(
"Username"); ?></th><td>
71 <code><?php echo $login; ?></code> <input type=
"hidden" name=
"login" value=
"<?php echo $login; ?>" />
73 <tr><th><label
for=
"pass"><?php
__(
"New Password"); ?></label></th><td><input type=
"password" class=
"int" name=
"pass" id=
"pass" value=
"<?php echo $pass; ?>" size=
"20" maxlength=
"64" /><?php
display_div_generate_password(
DEFAULT_PASS_SIZE,
"#pass",
"#passconf"); ?></td></tr>
74 <tr><th><label
for=
"passconf"><?php
__(
"Confirm password"); ?></label></th><td><input type=
"password" class=
"int" name=
"passconf" id=
"passconf" value=
"" size=
"20" maxlength=
"64" /></td></tr>
75 <tr
class=
"trbtn"><td colspan=
"2">
76 <input type=
"submit" class=
"inb" name=
"submit" value=
"<?php __("Change
this user
's password"); ?>" />
77 <input type="button" class="inb" name="cancel" value="<?php __("Cancel"); ?>" onclick="document.location='aws_users.php
'"/>
82 <script type="text/javascript">
83 document.forms['main
'].pass.focus();
84 document.forms['main
'].setAttribute('autocomplete
', 'off
');
88 <?php include_once("foot.php"); ?>