source: bureau/admin/sql_passchg.php @ 798

Revision 798, 2.3 KB checked in by anarcat, 7 years ago (diff)

[project @ alternc: changeset 2006-01-12 01:10:48 by anarcat]
ajouter des champs de confirmation partout ou on a des passwords non
en clair changer le type de d'autres champs passwords que j'avais
oublie Approved by: vinci on #alternc

Original author: anarcat
Date: 2006-01-12 01:10:48

RevLine 
[1]1<?php
2/*
[798]3 $Id: sql_passchg.php,v 1.5 2006/01/12 01:10:48 anarcat Exp $
[1]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: Benjamin Sonntag
27 Purpose of file: Change the MySQL password of a member
28 ----------------------------------------------------------------------
29*/
30require_once("../class/config.php");
31
32if (!$r=$mysql->get_dblist()) {
33        $error=$err->errstr();
34}
35
36include("head.php");
37?>
38</head>
39<body>
[104]40<h3><?php __("MySQL Databases"); ?></h3>
[1]41<?php
42        if ($error) {
[104]43                echo "<p class=\"error\">$error</p><p>&nbsp;</p>";
[1]44        }
45
46echo "<p>"._("Enter the new password of your SQL database and click 'change the password' to change it")."</p>";
47?>
48
49<form method="post" action="sql_pass.php">
50<table cellspacing="0" cellpadding="4">
[694]51                <tr class="lst2"><th><?php __("Username"); ?></th><td><code><?php echo $r[0]["login"]; ?></code></td></tr>
[798]52                <tr class="lst1"><th><label for="pass"><?php __("Password"); ?></label></th><td><code><input class="int" type="password" name="pass" id="pass" value="" /></code></td></tr>
[107]53                <tr class="lst2"><th><?php __("SQL Server"); ?></th><td><code><?php echo $mysql->server; ?></code></td></tr>
[694]54                <tr class="lst1"><th><?php __("Database"); ?></th><td><code><?php echo $r[0]["db"]; ?></code></td></tr>
[104]55        <tr><td><input type="submit" class="inb" name="submit" value="<?php __("Change the password"); ?>" /></td></tr>
[1]56</table>
57</form>
58
59</body>
60</html>
Note: See TracBrowser for help on using the repository browser.