0) {
PMA_availableDatabases(); // this function is defined in "common.lib.php"
} else {
$num_dbs = 0;
}
// garvin: For re-usability, moved http-headers and stylesheets
// to a seperate file. It can now be included by header.inc.php,
// queryframe.php, querywindow.php.
require_once('./libraries/header_http.inc.php');
require_once('./libraries/header_meta_style.inc.php');
?>
' . "\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_once './libraries/bookmark.lib.php';
// in case of javascript disabled in queryframe ...
if ( $GLOBALS['cfg']['QueryFrame'] && ! $GLOBALS['cfg']['QueryFrameJS'] ) {
// ... we redirect to appropriate query sql page
// works only full if $db and $table is also stored/grabbed from $_COOKIE
if ( ! empty( $table ) ) {
require 'tbl_properties.php';
}
elseif ( ! empty( $db ) ) {
require 'db_details.php';
}
else {
require 'server_sql.php';
}
exit;
}
/**
* Defines the query to be displayed in the query textarea
*/
if ( ! empty( $show_query ) ) {
$query_to_display = $sql_query;
} else {
$query_to_display = '';
}
unset( $sql_query );
PMA_sqlQueryForm( $query_to_display, $querydisplay_tab );
// Hidden forms and query frame interaction stuff
if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) {
if (isset($auto_commit) && $auto_commit == 'true') {
?>
0) {
?>