Alternc  3.2
Alternc logiel libre pour l'hébergement
 All Data Structures Namespaces Files Functions Variables Pages
hta_edituser.php
Go to the documentation of this file.
1 <?php
2 /*
3  $Id: hta_edituser.php,v 1.4 2006/01/12 01:10:48 anarcat 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: Edit a username from a protected folder
28  ----------------------------------------------------------------------
29 */
30 require_once("../class/config.php");
31 include_once ("head.php");
32 
33 $fields = array (
34  "user" => array ("request", "string", ""),
35  "dir" => array ("request", "string", ""),
36 );
38 
39 ?>
40 <h3><?php printf(_("Editing user %s in the protected folder %s"),$user,$dir); ?></h3>
41 <hr id="topbar"/>
42 <br />
43 
44 <?php if (!empty($error) ) { echo "<p class=\"alert alert-danger\">$error</p>"; } ?>
45 
46 <form method="post" action="hta_doedituser.php" name="main" id="main">
47  <input type="hidden" name="dir" value="<?php echo $dir ?>">
48  <input type="hidden" name="user" value="<?php echo $user ?>">
49  <table border="1" cellspacing="0" cellpadding="4" class='tedit'>
50  <tr>
51  <th><?php __("Folder"); ?></th>
52  <td><code><?php echo $dir; ?></code></td>
53  </tr>
54  <tr>
55  <th><?php __("User"); ?></th>
56  <td><code><?php echo $user; ?></code></td>
57  </tr>
58  <tr>
59  <th><label for="newpass"><?php __("New password"); ?></label></th>
60  <td><input type="password" class="int" name="newpass" id="newpass" value="" size="20" maxlength="64" /><?php display_div_generate_password(DEFAULT_PASS_SIZE,"#newpass","#newpassconf"); ?></td>
61  </tr>
62  <tr>
63  <th><label for="newpassconf"><?php __("Confirm password"); ?></label></th>
64  <td><input type="password" class="int" name="newpassconf" id="newpassconf" value="" size="20" maxlength="64" /></td>
65  </tr>
66  </table>
67  <br/>
68  <input type="submit" class="inb" value="<?php __("Change the password"); ?>" />
69 </form>
70 
71 <script type="text/javascript">
72  document.forms['main'].newpass.focus();
73  document.forms['main'].setAttribute('autocomplete', 'off');
74 </script>
75 
76 <?php include_once("foot.php"); ?>