query('FLUSH ' . $_REQUEST['flush'] . ';');
}
unset($_flush_commands);
}
$serverStatusData = new ServerStatusData();
$response = PMA\libraries\Response::getInstance();
$header = $response->getHeader();
$scripts = $header->getScripts();
$scripts->addFile('server_status_variables.js');
$scripts->addFile('jquery/jquery.tablesorter.js');
$scripts->addFile('server_status_sorter.js');
$response->addHTML('
');
$response->addHTML($serverStatusData->getMenuHtml());
if ($serverStatusData->dataLoaded) {
$response->addHTML(PMA_getHtmlForFilter($serverStatusData));
$response->addHTML(PMA_getHtmlForLinkSuggestions($serverStatusData));
$response->addHTML(PMA_getHtmlForVariablesList($serverStatusData));
} else {
$response->addHTML(
Message::error(
__('Not enough privilege to view status variables.')
)->getDisplay()
);
}
$response->addHTML('
');
exit;