1) { $html .= '
'; } return $html; } /** * Returns the html for binary log information. * * @param Array $binary_log_file_names Binary logs file names * @param Array $url_params links parameters * * @return string */ function PMA_getLogInfo($binary_log_file_names, $url_params) { /** * Need to find the real end of rows? */ if (! isset($_REQUEST['pos'])) { $pos = 0; } else { /* We need this to be a integer */ $pos = (int) $_REQUEST['pos']; } $sql_query = 'SHOW BINLOG EVENTS'; if (! empty($_REQUEST['log'])) { $sql_query .= ' IN \'' . $_REQUEST['log'] . '\''; } $sql_query .= ' LIMIT ' . $pos . ', ' . (int) $GLOBALS['cfg']['MaxRows']; /** * Sends the query */ $result = $GLOBALS['dbi']->query($sql_query); /** * prepare some vars for displaying the result table */ // Gets the list of fields properties if (isset($result) && $result) { $num_rows = $GLOBALS['dbi']->numRows($result); } else { $num_rows = 0; } if (empty($_REQUEST['dontlimitchars'])) { $dontlimitchars = false; } else { $dontlimitchars = true; $url_params['dontlimitchars'] = 1; } //html output $html = PMA_Util::getMessage(PMA_Message::success(), $sql_query); $html .= ''; $html .= PMA_getNavigationRow($url_params, $pos, $num_rows, $dontlimitchars); $html .= ' | ' . '|||||
' . __('Log name') . ' | ' . '' . __('Position') . ' | ' . '' . __('Event type') . ' | ' . '' . __('Server ID') . ' | ' . '' . __('Original position') . ' | ' . '' . __('Information') . ' | ' . '
---|