mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 16:17:48 +02:00
Initialize variable used in textarea highlighting
This commit is contained in:
@@ -16,6 +16,7 @@ if (!$error && $_POST["clear"]) {
|
|||||||
|
|
||||||
$codemirror_path = "../externals/CodeMirror2";
|
$codemirror_path = "../externals/CodeMirror2";
|
||||||
$codemirror_mode = ($jush == "sql" ? "mysql" : "plsql");
|
$codemirror_mode = ($jush == "sql" ? "mysql" : "plsql");
|
||||||
|
$error_lines = array();
|
||||||
|
|
||||||
page_header(lang('SQL command'), $error, array(), "", "<link rel='stylesheet' href='$codemirror_path/lib/codemirror.css'>");
|
page_header(lang('SQL command'), $error, array(), "", "<link rel='stylesheet' href='$codemirror_path/lib/codemirror.css'>");
|
||||||
|
|
||||||
@@ -54,7 +55,6 @@ if (!$error && $_POST) {
|
|||||||
}
|
}
|
||||||
$commands = 0;
|
$commands = 0;
|
||||||
$errors = array();
|
$errors = array();
|
||||||
$error_lines = array();
|
|
||||||
$line = 0;
|
$line = 0;
|
||||||
$parse = '[\'"' . ($jush == "sql" ? '`#' : ($jush == "sqlite" ? '`[' : ($jush == "mssql" ? '[' : ''))) . ']|/\\*|-- |$' . ($jush == "pgsql" ? '|\\$[^$]*\\$' : '');
|
$parse = '[\'"' . ($jush == "sql" ? '`#' : ($jush == "sqlite" ? '`[' : ($jush == "mssql" ? '[' : ''))) . ']|/\\*|-- |$' . ($jush == "pgsql" ? '|\\$[^$]*\\$' : '');
|
||||||
$total_start = microtime();
|
$total_start = microtime();
|
||||||
|
@@ -3,6 +3,7 @@ Print current time next to executed SQL queries
|
|||||||
Highlight code in SQL command by CodeMirror
|
Highlight code in SQL command by CodeMirror
|
||||||
Link to descending order
|
Link to descending order
|
||||||
Link to original table in EXPLAIN of SELECT * FROM table t
|
Link to original table in EXPLAIN of SELECT * FROM table t
|
||||||
|
Oracle: schema, processlist, table overview numbers
|
||||||
Replace JSMin by better JavaScript minifier
|
Replace JSMin by better JavaScript minifier
|
||||||
Don't use AJAX links and forms
|
Don't use AJAX links and forms
|
||||||
Ukrainian translation
|
Ukrainian translation
|
||||||
|
Reference in New Issue
Block a user