Splitted the large "database details" page in parts

This commit is contained in:
Loïc Chapeaux
2002-05-01 17:14:45 +00:00
parent da47126935
commit 6b00b75f7d
9 changed files with 850 additions and 721 deletions

View File

@@ -27,11 +27,11 @@ if (empty($goto)) {
$is_gotofile = TRUE;
}
if (!isset($err_url)) {
$err_url = $goto
$err_url = (!empty($back) ? $back : $goto)
. '?lang=' . $lang
. '&server=' . $server
. (isset($db) ? '&db=' . urlencode($db) : '')
. (($goto != 'db_details.php3' && isset($table)) ? '&table=' . urlencode($table) : '');
. ((strpos(' ' . $goto, 'db_details') != 1 && isset($table)) ? '&table=' . urlencode($table) : '');
}
@@ -122,7 +122,7 @@ if (isset($btnDrop) && $btnDrop == $strNo) {
$goto = $back;
}
if ($is_gotofile) {
if ($goto == 'db_details.php3' && !empty($table)) {
if (strpos(' ' . $goto, 'db_details') == 1 && !empty($table)) {
unset($table);
}
include('./' . ereg_replace('\.\.*', '.', $goto));
@@ -340,7 +340,7 @@ else {
unset($db);
}
$is_db = $is_table = FALSE;
if ($goto == 'tbl_properties.php3') {
if (strpos(' ' . $goto, 'tbl_properties') == 1) {
if (!isset($table)) {
$goto = 'db_details.php3';
} else {
@@ -351,7 +351,7 @@ else {
}
} // end if... else...
}
if ($goto == 'db_details.php3') {
if (strpos(' ' . $goto, 'db_details.php3') == 1) {
if (isset($table)) {
unset($table);
}
@@ -366,7 +366,8 @@ else {
} // end if... else...
}
// Loads to target script
if ($goto == 'db_details.php3' || $goto == 'tbl_properties.php3') {
if (strpos(' ' . $goto, 'db_details') == 1
|| strpos(' ' . $goto, 'tbl_properties') == 1) {
$js_to_run = 'functions.js';
}
if ($goto != 'main.php3') {