| 1 | <?php |
|---|
| 2 | /* |
|---|
| 3 | $Id: sql_passchg.php,v 1.2 2003/06/10 07:20:29 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: Benjamin Sonntag |
|---|
| 27 | Purpose of file: Change the MySQL password of a member |
|---|
| 28 | ---------------------------------------------------------------------- |
|---|
| 29 | */ |
|---|
| 30 | require_once("../class/config.php"); |
|---|
| 31 | |
|---|
| 32 | if (!$r=$mysql->get_dblist()) { |
|---|
| 33 | $error=$err->errstr(); |
|---|
| 34 | } |
|---|
| 35 | |
|---|
| 36 | include("head.php"); |
|---|
| 37 | ?> |
|---|
| 38 | </head> |
|---|
| 39 | <body> |
|---|
| 40 | <h3><?php __("MySQL Databases"); ?></h3> |
|---|
| 41 | <?php |
|---|
| 42 | if ($error) { |
|---|
| 43 | echo "<p class=\"error\">$error</p><p> </p>"; |
|---|
| 44 | } |
|---|
| 45 | |
|---|
| 46 | echo "<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"> |
|---|
| 51 | <tr class="lst2"><th><?php __("Username"); ?></th><td><code><?php echo $mem->user["login"]; ?></code></td></tr> |
|---|
| 52 | <tr class="lst1"><th><?php __("Password"); ?></th><td><code><input class="int" type="text" name="pass" value="" /></code></td></tr> |
|---|
| 53 | <tr class="lst2"><th><?php __("SQL Server"); ?></th><td><code><?php echo $mysql->server; ?></code></td></tr> |
|---|
| 54 | <tr class="lst1"><th><?php __("Database"); ?></th><td><code><?php echo $mem->user["login"]; ?></code></td></tr> |
|---|
| 55 | <tr><td><input type="submit" class="inb" name="submit" value="<?php __("Change the password"); ?>" /></td></tr> |
|---|
| 56 | </table> |
|---|
| 57 | </form> |
|---|
| 58 | |
|---|
| 59 | </body> |
|---|
| 60 | </html> |
|---|