26 require_once(
"../class/config.php");
27 include_once(
"head.php");
30 "dir" => array (
"request",
"string",
""),
31 "user" => array (
"post",
"string",
""),
36 <h3><?php printf(_(
"Adding a username in %s"),$dir); ?></h3>
38 echo
$msg->msg_html_all();
40 $c=$admin->listPasswordPolicies();
44 <form method=
"post" action=
"hta_doadduser.php" name=
"main" id=
"main" autocomplete=
"off">
47 <table border=
"1" cellspacing=
"0" cellpadding=
"4" class=
'tedit'>
49 <th><input type=
"hidden" name=
"dir" value=
"<?php ehe($dir); ?>" /><?php
__(
"Folder"); ?></th>
50 <td><code><?php echo $dir; ?></code></td>
53 <th><label
for=
"user"><?php
__(
"Username"); ?></label></th>
54 <td><input type=
"text" class=
"int" name=
"user" id=
"user" value=
"<?php ehe($user); ?>" size=
"20" maxlength=
"64" /></td>
57 <th><label
for=
"password"><?php
__(
"Password"); ?></label></th>
61 <th><label
for=
"passwordconf"><?php
__(
"Confirm password"); ?></label></th>
62 <td><input type=
"password" class=
"int" name=
"passwordconf" autocomplete=
"off" id=
"passwordconf" value=
"" size=
"20" maxlength=
"64" /></td>
66 <input type=
"submit" class=
"inb" value=
"<?php __("Add
this user
"); ?>" />
67 <input type=
"button" class=
"inb" value=
"<?php __("Cancel
"); ?>" onclick=
"document.location='hta_edit.php?dir=<?php echo urlencode($dir); ?>';" />
69 <script type=
"text/javascript">
70 document.forms[
'main'].user.focus();
72 <?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
Add a user to a protected folder (using .htaccess for apache)