Cache databases list
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@151 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
9c51cf85f2
commit
e338af8692
|
@ -2,7 +2,7 @@
|
||||||
function page_header($title) {
|
function page_header($title) {
|
||||||
global $LANG;
|
global $LANG;
|
||||||
header("Content-Type: text/html; charset=utf-8");
|
header("Content-Type: text/html; charset=utf-8");
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo $LANG; ?>">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo $LANG; ?>">
|
||||||
<head>
|
<head>
|
||||||
|
@ -27,12 +27,14 @@ function page_header($title) {
|
||||||
echo "<p class='message'>$_SESSION[message]</p>\n";
|
echo "<p class='message'>$_SESSION[message]</p>\n";
|
||||||
$_SESSION["message"] = "";
|
$_SESSION["message"] = "";
|
||||||
}
|
}
|
||||||
session_write_close();
|
if (isset($_SESSION["databases"])) {
|
||||||
|
session_write_close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function page_footer($missing = false) {
|
function page_footer($missing = false) {
|
||||||
global $SELF, $mysql;
|
global $SELF, $mysql;
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="menu">
|
<div id="menu">
|
||||||
|
@ -49,7 +51,10 @@ function page_footer($missing = false) {
|
||||||
<select name="db" onchange="this.form.submit();"><option value="">(<?php echo lang('database'); ?>)</option>
|
<select name="db" onchange="this.form.submit();"><option value="">(<?php echo lang('database'); ?>)</option>
|
||||||
<?php
|
<?php
|
||||||
flush();
|
flush();
|
||||||
echo optionlist(get_vals("SHOW DATABASES"), $_GET["db"]);
|
if (!isset($_SESSION["databases"])) {
|
||||||
|
$_SESSION["databases"] = get_vals("SHOW DATABASES");
|
||||||
|
}
|
||||||
|
echo optionlist($_SESSION["databases"], $_GET["db"]);
|
||||||
?>
|
?>
|
||||||
</select><?php if (isset($_GET["sql"])) { ?><input type="hidden" name="sql" value="" /><?php } ?></p>
|
</select><?php if (isset($_GET["sql"])) { ?><input type="hidden" name="sql" value="" /><?php } ?></p>
|
||||||
<noscript><p><input type="submit" value="<?php echo lang('Use'); ?>" /></p></noscript>
|
<noscript><p><input type="submit" value="<?php echo lang('Use'); ?>" /></p></noscript>
|
||||||
|
|
Loading…
Reference in a new issue