Bouton "proteger ce répertoire" dans le browser n'envoyait pas correctement la valeur, et en face elle était pas récupéré

This commit is contained in:
Alan Garcia 2013-04-15 09:17:32 +00:00
parent 1232a826de
commit d3d36c198f
2 changed files with 6 additions and 1 deletions

View File

@ -592,7 +592,7 @@ if ($hta->is_protected($R)) {
echo "<a href=\"hta_edit.php?dir=".(($R)?$R:"/")."\">"._("Edit this folder's protection")."</a>";
}
else {
echo "<a href=\"hta_add.php?value=".(($R)?$R:"/")."\">"._("Protect this folder")."</a>";
echo "<a href=\"hta_add.php?dir=".(($R)?$R:"/")."\">"._("Protect this folder")."</a>";
}
?></span> <?php __("with a login and a password"); ?>
</p><p>

View File

@ -30,6 +30,11 @@
require_once("../class/config.php");
include_once("head.php");
$fields = array (
"dir" => array ("request", "string", ""),
);
getFields($fields);
?>
<h3><?php __("Protect a folder"); ?></h3>
<hr id="topbar"/>