Fixed bug bug #434416 and reload the left frame with the current db opened

This commit is contained in:
Loïc Chapeaux
2001-06-20 21:44:50 +00:00
parent aeec939585
commit 696a8110f4
2 changed files with 19 additions and 2 deletions

View File

@@ -5,6 +5,16 @@ phpMyAdmin - Changelog
$Id$
$Source$
2001-06-18 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* sql.php3, lines 67-68: The left frame is now reloaded when a table is
created.
* lib.inc.php3, line 668: When the left frame is reloaded after a create or
a delete statement, the current database is 'opened'
2001-06-20 Alain Brissaud <alain@brissaud.com>
* sql.php3, lines 98-107: Fixed a warning when a table is dropped
(bug #434416).
2001-06-18 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* The 'bkg.gif' was somewhat corrupted (it caused some annoying problems
with NS4+). Fixed thanks to Laurent Hass.

View File

@@ -63,6 +63,9 @@ else {
if (!isset($sql_query)) $sql_query = '';
if (!isset($sql_order)) $sql_order = '';
}
// loic1: A table have to be created -> left frme should be reloaded
if (!empty($reload) && eregi("^CREATE TABLE (.*)", $sql_query))
$reload = true;
if(isset($sessionMaxRows))
$cfgMaxRows = $sessionMaxRows;
$sql_limit = (isset($pos) && eregi("^SELECT", $sql_query) && !eregi("LIMIT[ 0-9,]+$", $sql_query)) ? " LIMIT $pos, $cfgMaxRows" : '';
@@ -92,12 +95,16 @@ else {
{
if(file_exists("./$goto"))
{
include("./header.inc.php3");
if(isset($zero_rows) && !empty($zero_rows))
$message = $zero_rows;
else
$message = $strEmptyResultSet;
include('./' . preg_replace('/\.\.*/', '.', $goto));
$goto = preg_replace('/\.\.*/', '.', $goto);
if ($goto != "main.php3")
{
include("./header.inc.php3");
}
include('./' . $goto);
}
else
{