3 // vim: expandtab sw=4 ts=4 sts=4:
5 require_once('./libraries/common.lib.php');
10 require_once('./server_common.inc.php');
16 require('./server_links.inc.php');
20 * Displays the sub-page heading
23 . ($cfg['MainPageIconic'] ?
'<img src="' . $pmaThemeImage . 's_process.png" width="16" height="16" border="0" hspace="2" align="middle" />' : '' )
24 . ' ' . $strBinaryLog . "\n"
27 if (!isset($log)) $log = '';
30 * Display log selector.
32 if (count($binary_logs) > 1) {
33 echo '<p><form action="server_binlog.php" method="get">';
34 echo PMA_generate_common_hidden_inputs();
35 echo $strSelectBinaryLog . ': ';
36 echo '<select name="log">';
37 foreach($binary_logs as $name) {
38 echo '<option value="' . $name . '"' . ($name == $log ?
' selected="selected"' : '') . '>' . $name . '</option>';
41 echo '<input type="submit" value="' . $strGo . '" />';
42 echo '</form><br /></p>';
46 $sql_query = 'SHOW BINLOG EVENTS';
47 if (!empty($log)) $sql_query .= ' IN \'' . $log . '\'';
50 * Sends the query and buffers the result
52 $serverProcesses = array();
53 $res = PMA_DBI_query($sql_query);
54 while ($row = PMA_DBI_fetch_assoc($res)) {
55 $serverProcesses[] = $row;
57 @PMA_DBI_free_result
($res);
61 PMA_showMessage($GLOBALS['strSuccess']);
68 <table border
="0" cellpadding
="2" cellspacing
="1">
70 <td colspan
="6" align
="center"><a href
="./server_binlog.php?<?php echo $url_query . (!empty($log) ? '&log=' . htmlspecialchars($log) : '' ) . (empty($full) ? '&full=1' : ''); ?>" title
="<?php echo empty($full) ? $strShowFullQueries : $strTruncateQueries; ?>"><img src
="<?php echo $pmaThemeImage . 's_' . (empty($full) ? 'full' : 'partial'); ?>text.png" width
="50" height
="20" border
="0" alt
="<?php echo empty($full) ? $strShowFullQueries : $strTruncateQueries; ?>" /></a
></td
>
73 <th
> 
;<?php
echo $strBinLogName; ?
> 
;</th
>
74 <th
> 
;<?php
echo $strBinLogPosition; ?
> 
;</th
>
75 <th
> 
;<?php
echo $strBinLogEventType; ?
> 
;</th
>
76 <th
> 
;<?php
echo $strBinLogServerId; ?
> 
;</th
>
77 <th
> 
;<?php
echo $strBinLogOriginalPosition; ?
> 
;</th
>
78 <th
> 
;<?php
echo $strBinLogInfo; ?
> 
;</th
>
81 $useBgcolorOne = TRUE;
82 foreach ($serverProcesses as $value) {
83 if (empty($full) && PMA_strlen($value['Info']) > $GLOBALS['cfg']['LimitChars']) {
84 $value['Info'] = PMA_substr($value['Info'], 0, $GLOBALS['cfg']['LimitChars']) . '...';
88 <td bgcolor
="<?php echo $useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; ?>"> 
;<?php
echo $value['Log_name']; ?
> 
;</td
>
89 <td bgcolor
="<?php echo $useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; ?>" align
="right"> 
;<?php
echo $value['Pos']; ?
> 
;</td
>
90 <td bgcolor
="<?php echo $useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; ?>"> 
;<?php
echo $value['Event_type']; ?
> 
;</td
>
91 <td bgcolor
="<?php echo $useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; ?>" align
="right"> 
;<?php
echo $value['Server_id']; ?
> 
;</td
>
92 <td bgcolor
="<?php echo $useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; ?>" align
="right"> 
;<?php
echo isset($value['Orig_log_pos']) ?
$value['Orig_log_pos'] : $value['End_log_pos']; ?
> 
;</td
>
93 <td bgcolor
="<?php echo $useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; ?>"> 
;<?php
echo htmlspecialchars($value['Info']); ?
> 
;</td
>
96 $useBgcolorOne = !$useBgcolorOne;
108 require_once('./footer.inc.php');