diff --git a/htdocs/sql/querywindow.php b/htdocs/sql/querywindow.php new file mode 100755 --- /dev/null +++ b/htdocs/sql/querywindow.php @@ -0,0 +1,316 @@ +'; + + if ('both' === $GLOBALS['cfg']['PropertiesIconic']) { + $titles['Change'] .= $GLOBALS['strChange']; + } +} else { + $titles['Change'] = $GLOBALS['strChange']; +} + +$url_query = PMA_generate_common_url($db, $table); + +if (! empty($sql_query)) { + $show_query = 1; +} + +if ($no_js) { + // ... we redirect to appropriate query sql page + // works only full if $db and $table is also stored/grabbed from $_COOKIE + if (strlen($table)) { + require './tbl_sql.php'; + } elseif (strlen($db)) { + require './db_sql.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 = ''; +} +$sql_query = ''; + +/** + * start HTML output + */ +require_once './libraries/header_http.inc.php'; +require_once './libraries/header_meta_style.inc.php'; +?> + + + + + +
+' . "\n" + .'' . "\n"; +} +?> +
+ + + + + +
+
+ + + +