diff --git a/server_binlog.php b/server_binlog.php index 20f9070a66..e2ccdab50a 100644 --- a/server_binlog.php +++ b/server_binlog.php @@ -7,7 +7,7 @@ */ /** - * + * requirements */ require_once 'libraries/common.inc.php'; @@ -16,6 +16,7 @@ require_once 'libraries/common.inc.php'; */ require_once 'libraries/server_common.inc.php'; +$response = PMA_Response::getInstance(); $url_params = array(); /** @@ -69,30 +70,30 @@ if (empty($_REQUEST['dontlimitchars'])) { /** * Displays the sub-page heading */ -echo '

' . "\n" - . PMA_Util::getImage('s_tbl.png') - . ' ' . __('Binary log') . "\n" - . '

' . "\n"; +$html = '

' . "\n" + . PMA_Util::getImage('s_tbl.png') + . ' ' . __('Binary log') . "\n" + . '

' . "\n"; /** * Display log selector. */ if (count($binary_logs) > 1) { - echo '
'; - echo PMA_generate_common_hidden_inputs($url_params); - echo '
'; - echo __('Select binary log to view'); - echo ''; $full_size = 0; foreach ($binary_logs as $each_log) { - echo ''; + $html .= ''; } - echo ' '; - echo count($binary_logs) . ' ' . __('Files') . ', '; + $html .= ' '; + $html .= count($binary_logs) . ' ' . __('Files') . ', '; if ($full_size > 0) { - echo implode( + $html .= implode( ' ', PMA_Util::formatByteDown($full_size) ); } - echo '
'; - echo '
'; - echo ''; - echo '
'; - echo '
'; + $html .= ''; + $html .= '
'; + $html .= ''; + $html .= '
'; + $html .= ''; } -echo PMA_Util::getMessage(PMA_Message::success()); +$html .= PMA_Util::getMessage(PMA_Message::success()); /** * Displays the page */ -echo '' +$html .= '
' . '' . '' . '' +$html .= '' . '' . '' . '' @@ -201,7 +202,7 @@ while ($value = PMA_DBI_fetch_assoc($result)) { ) . '...'; } - echo '' + $html .= '' . '' . '' . '' @@ -215,5 +216,7 @@ while ($value = PMA_DBI_fetch_assoc($result)) { $odd_row = !$odd_row; } -echo '' +$html .= '' . '
'; @@ -135,14 +136,14 @@ if ($pos > 0) { $this_url_params['pos'] = $pos - $GLOBALS['cfg']['MaxRows']; } - echo ''; + $html .= ' title="' . _pgettext('Previous page', 'Previous') . '">'; } else { - echo '>' . _pgettext('Previous page', 'Previous'); + $html .= '>' . _pgettext('Previous page', 'Previous'); } // end if... else... - echo ' < - '; + $html .= ' < - '; } $this_url_params = $url_params; @@ -158,7 +159,7 @@ if ($dontlimitchars) { $tempTitle = __('Show Full Queries'); $tempImgMode = 'full'; } -echo '' . ''; @@ -168,17 +169,17 @@ echo ''; + $html .= ' title="' . _pgettext('Next page', 'Next') . '">'; } else { - echo '>' . _pgettext('Next page', 'Next'); + $html .= '>' . _pgettext('Next page', 'Next'); } // end if... else... - echo ' > '; + $html .= ' > '; } -echo '
' . __('Log name') . '
 ' . $value['Log_name'] . '  ' . $value['Pos'] . '  ' . $value['Event_type'] . ' 
'; + +$response->addHTML($html);