diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 1a32f79a..2e2c41f9 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -96,7 +96,7 @@ class Adminer { */ function head() { ?> - + select_db(DB); $tables = table_status('', true); } - echo script_src("../externals/jush/modules/jush.js"); - echo script_src("../externals/jush/modules/jush-textarea.js"); - echo script_src("../externals/jush/modules/jush-txt.js"); - echo script_src("../externals/jush/modules/jush-js.js"); + echo script_src("../vendor/vrana/jush/modules/jush.js"); + echo script_src("../vendor/vrana/jush/modules/jush-textarea.js"); + echo script_src("../vendor/vrana/jush/modules/jush-txt.js"); + echo script_src("../vendor/vrana/jush/modules/jush-js.js"); if (support("sql")) { - echo script_src("../externals/jush/modules/jush-$jush.js"); + echo script_src("../vendor/vrana/jush/modules/jush-$jush.js"); ?> > ', "" . reset($drivers), $file); } - $file = preg_replace('(;../externals/jush/modules/jush-(?!textarea\.|txt\.|js\.|' . preg_quote($driver == "mysql" ? "sql" : $driver) . '\.)[^.]+.js)', '', $file); + $file = preg_replace('(;../vendor/vrana/jush/modules/jush-(?!textarea\.|txt\.|js\.|' . preg_quote($driver == "mysql" ? "sql" : $driver) . '\.)[^.]+.js)', '', $file); $file = preg_replace_callback('~doc_link\(array\((.*)\)\)~sU', function ($match) use ($driver) { list(, $links) = $match; $links = preg_replace("~'(?!(" . ($driver == "mysql" ? "sql|mariadb" : $driver) . ")')[^']*' => [^,]*,?~", '', $links); @@ -441,7 +441,7 @@ if ($_SESSION["lang"]) { } $file = str_replace('' . "\n", "", $file); $file = preg_replace('~\s+echo script_src\("\.\./externals/jush/modules/jush-(textarea|txt|js|\$jush)\.js"\);~', '', $file); -$file = str_replace('' . "\n", "", $file); +$file = str_replace('' . "\n", "", $file); $file = preg_replace_callback("~compile_file\\('([^']+)'(?:, '([^']*)')?\\)~", 'compile_file', $file); // integrate static files $replace = 'preg_replace("~\\\\\\\\?.*~", "", ME) . "?file=\1&version=' . $VERSION . '"'; $file = preg_replace('~\.\./adminer/static/(default\.css|favicon\.ico)~', '', $file);