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
This commit is contained in:
Samiran Raj Boro
2011-03-16 11:51:09 +01:00
committed by Michal Čihař
parent 1129eb5ae3
commit d2bee66fc4
3 changed files with 360 additions and 0 deletions

View File

@@ -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');
?>
</th>
<th><?php echo __('Documentation'); ?></th>
</tr>
</thead>
<tbody>
@@ -79,6 +85,10 @@ foreach ($serverVars as $name => $value) {
$is_numeric = false;
}
?></td>
<td class="value"><?php
if (isset($VARIABLE_DOC_LINKS[$name])) // To display variable documentation link
echo PMA_showMySQLDocu($VARIABLE_DOC_LINKS[$name][1], $VARIABLE_DOC_LINKS[$name][1], 1, $VARIABLE_DOC_LINKS[$name][2]."_".$VARIABLE_DOC_LINKS[$name][0]);
?></td>
<?php
if ($serverVarsGlobal[$name] !== $value) {
?>
@@ -94,6 +104,7 @@ foreach ($serverVars as $name => $value) {
echo htmlspecialchars($serverVarsGlobal[$name]);
}
?></td>
<td class="value"></td>
<?php } ?>
</tr>
<?php