0) { PMA_availableDatabases(); // this function is defined in "common.lib.php3" } else { $num_dbs = 0; } /** * Send http headers */ // Don't use cache (required for Opera) $now = gmdate('D, d M Y H:i:s') . ' GMT'; header('Expires: ' . $now); header('Last-Modified: ' . $now); header('Cache-Control: no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0'); // HTTP/1.1 header('Pragma: no-cache'); // HTTP/1.0 // Define the charset to be used header('Content-Type: text/html; charset=' . $charset); /** * Displays the frame */ // Gets the font sizes to use PMA_setFontSizes(); ?> phpMyAdmin />  '; } echo "\n"; echo PMA_printTab($strSQL, '#', '', 'onClick="javascript:query_tab_commit(\'sql\');return false;"', '', (isset($querydisplay_tab) && $querydisplay_tab == 'sql' ? TRUE : FALSE)); echo PMA_printTab($strImportFiles, '#', '', 'onClick="javascript:query_tab_commit(\'files\');return false;"', '', (isset($querydisplay_tab) && $querydisplay_tab == 'files' ? TRUE : FALSE)); echo PMA_printTab($strQuerySQLHistory, '#', '', 'onClick="javascript:query_tab_commit(\'history\');return false;"', '', (isset($querydisplay_tab) && $querydisplay_tab == 'history' ? TRUE : FALSE)); echo PMA_printTab($strAll, '#', '', 'onClick="javascript:query_tab_commit(\'full\');return false;"', '', (isset($querydisplay_tab) && $querydisplay_tab == 'full' ? TRUE : FALSE)); if (!$cfg['LightTabs']) { echo ''; } else { echo '
'; } ?>
'; $input_query_history[] = ''; $input_query_history[] = ''; $sql_history[] = '
  • [' . htmlspecialchars($query_history_latest_db) . '] ' . urldecode($query_history_latest) . '
  • ' . "\n"; $sql_query = urldecode($query_history_latest); $db = $query_history_latest_db; $table = $query_history_latest_table; $show_query = 1; $dup_sql[$query_history_latest] = true; } if ($cfg['QueryHistoryDB'] && $cfgRelation['historywork']) { $temp_history = PMA_getHistory($cfg['Server']['user']); if (is_array($temp_history) && count($temp_history) > 0) { @reset($temp_history); while(@list($history_nr, $history_array) = @each($temp_history)) { if (!isset($dup_sql[$history_array['sqlquery']])) { $sql_history[] = '
  • [' . htmlspecialchars($history_array['db']) . '] ' . urldecode($history_array['sqlquery']) . '
  • ' . "\n"; $dup_sql[$history_array['sqlquery']] = true; } } } } else { if (isset($query_history) && is_array($query_history)) { $current_index = count($query_history); @reset($query_history); while(list($query_no, $query_sql) = each($query_history)) { if (!isset($dup_sql[$query_sql])) { $input_query_history[] = ''; $input_query_history[] = ''; $input_query_history[] = ''; $sql_history[] = '
  • [' . htmlspecialchars($query_history_db[$query_no]) . '] ' . urldecode($query_sql) . '
  • ' . "\n"; $dup_sql[$query_sql] = true; } // end if check if this item exists } // end while print history } // end if history exists } // end if DB-based history } $url_query = PMA_generate_common_url(isset($db) ? $db : '', isset($table) ? $table : ''); if (!isset($goto)) { $goto = ''; } require './libraries/bookmark.lib.php3'; $is_inside_querywindow = TRUE; require './tbl_query_box.php3'; // Hidden forms and query frame interaction stuff if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) { if (isset($auto_commit) && $auto_commit == 'true') { ?> 0) { ?>
    • ' . implode('', $sql_history) . '
    '; ?>
  • 0) { echo implode("\n", $input_query_history); } ?>