bug #1811527 [display] Problem with links to the MySQL manual
This commit is contained in:
@@ -38,6 +38,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
|
||||
default value to false to help cut&paste from a terminal window; also
|
||||
set focus to the textarea
|
||||
- bug #1814463 [display] Wrong database size
|
||||
- bug #1811527 [display] Problem with links to the MySQL manual
|
||||
|
||||
2.11.1.2 (2007-10-17)
|
||||
- fixed XSS in server_status.php, thanks to Omer Singer, The DigiTrust Group
|
||||
|
@@ -234,7 +234,7 @@ $allocations = array(
|
||||
$sections = array(
|
||||
// section => section name (description)
|
||||
'com' => array('title' => ''),
|
||||
'query' => array('title' => ''),
|
||||
'query' => array('title' => $strSQLQuery),
|
||||
'innodb' => array('title' => 'InnoDB'),
|
||||
'ndb' => array('title' => 'NDB'),
|
||||
'ssl' => array('title' => 'SSL'),
|
||||
@@ -271,39 +271,29 @@ $links['repl'][$strShowSlaveHosts]
|
||||
$links['repl'][$strShowSlaveStatus]
|
||||
= 'sql.php?sql_query=' . urlencode('SHOW SLAVE STATUS') .
|
||||
'&goto=server_status.php&' . PMA_generate_common_url();
|
||||
$links['repl']['MySQL - ' . $strDocu]
|
||||
= $cfg['MySQLManualBase'] . '/replication.html';
|
||||
$links['repl']['doc'] = 'replication';
|
||||
|
||||
$links['qcache'][$strFlushQueryCache]
|
||||
= $PMA_PHP_SELF . '?flush=' . urlencode('QUERY CACHE') . '&' .
|
||||
PMA_generate_common_url();
|
||||
$links['qcache']['MySQL - ' . $strDocu]
|
||||
= $cfg['MySQLManualBase'] . '/query-cache.html';
|
||||
$links['qcache']['doc'] = 'query_cache';
|
||||
|
||||
$links['threads'][$strMySQLShowProcess]
|
||||
= 'server_processlist.php?' . PMA_generate_common_url();
|
||||
$links['threads']['MySQL - ' . $strDocu]
|
||||
= $cfg['MySQLManualBase'] . '/mysql-threads.html';
|
||||
$links['threads']['doc'] = 'mysql_threads';
|
||||
|
||||
$links['key']['MySQL - ' . $strDocu]
|
||||
= $cfg['MySQLManualBase'] . '/myisam-key-cache.html';
|
||||
$links['key']['doc'] = 'myisam_key_cache';
|
||||
|
||||
$links['slow_queries']['MySQL - ' . $strDocu]
|
||||
= $cfg['MySQLManualBase'] . '/slow-query-log.html';
|
||||
$links['binlog_cache']['doc'] = 'binary_log';
|
||||
|
||||
$links['binlog_cache']['MySQL - ' . $strDocu]
|
||||
= $cfg['MySQLManualBase'] . '/binary-log.html';
|
||||
|
||||
$links['Slow_queries']['MySQL - ' . $strDocu]
|
||||
= $cfg['MySQLManualBase'] . '/slow-query-log.html';
|
||||
$links['Slow_queries']['doc'] = 'slow_query_log';
|
||||
|
||||
$links['innodb'][$strServerTabVariables]
|
||||
= 'server_engines.php?engine=InnoDB&' . PMA_generate_common_url();
|
||||
$links['innodb'][$strInnodbStat]
|
||||
= 'server_engines.php?engine=InnoDB&page=Status&' .
|
||||
PMA_generate_common_url();
|
||||
$links['innodb']['MySQL - ' . $strDocu]
|
||||
= $cfg['MySQLManualBase'] . '/innodb.html';
|
||||
$links['innodb']['doc'] = 'innodb';
|
||||
|
||||
|
||||
// sort status vars into arrays
|
||||
@@ -339,9 +329,7 @@ $hour_factor = 3600 / $server_status['Uptime'];
|
||||
<a href="<?php echo
|
||||
$PMA_PHP_SELF . '?flush=STATUS&' . PMA_generate_common_url(); ?>"
|
||||
><?php echo $strShowStatusReset; ?></a>
|
||||
<a href="<?php echo
|
||||
$cfg['MySQLManualBase']; ?>/server-status-variables.html"
|
||||
target="documentation">MySQL - <?php echo $strDocu; ?></a>
|
||||
<?php echo PMA_showMySQLDocu('server_status_variables','server_status_variables'); ?>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
@@ -608,8 +596,12 @@ if (! empty($section['title'])) {
|
||||
<th colspan="3" class="tblFooters">
|
||||
<?php
|
||||
foreach ($links[$section_name] as $link_name => $link_url) {
|
||||
if ('doc' == $link_name) {
|
||||
echo PMA_showMySQLDocu($link_url, $link_url);
|
||||
} else {
|
||||
echo '<a href="' . $link_url . '">' . $link_name . '</a>' . "\n";
|
||||
}
|
||||
}
|
||||
unset($link_url, $link_name);
|
||||
?>
|
||||
</th>
|
||||
@@ -655,9 +647,13 @@ if (! empty($section['title'])) {
|
||||
|
||||
if (isset($links[$name])) {
|
||||
foreach ($links[$name] as $link_name => $link_url) {
|
||||
if ('doc' == $link_name) {
|
||||
echo PMA_showMySQLDocu($link_url, $link_url);
|
||||
} else {
|
||||
echo ' <a href="' . $link_url . '">' . $link_name . '</a>' .
|
||||
"\n";
|
||||
}
|
||||
}
|
||||
unset($link_url, $link_name);
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user