2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * display the binary logs and the content of the selected
8 use PMA\libraries\DatabaseInterface
;
13 require_once 'libraries/common.inc.php';
16 * Does the common work
18 require_once 'libraries/server_common.inc.php';
20 require_once 'libraries/server_bin_log.lib.php';
23 * array binary log files
25 $binary_logs = $GLOBALS['dbi']->fetchResult(
30 DatabaseInterface
::QUERY_STORE
33 if (! isset($_REQUEST['log'])
34 ||
! array_key_exists($_REQUEST['log'], $binary_logs)
36 $_REQUEST['log'] = '';
38 $url_params['log'] = $_REQUEST['log'];
41 if (!empty($_REQUEST['dontlimitchars'])) {
42 $url_params['dontlimitchars'] = 1;
45 $response = PMA\libraries\Response
::getInstance();
47 $response->addHTML(PMA_getHtmlForSubPageHeader('binlog'));
48 $response->addHTML(PMA_getLogSelector($binary_logs, $url_params));
49 $response->addHTML(PMA_getLogInfo($url_params));