Added a fix to enforce reloading of the left frame if a database/table has been created/deleted

This commit is contained in:
Loïc Chapeaux
2001-08-17 18:02:15 +00:00
parent 397470dda4
commit f0086017fd

View File

@@ -94,6 +94,9 @@ if ($sql_query != '') {
if (get_magic_quotes_gpc() == 1) { if (get_magic_quotes_gpc() == 1) {
$sql_query = addslashes($sql_query); $sql_query = addslashes($sql_query);
} }
if (eregi('^(DROP|CREATE) +(TABLE|DATABASE) +(.+)', $sql_query)) {
$reload = 'true';
}
include('./sql.php3'); include('./sql.php3');
exit(); exit();
} }
@@ -109,7 +112,7 @@ if ($sql_query != '') {
break; break;
} }
} }
if (!isset($reload) && eregi('^(DROP|CREATE) +(TABLE|DATABASE) (.+)', $a_sql_query)) { if (!isset($reload) && eregi('^(DROP|CREATE) +(TABLE|DATABASE) +(.+)', $a_sql_query)) {
$reload = 'true'; $reload = 'true';
} }
} // end for } // end for