26 require_once(
"../class/config.php");
27 include_once(
"head.php");
29 if (
$r=$hta->ListDir()) {
34 <h3><?php
__(
"Protected folders list"); ?></h3>
38 echo
$msg->msg_html_all();
41 echo
"<p><span class=\"ina\"><a href=\"hta_add.php\">"._(
"Protect a folder").
"</a></span><br />";
42 $mem->show_help(
"hta_list");
44 include_once(
"foot.php");
52 __(
"You can set passwords to protect some of your folders.<br/>This will create .htaccess and .htpasswd files that restrict access to these directory and to any sub-elements.");
54 $mem->show_help(
"hta_list2");
58 <form method=
"post" action=
"hta_del.php">
61 <tr><th colspan=
"2"> </th><th><?php
__(
"Folder"); ?></th></tr>
68 <td align=
"center"><input type=
"checkbox" class=
"inc" name=
"del_<?php ehe($r[$i]); ?>" value=
"<?php ehe($r[$i]); ?>" /></td>
70 <div
class=
"ina lock"><a href=
"hta_edit.php?dir=<?php eue($r[$i]); ?>"><?php
__(
"Edit login and passwords"); ?></a></div>
72 <td><?php echo
'<a href="bro_main.php?R='.ehe(
$r[
$i],
false).
'">'.
ehe(
$r[
$i],
false).
'</a>'; ?></td>
79 <input type=
"submit" class=
"ina unlock" name=
"submit" value=
"<?php __("Unprotect the checked folders
"); ?>" />
80 <span
class=
"ina add"><a href=
"hta_add.php"><?php
__(
"Protect a folder"); ?></a></span>
84 <?php
$mem->show_help(
"hta_list"); ?>
86 <?php include_once(
"foot.php"); ?>
ehe($str, $display=TRUE)
Echo the HTMLSpecialChars version of a value.
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 ...