source: bureau/admin/sql_getparam.php @ 692

Revision 692, 2.0 KB checked in by anarcat, 7 years ago (diff)

[project @ alternc: changeset 2005-05-27 20:10:18 by arnaud-lb]
baser les logins mysql sur l'id des utilisateurs Mantis bug: 464

Original author: arnaud-lb
Date: 2005-05-27 20:10:19

Line 
1<?php
2/*
3 $Id: sql_getparam.php,v 1.4 2005/05/27 20:10:18 arnaud-lb 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: Return the current SQL settings
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>
40<h3><?php __("MySQL Databases"); ?></h3>
41<?php
42        if ($error) {
43                echo "<p class=\"error\">$error</p><p>&nbsp;</p>";
44        }
45
46?>
47<p><?php __("Your current settings are"); ?> : </p>
48<table cellspacing="0" cellpadding="4">
49                <tr class="lst2"><th><?php __("Username"); ?></th><td><code><?php echo $r[0]["login"]; ?></code></td></tr>
50                <tr class="lst1"><th><?php __("Password"); ?></th><td><code><?php echo $r[0]["pass"]; ?></code></td></tr>
51                <tr class="lst2"><th><?php __("SQL Server"); ?></th><td><code><?php echo $mysql->server; ?></code></td></tr>
52                <tr class="lst1"><th><?php __("Database"); ?></th><td><code><?php echo $r[0]["db"]; ?></code></td></tr>
53</table>
54
55</body>
56</html>
Note: See TracBrowser for help on using the repository browser.