3 // vim: expandtab sw=4 ts=4 sts=4:
5 require_once './libraries/common.lib.php';
10 require_once './libraries/server_common.inc.php';
16 require './libraries/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" alt="" />' : '' )
24 . ' ' . $strBinaryLog . "\n"
32 * Display log selector.
34 if (count($binary_logs) > 1) {
35 echo '<form action="server_binlog.php" method="get">';
36 echo PMA_generate_common_hidden_inputs();
37 echo '<fieldset><legend>';
38 echo $strSelectBinaryLog;
39 echo '</legend><select name="log">';
40 foreach ($binary_logs as $name) {
41 echo '<option value="' . $name . '"' . ($name == $log ?
' selected="selected"' : '') . '>' . $name . '</option>';
45 echo '<fieldset class="tblFooters">';
46 echo '<input type="submit" value="' . $strGo . '" />';
52 $sql_query = 'SHOW BINLOG EVENTS';
54 $sql_query .= ' IN \'' . $log . '\'';
60 $result = PMA_DBI_query($sql_query);
62 PMA_showMessage($GLOBALS['strSuccess']);
69 <table border
="0" cellpadding
="2" cellspacing
="1">
71 <td colspan
="6" align
="center">
72 <a href
="./server_binlog.php?<?php echo $url_query . (!empty($log) ? '&log=' . htmlspecialchars($log) : '' ) . (empty($full) ? '&full=1' : ''); ?>"
73 title
="<?php echo empty($full) ? $strShowFullQueries : $strTruncateQueries; ?>">
74 <img src
="<?php echo $pmaThemeImage . 's_' . (empty($full) ? 'full' : 'partial'); ?>text.png"
75 width
="50" height
="20" border
="0"
76 alt
="<?php echo empty($full) ? $strShowFullQueries : $strTruncateQueries; ?>" /></a
></td
>
79 <th
><?php
echo $strBinLogName; ?
></th
>
80 <th
><?php
echo $strBinLogPosition; ?
></th
>
81 <th
><?php
echo $strBinLogEventType; ?
></th
>
82 <th
><?php
echo $strBinLogServerId; ?
></th
>
83 <th
><?php
echo $strBinLogOriginalPosition; ?
></th
>
84 <th
><?php
echo $strBinLogInfo; ?
></th
>
88 while($value = PMA_DBI_fetch_assoc($result)) {
89 if (empty($full) && PMA_strlen($value['Info']) > $GLOBALS['cfg']['LimitChars']) {
90 $value['Info'] = PMA_substr($value['Info'], 0, $GLOBALS['cfg']['LimitChars']) . '...';
93 <tr
class="<?php echo $odd_row ? 'odd' : 'even'; ?>">
94 <td
> 
;<?php
echo $value['Log_name']; ?
> 
;</td
>
95 <td align
="right"> 
;<?php
echo $value['Pos']; ?
> 
;</td
>
96 <td
> 
;<?php
echo $value['Event_type']; ?
> 
;</td
>
97 <td align
="right"> 
;<?php
echo $value['Server_id']; ?
> 
;</td
>
98 <td align
="right"> 
;<?php
echo isset($value['Orig_log_pos']) ?
$value['Orig_log_pos'] : $value['End_log_pos']; ?
> 
;</td
>
99 <td
> 
;<?php
echo htmlspecialchars($value['Info']); ?
> 
;</td
>
102 $odd_row = !$odd_row;
112 require_once './libraries/footer.inc.php';