diff --git a/ChangeLog b/ChangeLog index 428d0ff75..b03b37e70 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,16 @@ phpMyAdmin - Changelog $Id$ $Source$ +2001-06-18 Loïc Chapeaux + * 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 + * sql.php3, lines 98-107: Fixed a warning when a table is dropped + (bug #434416). + 2001-06-18 Loïc Chapeaux * The 'bkg.gif' was somewhat corrupted (it caused some annoying problems with NS4+). Fixed thanks to Laurent Hass. diff --git a/sql.php3 b/sql.php3 index 8e43e9430..307d484a1 100755 --- a/sql.php3 +++ b/sql.php3 @@ -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 {