' . "\n";
$odd_row = ! $odd_row;
if ($is_superuser || $cfg['AllowUserDropDatabase']) {
echo ' ' . "\n";
if ($current['SCHEMA_NAME'] != 'mysql'
&& $current['SCHEMA_NAME'] != 'information_schema') {
echo ' ' . "\n";
} else {
echo ' ' . "\n";
}
echo ' | ' . "\n";
}
echo ' ' . "\n"
. ' ' . "\n"
. ' ' . htmlspecialchars($current['SCHEMA_NAME']) . "\n"
. ' ' . "\n"
. ' | ' . "\n";
foreach ($column_order as $stat_name => $stat) {
if (array_key_exists($stat_name, $current)) {
if (is_numeric($stat['footer'])) {
$column_order[$stat_name]['footer'] += $current[$stat_name];
}
if ($stat['format'] === 'byte') {
list($value, $unit) = PMA_formatByteDown($current[$stat_name], 3, 1);
} elseif ($stat['format'] === 'number') {
$value = PMA_formatNumber($current[$stat_name], 0);
} else {
$value = htmlentities($current[$stat_name], 0);
}
echo ' ';
if (isset($stat['description_function'])) {
echo '';
}
echo $value;
if (isset($stat['description_function'])) {
echo '';
}
echo ' | ' . "\n";
if ($stat['format'] === 'byte') {
echo ' ' . $unit . ' | ' . "\n";
}
}
}
foreach ($replication_types as $type) {
if (${"server_{$type}_status"}) {
echo '' . "\n";
if (strlen(array_search($current["SCHEMA_NAME"], ${"server_{$type}_Ignore_DB"}))>0) {
echo '' . "\n";
} else {
$key = array_search($current["SCHEMA_NAME"], ${"server_{$type}_Do_DB"});
if (strlen($key) > 0 || (${"server_{$type}_Do_DB"}[0] == "" && count(${"server_{$type}_Do_DB"}) == 1)) {
// if ($key != null) did not work for index "0"
echo '' . "\n";
} else {
echo '';
}
}
echo ' | ';
}
}
if ($is_superuser) {
echo ' ' . "\n"
. ' '. "\n"
. ' '
. ($cfg['PropertiesIconic']
? ' '
: $strCheckPrivs) . "\n"
. ' | ' . "\n";
}
echo '
' . "\n";
} // end foreach ($databases as $key => $current)
unset($current, $odd_row);
echo '