Fix saving user preferences to configuration storage
[phpmyadmin.git] / server_binlog.php
blob8f3b79902b36d2d658d3ab1c47f0b844a9952fbb
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * display the binary logs and the content of the selected
6 * @package PhpMyAdmin
7 */
9 /**
10 * requirements
12 require_once 'libraries/common.inc.php';
14 /**
15 * Does the common work
17 require_once 'libraries/server_common.inc.php';
19 require_once 'libraries/server_bin_log.lib.php';
21 /**
22 * array binary log files
24 $binary_logs = PMA_DRIZZLE
25 ? null
26 : $GLOBALS['dbi']->fetchResult(
27 'SHOW MASTER LOGS',
28 'Log_name',
29 null,
30 null,
31 PMA_DatabaseInterface::QUERY_STORE
34 if (! isset($_REQUEST['log'])
35 || ! array_key_exists($_REQUEST['log'], $binary_logs)
36 ) {
37 $_REQUEST['log'] = '';
38 } else {
39 $url_params['log'] = $_REQUEST['log'];
42 if (!empty($_REQUEST['dontlimitchars'])) {
43 $url_params['dontlimitchars'] = 1;
46 $response = PMA_Response::getInstance();
48 $response->addHTML(PMA_getHtmlForSubPageHeader('binlog'));
49 $response->addHTML(PMA_getLogSelector($binary_logs, $url_params));
50 $response->addHTML(PMA_getLogInfo($binary_logs, $url_params));
52 exit;