26 require_once(
"../class/config.php");
29 "d" => array (
"post",
"array", array()),
30 "dir" => array (
"post",
"string",
""),
31 "confirm_del" => array (
"post",
"string",
""),
35 if (!empty($confirm_del)) {
37 if ($hta->del_user(
$d,$dir)) {
39 $msg->raise(
"INFO",
"hta", _(
"The user '%s' was successfully deleted"), $v);
43 include_once(
"hta_edit.php");
46 include_once(
'head.php');
48 <h3><?php
__(
"Authorized user deletion confirm"); ?></h3>
51 <?php
__(
"Do you really want to delete those users ?");?>
53 <?php
foreach(
$d as
$t) {
54 echo
"<li><b>".ehe(
$t,
false).
"</b></li>\n";
58 <form method=
"post" action=
"hta_dodeluser.php" name=
"main" id=
"main">
60 <input type=
"hidden" name=
"dir" value=
"<?php ehe($dir); ?>" >
61 <?php
foreach(
$d as
$t) {
62 echo
'<input type="hidden" name="d['.ehe(
$t,
false).
']" value="'.
ehe(
$t,
false).
'" >'.
"\n";
64 <input type=
"submit" class=
"inb" name=
"confirm_del" value=
"<?php __("Delete
")?>" />
65 <input type=
"button" class=
"inb" name=
"cancel" value=
"<?php __("Cancel
"); ?>" onclick=
"document.location='/hta_edit.php?dir=<?php echo urlencode($dir);?>'" />
69 include_once(
'foot.php');
ehe($str, $display=TRUE)
Echo the HTMLSpecialChars 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 ...
$fields
Delete a username from a protected folder.
foreach($domaines_user as $domaine) $t