Alternc  3.2
Alternc logiel libre pour l'h├ębergement
 All Data Structures Namespaces Files Functions Variables Pages
adm_db_servers.php
Go to the documentation of this file.
1 <?php
2 /*
3 ----------------------------------------------------------------------
4 AlternC - Web Hosting System
5 Copyright (C) 2000-2012 by the AlternC Development Team.
6 https://alternc.org/
7 ----------------------------------------------------------------------
8 LICENSE
9 
10 This program is free software; you can redistribute it and/or
11 modify it under the terms of the GNU General Public License (GPL)
12 as published by the Free Software Foundation; either version 2
13 of the License, or (at your option) any later version.
14 
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
19 
20 To read the license please visit http://www.gnu.org/copyleft/gpl.html
21 ----------------------------------------------------------------------
22 Purpose of file: Show a form to edit a member
23 ----------------------------------------------------------------------
24 */
25 require_once("../class/config.php");
26 
27 include("head.php");
28 
29 if (!$admin->enabled) {
30  __("This page is restricted to authorized staff");
31  exit();
32 }
33 
34 ?>
35 <h3><?php __("List of the databases servers"); ?></h3>
36 <hr/>
37 <?php
38 
39 $lst_db_servers = $mysql->list_db_servers();
40 
41 echo "<p>";
42 __("Here the list of the available databases servers.");
43 echo "</p>";
44 
45 ?>
46 
47 <table class="tlist">
48  <tr>
49  <th><?php __("ID"); ?></th>
50  <th><?php __("Name"); ?></th>
51  <th><?php __("Hostname"); ?></th>
52  <th><?php __("Login"); ?></th>
53  <th><?php __("Client"); ?></th>
54  <th><?php __("Users"); ?></th>
55  </tr>
56 <?php
57 foreach ( $lst_db_servers as $l) {
58  echo "<tr class='lst'>"; ?>
59  <td><?php echo $l['id']; ?></td>
60  <td><?php echo $l['name']; ?></td>
61  <td><?php echo $l['host']; ?></td>
62  <td><?php echo $l['login']; ?></td>
63  <td><?php echo $l['client']; ?></td>
64  <td><?php echo $l['nb_users']; ?></td>
65  </tr>
66 <?php } //foreach lst_db_servers ?>
67 </table>
68 
69 <?php
70 echo "<p>";
71 __("To add a database server, do an INSERT into the db_servers table");
72 echo "</p>";
73 echo "<p>";
74 __("To update the list of the server on the PhpMyAdmin login page, launch alternc.install");
75 echo "</p>";
76 
77 include_once('foot.php');
78 ?>