Added a fix to enforce reloading of the left frame if a database/table has been created/deleted
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user