query('FLUSH ' . $_POST['flush'] . ';');
}
unset($_flush_commands);
}
$serverStatusData = new Data();
$response = Response::getInstance();
$header = $response->getHeader();
$scripts = $header->getScripts();
$scripts->addFile('server_status_variables.js');
$scripts->addFile('vendor/jquery/jquery.tablesorter.js');
$scripts->addFile('server_status_sorter.js');
$response->addHTML('
');
$response->addHTML($serverStatusData->getMenuHtml());
if ($serverStatusData->dataLoaded) {
$response->addHTML(Variables::getHtmlForFilter($serverStatusData));
$response->addHTML(Variables::getHtmlForLinkSuggestions($serverStatusData));
$response->addHTML(Variables::getHtmlForVariablesList($serverStatusData));
} else {
$response->addHTML(
Message::error(
__('Not enough privilege to view status variables.')
)->getDisplay()
);
}
$response->addHTML('
');
exit;