Alternc  3.2
Alternc logiel libre pour l'h├ębergement
 All Data Structures Namespaces Files Functions Variables Pages
hta_add.php
Go to the documentation of this file.
1 <?php
2 /*
3  $Id: hta_add.php,v 1.3 2003/06/10 13:16:11 root Exp $
4  ----------------------------------------------------------------------
5  AlternC - Web Hosting System
6  Copyright (C) 2002 by the AlternC Development Team.
7  http://alternc.org/
8  ----------------------------------------------------------------------
9  Based on:
10  Valentin Lacambre's web hosting softwares: http://altern.org/
11  ----------------------------------------------------------------------
12  LICENSE
13 
14  This program is free software; you can redistribute it and/or
15  modify it under the terms of the GNU General Public License (GPL)
16  as published by the Free Software Foundation; either version 2
17  of the License, or (at your option) any later version.
18 
19  This program is distributed in the hope that it will be useful,
20  but WITHOUT ANY WARRANTY; without even the implied warranty of
21  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  GNU General Public License for more details.
23 
24  To read the license please visit http://www.gnu.org/copyleft/gpl.html
25  ----------------------------------------------------------------------
26  Original Author of file: Franck Missoum
27  Purpose of file: Ask the required values to protect a folder
28  ----------------------------------------------------------------------
29 */
30 require_once("../class/config.php");
31 include_once("head.php");
32 
33 $fields = array (
34  "dir" => array ("request", "string", ""),
35 );
37 
38 ?>
39 <h3><?php __("Protect a folder"); ?></h3>
40 <hr id="topbar"/>
41 <br/>
42 <p>
43 <?php __("Enter the name of the folder you want to protect. It must already exists."); ?>
44 </p>
45 <?php
46 if (isset($error) && $error) {
47  echo "<p class=\"alert alert-danger\">$error</p>";
48  include_once("foot.php");
49  exit;
50 } ?>
51 
52 <form method="post" action="hta_doadd.php" name="main" id="main">
53  <table border="1" cellspacing="0" cellpadding="4" class='tedit'>
54  <tr>
55  <th><label for="dir"><?php __("Folder"); ?></label></th>
56  <td>
57  <input type="text" class="int" name="dir" id="dir" value="<?php (isset($dir)) ? : $dir="";ehe($dir); ?>" maxlength="255" />
58  <?php display_browser( ehe($dir,0) , "main.dir" ); ?>
59  </td>
60  </tr>
61  </table>
62  <br />
63  <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."));?>');" />
64 </form>
65 
66 <script type="text/javascript">
67  document.forms['main'].dir.focus();
68 </script>
69 
70 <?php include_once("foot.php"); ?>