From 476ef78631cde76c0f8d7cfb6e85e4af89d6e21d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?=
+
+ $cfgShowMysqlVars boolean
+ $cfgShowPhpInfo boolean
+
+
- I want to translate the messages to a new language or upgrade an
- existing language, where do I start?
+ I want to translate the messages to a new language or upgrade an
+ existing language, where do I start?
- Always use the current cvs version of your language file.
+ Always use the current cvs version of your language file.
For a new language, start from english.inc.php3. If you don't know
- how to get the cvs version, please ask one of the developers. It would be
- a good idea to subscribe to the phpmyadmin-translators discussion list,
- because this is where we ask for translations of new messages. You can
+ how to get the cvs version, please ask one of the developers. It would be a
+ good idea to subscribe to the phpmyadmin-translators discussion list,
+ because this is where we ask for translations of new messages. You can
then send your translations to the sourceforge.net translation tracker.
- My Apache server crashes when using phpMyAdmin.
+ My Apache server crashes when using phpMyAdmin.
You should first try the latest versions of Apache (and possibly MySQL).
See also the other FAQ entry about php bugs with output buffering.
If your server keeps crashing, please ask for help in the various
- Apache support groups.
+ Apache support groups.
I have found a bug. How do I inform developers?
diff --git a/config.inc.php3 b/config.inc.php3
index c78dabb4a..607efad7f 100755
--- a/config.inc.php3
+++ b/config.inc.php3
@@ -94,18 +94,23 @@ unset($cfgServers[0]);
/**
* Other core phpMyAdmin settings
*/
-$cfgOBGzip = TRUE; // use GZIP output buffering if possible
+$cfgOBGzip = TRUE; // use GZIP output buffering if possible
$cfgPersistentConnections = FALSE; // use persistent connections to MySQL database
$cfgSkipLockedTables = FALSE; // mark used tables, make possible to show
// locked tables (since MySQL 3.23.30)
$cfgShowSQL = TRUE; // show SQL queries as run
$cfgAllowUserDropDatabase = FALSE; // show a 'Drop database' link to normal users
$cfgConfirm = TRUE; // confirm 'DROP TABLE' & 'DROP DATABASE'
+
$cfgShowStats = TRUE; // allow to display statistics and space usage in
// the pages about database details and table
// properties
$cfgShowTooltip = TRUE; // display table comment as tooltip in left frame
-$cfgShowPHPInfo = FALSE; // disable access to the phpinfo() call
+
+// In the main frame, at startup...
+$cfgShowMysqlInfo = FALSE; // whether to display the "MySQL runtime
+$cfgShowMysqlVars = FALSE; // information", "MySQL system variables" and "PHP
+$cfgShowPhpInfo = FALSE; // information" links for simple users or not
// In browse mode...
$cfgShowBlob = FALSE; // display blob field contents
diff --git a/libraries/common.lib.php3 b/libraries/common.lib.php3
index 9fa8091cd..ddffbe294 100644
--- a/libraries/common.lib.php3
+++ b/libraries/common.lib.php3
@@ -109,6 +109,15 @@ if (!defined('__LIB_COMMON__')){
if (!isset($cfgShowTooltip)) {
$cfgShowTooltip = TRUE;
}
+ if (!isset($cfgShowMysqlInfo)) {
+ $cfgShowMysqlInfo = FALSE;
+ }
+ if (!isset($cfgShowMysqlVars)) {
+ $cfgShowMysqlVars = FALSE;
+ }
+ if (!isset($cfgShowPhpInfo)) {
+ $cfgShowPhpInfo = FALSE;
+ }
if (!isset($cfgShowAll)) {
$cfgShowAll = FALSE;
}
diff --git a/main.php3 b/main.php3
index 8bf70c7e5..cce0426ff 100755
--- a/main.php3
+++ b/main.php3
@@ -146,8 +146,8 @@ if ($server == 0 || count($cfgServers) > 1) {
/**
* Displays the mysql server related links
*/
-if ($server > 0)
-{
+$is_superuser = FALSE;
+if ($server > 0) {
?>