Alternc  3.2
Alternc logiel libre pour l'hébergement
 All Data Structures Namespaces Files Functions Variables Pages
sql_users_password.php
Go to the documentation of this file.
1 <?php
2 /*
3  $Id: sql_users_rights.php,v 1.8 2006/02/16 16:26:28 nahuel 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: Nahuel ANGELINETTI
27  Purpose of file: Manage the MySQL users of a member
28  ----------------------------------------------------------------------
29 */
30 require_once("../class/config.php");
31 include_once("head.php");
32 
33 $fields = array (
34  "id" => array ("request", "string", ""),
35 );
37 ?>
38 <h3><?php __("Change this user's password"); echo " - ".$id ?></h3>
39 <hr id="topbar"/>
40 <br />
41 <?php
42 $r=$mysql->get_user_dblist($id);
43 if (!$r) {
44  $error=$err->errstr();
45 }
46 
47 if (! empty($error) ) {
48  echo "<p class=\"alert alert-danger\">$error</p>";
49  require_once('foot.php');
50  die();
51 }
52 
53 ?>
54 
55 <form method="post" action="sql_users_dopassword.php">
56 <input type="hidden" name="id" value="<?php echo $id; ?>" />
57 <table cellspacing="0" cellpadding="4" class="tedit">
58  <tr>
59  <th><label for="password"><?php __("Password"); ?></label></th>
60  <td><input type="password" class="int" name="password" id="password" value="" size="20" maxlength="64" /><?php display_div_generate_password(DEFAULT_PASS_SIZE,"#password","#passwordconf"); ?></td>
61  </tr>
62  <tr>
63  <th><label for="passwordconf"><?php __("Confirm password"); ?></label></th>
64  <td><input type="password" class="int" name="passwordconf" id="passwordconf" value="" size="20" maxlength="64" /></td>
65  </tr>
66 </table>
67 <br/>
68 <input type="submit" class="inb" value="<?php __("Change user password"); ?>" />
69 <input type="button" class="inb" name="cancel" value="<?php __("Cancel"); ?>" onclick="document.location='sql_users_list.php'"/>
70 </form>
71 
72 <?php include_once("foot.php"); ?>