26 require_once(
"../class/config.php");
27 include_once(
"head.php");
31 "dir" => array (
"request",
"string",
""),
37 echo
"<p class=\"alert alert-warning\">"._(
"No folder selected!").
"</p>";
38 require_once(
'foot.php');
41 $r=$hta->get_hta_detail($dir);
44 $c=$admin->listPasswordPolicies();
48 <h3><?php printf(_(
"List of authorized user in folder %s"),$dir); ?></h3>
53 $msg->raise(
"INFO",
"hta", _(
"No authorized user in %s"),$dir);
54 echo
$msg->msg_html_all();
57 echo
$msg->msg_html_all();
59 <form method=
"post" action=
"hta_dodeluser.php">
61 <table cellspacing=
"0" cellpadding=
"4" class=
'tlist'>
63 <th colspan=
"2" ><input type=
"hidden" name=
"dir" value=
"<?php ehe($dir); ?>"> </th>
64 <th><?php
__(
"Username"); ?></th>
69 <td align=
"center"><input type=
"checkbox" class=
"inc" name=
"d[]" value=
"<?php ehe($r[$i]); ?>" /></td>
71 <div
class=
"ina"><a href=
"hta_edituser.php?user=<?php eue($r[$i]); ?>&dir=<?php eue($dir); ?>"><img src=
"icon/encrypted.png" alt=
"<?php __("Change
this user
's password"); ?>" /><?php __("Change this user's password
"); ?></a></div>
73 <td><?php ehe($r[$i]); ?></td>
81 <input type="submit
" class="inb
" name="submit
" value="<?php
__(
"Delete the checked users"); ?>
" />
84 <?php } // else !count $r ?>
86 <span class="inb
"><a href="bro_main.php?R=<?php
eue($dir); ?>
"><?php __("Show
this folder
's content in the File Browser"); ?></a></span>
92 <legend><h3><?php __("Adding an authorized user"); ?></h3></legend>
94 <form method="post" action="hta_doadduser.php" name="main" id="main" autocomplete="off">
96 <!-- honeypot fields -->
97 <input type="text" style="display: none" id="fakeUsername" name="fakeUsername" value="" />
98 <input type="password" style="display: none" id="fakePassword" name="fakePassword" value="" />
100 <table class="tedit">
102 <th><input type="hidden" name="dir" value="<?php ehe($dir); ?>" /><?php __("Folder"); ?></th>
103 <td><?php echo '<a href=
"bro_main.php?R='.eue($dir,false).'">
'.ehe($dir,false).'</a>
'; ?></td>
106 <th><label for="user"><?php __("Username"); ?></label></th>
107 <td><input type="text" class="int" name="user" id="user" value="" size="20" maxlength="64" /></td>
110 <th><label for="password"><?php __("Password"); ?></label></th>
111 <td><input type="password" class="int" name="password" autocomplete="off" id="password" value="" size="20" maxlength="64" /><?php display_div_generate_password(DEFAULT_PASS_SIZE,"#password","#passwordconf",$passwd_classcount); ?></td>
114 <th><label for="passwordconf"><?php __("Confirm password"); ?></label></th>
115 <td><input type="password" class="int" name="passwordconf" autocomplete="off" id="passwordconf" value="" size="20" maxlength="64" /></td>
120 <input type="submit" class="inb ok" value="<?php __("Add this user"); ?>" />
121 <input type="button" class="inb cancel" name="cancel" value="<?php __("Cancel"); ?>" onclick="document.location='hta_list.php
';"/>
125 <script type="text/javascript">
126 document.forms['main
'].user.focus();
129 <?php include_once("foot.php"); ?>
eue($str, $display=TRUE)
Echo the URLENCODED version of a value.
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 ...