26 require_once(
"../class/config.php");
27 include_once (
"head.php");
30 "user" => array (
"request",
"string",
""),
31 "dir" => array (
"request",
"string",
""),
35 $c=$admin->listPasswordPolicies();
39 <h3><?php printf(_(
"Editing user %s in the protected folder %s"),
$user,$dir); ?></h3>
44 echo
$msg->msg_html_all();
47 <form method=
"post" action=
"hta_doedituser.php" name=
"main" id=
"main" autocomplete=
"off">
50 <!-- honeypot fields -->
51 <input type=
"text" style=
"display: none" id=
"fakeUsername" name=
"fakeUsername" value=
"" />
52 <input type=
"password" style=
"display: none" id=
"fakePassword" name=
"fakePassword" value=
"" />
54 <input type=
"hidden" name=
"dir" value=
"<?php ehe($dir); ?>">
55 <input type=
"hidden" name=
"user" value=
"<?php ehe($user); ?>">
56 <table border=
"1" cellspacing=
"0" cellpadding=
"4" class=
'tedit'>
58 <th><?php
__(
"Folder"); ?></th>
59 <td><code><?php echo $dir; ?></code></td>
62 <th><?php
__(
"User"); ?></th>
63 <td><code><?php echo
$user; ?></code></td>
66 <th><label
for=
"newpass"><?php
__(
"New password"); ?></label></th>
70 <th><label
for=
"newpassconf"><?php
__(
"Confirm password"); ?></label></th>
71 <td><input type=
"password" class=
"int" name=
"newpassconf" autocomplete=
"off" id=
"newpassconf" value=
"" size=
"20" maxlength=
"64" /></td>
75 <input type=
"submit" class=
"inb" value=
"<?php __("Change the password
"); ?>" />
78 <script type=
"text/javascript">
79 document.forms[
'main'].newpass.focus();
82 <?php include_once(
"foot.php"); ?>
const DEFAULT_PASS_SIZE
Define constants from vars of /etc/alternc/local.sh The you can't choose where is the AlternC Panel.
display_div_generate_password($pass_size=DEFAULT_PASS_SIZE, $fields_to_fill1="", $fields_to_fill2="", $classcount=3)
Show a button to set a random password for a password field.
getFields($fields, $requestOnly=false)
Get the Fields of the posted form from $_REQUEST or POST or GET and check their type.
csrf_get($return=false)
Give a new CSRF uniq token for a form the session must be up since the CSRF is linked to the session ...
$fields
Edit a username for a protected folder (using htaccess for apache2)