mirror of
https://github.com/vrana/adminer.git
synced 2025-08-17 20:01:25 +02:00
Separate JavaScript to not wait with Firebug
This commit is contained in:
@@ -44,17 +44,13 @@ function connect_error() {
|
||||
}
|
||||
}
|
||||
page_footer("db");
|
||||
echo "<script type='text/javascript'>\n";
|
||||
foreach (count_tables($databases) as $db => $val) {
|
||||
echo "setHtml('tables-" . addcslashes($db, "\\'/") . "', '$val');\n";
|
||||
}
|
||||
echo "</script>\n";
|
||||
echo "<script type='text/javascript' src='" . h(ME) . "script=connect'></script>\n";
|
||||
}
|
||||
|
||||
if (isset($_GET["status"])) {
|
||||
$_GET["variables"] = $_GET["status"];
|
||||
}
|
||||
if (!(DB != "" ? $connection->select_db(DB) : isset($_GET["sql"]) || isset($_GET["dump"]) || isset($_GET["database"]) || isset($_GET["processlist"]) || isset($_GET["privileges"]) || isset($_GET["user"]) || isset($_GET["variables"]))) {
|
||||
if (!(DB != "" ? $connection->select_db(DB) : isset($_GET["sql"]) || isset($_GET["dump"]) || isset($_GET["database"]) || isset($_GET["processlist"]) || isset($_GET["privileges"]) || isset($_GET["user"]) || isset($_GET["variables"]) || $_GET["script"] == "connect")) {
|
||||
if (DB != "") {
|
||||
set_session("dbs", null);
|
||||
}
|
||||
|
@@ -86,8 +86,4 @@ function page_footer($missing = "") {
|
||||
<?php $adminer->navigation($missing); ?>
|
||||
</div>
|
||||
<?php
|
||||
// don't wait for code after footer
|
||||
session_write_close();
|
||||
ob_flush();
|
||||
flush();
|
||||
}
|
||||
|
Reference in New Issue
Block a user