26 require_once(
"../class/config.php");
27 include_once(
"head.php");
31 "dir" => array (
"request",
"string",
""),
37 <h3><?php
__(
"Protect a folder"); ?></h3>
41 <?php
__(
"Enter the name of the folder you want to protect. It must already exists."); ?>
44 echo
$msg->msg_html_all();
47 <form method=
"post" action=
"hta_doadd.php" name=
"main" id=
"main">
49 <table border=
"1" cellspacing=
"0" cellpadding=
"4" class=
'tedit'>
51 <th><label
for=
"dir"><?php
__(
"Folder"); ?></label></th>
53 <input type=
"text" class=
"int" name=
"dir" id=
"dir" value=
"<?php (isset($dir)) ? : $dir="";ehe($dir); ?>" maxlength=
"255" />
59 <input type=
"submit" class=
"inb lock" value=
"<?php __("Protect
this folder
"); ?>" onClick=
"return false_if_empty('dir', '<?php echo addslashes(_("Can
't have empty directory."));?>');
" />
62 <script type="text/javascript
">
63 document.forms['main'].dir.focus();
66 <?php include_once("foot.php
"); ?>
display_browser($dir="", $caller="main.dir", $width=350, $height=450)
Show a button to select a folder on the server.
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 ...