27 require_once(
"../class/config.php");
28 include_once(
"head.php");
31 "dbname" => array (
"request",
"string",
""),
34 if (!
$res=$mysql->get_dblist()) {
38 $res=$mysql->get_defaultsparam($dbname);
41 <h3><?php printf(_(
"MySQL settings for database '%s'"),$dbname); ?></h3>
45 echo
$msg->msg_html_all();
47 if (
$msg->has_msgs(
"ERROR")) {
48 include_once(
"foot.php");
52 <p><?php
__(
"Your current connection settings are"); ?> : </p>
61 <th colspan=
"2" style=
'text-align:center;'><?php echo
'<h1>'._(
"Database Settings").
'</h1>'; ?></th>
64 <th><?php
__(
"Mysql Server"); ?></th>
65 <td><code><?php echo $mysql->dbus->Host; ?></code></td>
68 <th><?php
__(
"Database"); ?></th>
69 <td><code><?php
ehe($dbname); ?></code></td>
72 if(isset(
$r[
'user'])){
75 <th><?php
__(
"Login"); ?></th>
76 <td><code><?php echo
$r[
'user']; ?></code></td>
79 <th><?php
__(
"Password"); ?></th>
80 <td><code><?php echo
$r[
'password']; ?></code></td>
83 <th><?php
__(
"User Rights"); ?></th>
87 if (
$r[
"Rights"] ==
'All') {
88 $rights = _(
"All permissions");
90 $rights =
"<span style='color:orange;'>"._(
"Specific permissions").
"</span>";
94 <?php echo $rights; ?>
96 <a
class=
"inb permissions" href=
"sql_users_rights.php?id=<?php echo $r["user
"] ?>"><?php
__(
"Manage the rights"); ?></a>
105 <a
class=
"inb settings" href=
"/sql_pma_sso.php?db=<?php echo $dbname; ?>" target=
"_blank"><?php
__(
"Access PhpMyAdmin interface"); ?></a>
111 if(!isset(
$r[
'user'])){
112 echo
"<p class=\"alert alert-warning\">";
__(
"You changed the MySQL User base configuration. Please refer to your configuration");echo
"</p><p> </p>";
119 <p><span
class=
"ina back"><a href=
"sql_list.php"><?php
__(
"Back to the MySQL database list"); ?></a></span></p>
123 include_once(
"foot.php");
ehe($str, $display=TRUE)
Echo the HTMLSpecialChars version of a value.
getFields($fields, $requestOnly=false)
Get the Fields of the posted form from $_REQUEST or POST or GET and check their type.
if(! $res=$mysql->get_dblist()) $res
$fields
Show the settings (may be plural) available to access a MySQL database for an account.