3 // vim: expandtab sw=4 ts=4 sts=4:
9 require_once('./server_common.inc.php');
15 require('./server_links.inc.php');
19 * Displays the sub-page heading
22 . ($cfg['MainPageIconic'] ?
'<img src="' . $pmaThemeImage . 's_process.png" width="16" height="16" border="0" hspace="2" align="middle" />' : '' )
23 . ' ' . $strBinaryLog . "\n"
26 if (!isset($log)) $log = '';
29 * Display log selector.
31 if (count($binary_logs) > 1) {
32 echo '<p><form action="server_binlog.php" method="get">';
33 echo PMA_generate_common_hidden_inputs();
34 echo $strSelectBinaryLog . ': ';
35 echo '<select name="log">';
36 foreach($binary_logs as $name) {
37 echo '<option value="' . $name . '"' . ($name == $log ?
' selected="selected"' : '') . '>' . $name . '</option>';
40 echo '<input type="submit" value="' . $strGo . '" />';
41 echo '</form><br /></p>';
45 $sql_query = 'SHOW BINLOG EVENTS';
46 if (!empty($log)) $sql_query .= ' IN \'' . $log . '\'';
49 * Sends the query and buffers the result
51 $serverProcesses = array();
52 $res = PMA_DBI_query($sql_query);
53 while ($row = PMA_DBI_fetch_assoc($res)) {
54 $serverProcesses[] = $row;
56 @PMA_DBI_free_result
($res);
60 PMA_showMessage($GLOBALS['strSuccess']);
67 <table border
="0" cellpadding
="2" cellspacing
="1">
69 <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
>
72 <th
> 
;<?php
echo $strBinLogName; ?
> 
;</th
>
73 <th
> 
;<?php
echo $strBinLogPosition; ?
> 
;</th
>
74 <th
> 
;<?php
echo $strBinLogEventType; ?
> 
;</th
>
75 <th
> 
;<?php
echo $strBinLogServerId; ?
> 
;</th
>
76 <th
> 
;<?php
echo $strBinLogOriginalPosition; ?
> 
;</th
>
77 <th
> 
;<?php
echo $strBinLogInfo; ?
> 
;</th
>
80 $useBgcolorOne = TRUE;
81 foreach ($serverProcesses as $value) {
82 if (empty($full) && PMA_strlen($value['Info']) > $GLOBALS['cfg']['LimitChars']) {
83 $value['Info'] = PMA_substr($value['Info'], 0, $GLOBALS['cfg']['LimitChars']) . '...';
87 <td bgcolor
="<?php echo $useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; ?>"> 
;<?php
echo $value['Log_name']; ?
> 
;</td
>
88 <td bgcolor
="<?php echo $useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; ?>" align
="right"> 
;<?php
echo $value['Pos']; ?
> 
;</td
>
89 <td bgcolor
="<?php echo $useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; ?>"> 
;<?php
echo $value['Event_type']; ?
> 
;</td
>
90 <td bgcolor
="<?php echo $useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; ?>" align
="right"> 
;<?php
echo $value['Server_id']; ?
> 
;</td
>
91 <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
>
92 <td bgcolor
="<?php echo $useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; ?>"> 
;<?php
echo htmlspecialchars($value['Info']); ?
> 
;</td
>
95 $useBgcolorOne = !$useBgcolorOne;
107 require_once('./footer.inc.php');