diff options
author | xmujay <xmujay@gmail.com> | 2013-06-07 20:02:45 +0400 |
---|---|---|
committer | xmujay <xmujay@gmail.com> | 2013-06-07 20:02:45 +0400 |
commit | bfb6dec7e6b08e774393b93da73b47aa899cd76c (patch) | |
tree | 7c699ff0b977e6aae6f5b48a647fd358e17720cb /server_binlog.php | |
parent | fc3e0d961edc59a944f5b4df7fadfcd6da8d2c5a (diff) |
fix the issues:
1. replace tab with space in server_bin_log.lib.php
2. move $bin_log to server_binlog.php
3. add server common function file server_common.lib.php
Diffstat (limited to 'server_binlog.php')
-rw-r--r-- | server_binlog.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/server_binlog.php b/server_binlog.php index 022697f5f5..45d08494fa 100644 --- a/server_binlog.php +++ b/server_binlog.php @@ -12,12 +12,24 @@ require_once 'libraries/common.inc.php'; /** - * Does the common work, provides $binary_logs + * Does the common work */ require_once 'libraries/server_common.inc.php'; require_once 'libraries/server_bin_log.lib.php'; +/** + * array binary log files + */ +$binary_logs = PMA_DRIZZLE + ? null + : $GLOBALS['dbi']->fetchResult( + 'SHOW MASTER LOGS', + 'Log_name', + null, + null, + PMA_DatabaseInterface::QUERY_STORE + ); if (! isset($_REQUEST['log']) || ! array_key_exists($_REQUEST['log'], $binary_logs) |