Rename db_* files to drop useless _details part.

This commit is contained in:
Michal Čihař
2006-10-25 12:25:01 +00:00
parent ad06b4a991
commit cac4247057
34 changed files with 93 additions and 91 deletions

View File

@@ -86,7 +86,7 @@ if (isset($after_insert) && $after_insert == 'new_insert') {
// Security checkings
$is_gotofile = preg_replace('@^([^?]+).*$@', '\\1', $goto);
if (!@file_exists('./' . $is_gotofile)) {
$goto = (! isset($table) || ! strlen($table)) ? 'db_details.php' : 'tbl_sql.php';
$goto = (! isset($table) || ! strlen($table)) ? 'db_sql.php' : 'tbl_sql.php';
$is_gotofile = TRUE;
} else {
$is_gotofile = ($is_gotofile == $goto);
@@ -283,7 +283,7 @@ if (!empty($warning_message)) {
}
if ($is_gotofile) {
if ($goto == 'db_details.php' && isset($table)) {
if ($goto == 'db_sql.php' && isset($table)) {
unset($table);
}
$js_to_run = 'functions.js';