Merge remote-tracking branch 'origin/master'
[phpmyadmin.git] / server_binlog.php
blob4d07e7ace46d269af2862b5c81d8554be18c8a14
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($url_params));
52 exit;