From d2bee66fc4183e6a0fc04964b8096f5b1ee36f7d Mon Sep 17 00:00:00 2001 From: Samiran Raj Boro Date: Wed, 16 Mar 2011 11:51:09 +0100 Subject: [PATCH] server variables documentation link in server_variables.php - $doclink is not used anymore as we dont use the value after echo the link - $VARIABLE_DOC_LINKS is first check isset() because it might not be stored in our ./libraries/server_variables_doc.php if any new variables are introduced in new version of MySQL it must be added to server_variable_doc.php to display the link --- ChangeLog | 1 + libraries/server_variables_doc.php | 348 +++++++++++++++++++++++++++++ server_variables.php | 11 + 3 files changed, 360 insertions(+) create mode 100644 libraries/server_variables_doc.php diff --git a/ChangeLog b/ChangeLog index 0bd7a8ab2..e570b2142 100644 --- a/ChangeLog +++ b/ChangeLog @@ -147,6 +147,7 @@ - rfe #1168350 [interface] Add clear button to SQL edit box. - [core] Update library PHPExcel to version 1.7.6 - bug #3206876 [core] Work without mbstring installed. +- rfe #3196075, patch #3212068 [interface] Add links to variables documentation. 3.3.10.0 (not yet released) - patch #3147400 [structure] Aria table size printed as unknown, diff --git a/libraries/server_variables_doc.php b/libraries/server_variables_doc.php new file mode 100644 index 000000000..3e8faa839 --- /dev/null +++ b/libraries/server_variables_doc.php @@ -0,0 +1,348 @@ + diff --git a/server_variables.php b/server_variables.php index f601fe80e..adaf3247f 100644 --- a/server_variables.php +++ b/server_variables.php @@ -26,6 +26,11 @@ require './libraries/server_common.inc.php'; require './libraries/server_links.inc.php'; +/** + * Required to display documentation links + */ +require './libraries/server_variables_doc.php'; + /** * Displays the sub-page heading */ @@ -55,6 +60,7 @@ $serverVarsGlobal = PMA_DBI_fetch_result('SHOW GLOBAL VARIABLES;', 0, 1); echo __('Session value') . ' / ' . __('Global value'); ?> + @@ -79,6 +85,10 @@ foreach ($serverVars as $name => $value) { $is_numeric = false; } ?> + @@ -94,6 +104,7 @@ foreach ($serverVars as $name => $value) { echo htmlspecialchars($serverVarsGlobal[$name]); } ?> +