met en avant le human hostname dans les parametres SQL

(utile genre pour le phpmyadmin)

redirige vers la page de login quand on se logout
This commit is contained in:
Alan Garcia 2013-03-01 16:37:33 +00:00
parent 9936146ec1
commit 14ce6b461e
2 changed files with 9 additions and 3 deletions

View File

@ -42,16 +42,21 @@ if (!$charset) $charset="UTF-8";
<link rel="stylesheet" href="styles/style.css" type="text/css" /> <link rel="stylesheet" href="styles/style.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" /> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
</head> </head>
<body style="margin: 20px;"> <body style="margin: 20px;" onLoad="setTimeout('redirect_panel()', 1500)">
<div id="global"> <div id="global">
<div id="content" style="width:1000px;"> <div id="content" style="width:1000px;">
<h3 style="text-align: center"><?php __("Disconnected"); ?></h3> <h3 style="text-align: center"><?php __("Disconnected"); ?></h3>
<?php __("You have been logged out of your administration desktop."); ?><br /> <?php __("You have been logged out of your administration desktop."); ?><br />
<p><a href="../index.php"><?php __("Click here to log in"); ?></a></p> <p><a href="index.php"><?php __("Click here to log in"); ?></a></p>
<p>&nbsp;</p> <p>&nbsp;</p>
</div> </div>
</div> </div>
<script type="text/javascript">
function redirect_panel() {
window.location = "index.php"
}
</script>
</body> </body>
</html> </html>

View File

@ -52,9 +52,10 @@ $r=$mysql->get_defaultsparam($dbname);
?> ?>
<p><?php __("Your current connection settings are"); ?> : </p> <p><?php __("Your current connection settings are"); ?> : </p>
<table class="tedit"> <table class="tedit">
<th colspan=2 style='text-align:center;'><?php echo '<h1>'.$mysql->dbus->HumanHostname.'</h1>'; ?></th>
<tr> <tr>
<th><?php __("Mysql Server"); ?></th> <th><?php __("Mysql Server"); ?></th>
<td><code><?php echo $mysql->dbus->HumanHostname; ?></code></td> <td><code><?php echo $mysql->dbus->Host; ?></code></td>
</tr> </tr>
<tr> <tr>
<th><?php __("Database"); ?></th> <th><?php __("Database"); ?></th>