Translated using Weblate (Slovenian)
[phpmyadmin.git] / server_binlog.php
blob5f07513029c24ab8257a0148c6875192f62528ef
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 */
8 use PMA\libraries\DatabaseInterface;
10 /**
11 * requirements
13 require_once 'libraries/common.inc.php';
15 /**
16 * Does the common work
18 require_once 'libraries/server_common.inc.php';
20 require_once 'libraries/server_bin_log.lib.php';
22 /**
23 * array binary log files
25 $binary_logs = $GLOBALS['dbi']->fetchResult(
26 'SHOW MASTER LOGS',
27 'Log_name',
28 null,
29 null,
30 DatabaseInterface::QUERY_STORE
33 if (! isset($_REQUEST['log'])
34 || ! array_key_exists($_REQUEST['log'], $binary_logs)
35 ) {
36 $_REQUEST['log'] = '';
37 } else {
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));
51 exit;