" . lang('Master status') . doc_link(array("sql" => "show-master-status.html")) . "\n";
$master_replication_status = replication_status("MASTER");
if (!$master_replication_status) {
echo "
" . lang('No rows.') . "\n";
} else {
echo "
\n";
foreach ($master_replication_status[0] as $key => $val) {
echo "";
echo "" . h($key);
echo " | " . nbsp($val);
}
echo " |
\n";
}
$slave_replication_status = replication_status("SLAVE");
if ($slave_replication_status) {
echo "" . lang('Slave status') . doc_link(array("sql" => "show-slave-status.html")) . "
\n";
foreach ($slave_replication_status[0] as $slave) {
echo "\n";
foreach ($slave as $key => $val) {
echo "";
echo "" . h($key);
echo " | " . nbsp($val);
}
echo " |
\n";
}
}