default tab selection stuff:

* Documentation.html: docs about $cfg['DefaultTabDatabase']
      and $cfg['DefaultTabTable']
    * config.inc.php3, index.php3, left.php3, libraries/common.lib.php3:
      default tab selection is now customizable from config.inc.php3.
This commit is contained in:
Olivier Müller
2002-06-29 08:13:01 +00:00
parent 91a6ea8620
commit 11bcc210e1
6 changed files with 60 additions and 21 deletions

View File

@@ -493,12 +493,6 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold}
$DisplayPmaAbsoluteUriWarning = 0;
if (empty($cfg['PmaAbsoluteUri'])) {
// if (empty($GLOBALS['is_header_sent'])) {
// include('./header.inc.php3');
// }
// echo '<p class="warning">'. $strPmaUriError . '</p>' . "\n";
// include('./footer.inc.php3');
// exit();
$DisplayPmaAbsoluteUriWarning = 1;
@@ -518,6 +512,20 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold}
}
/**
* Make sure $cfg['DefaultTabDatabase'] and $cfg['DefaultTabTable'] are set.
* Todo: check if it is set to a *valid* value.
*/
if (empty($cfg['DefaultTabDatabase'])) {
$cfg['DefaultTabDatabase'] = 'db_details_structure.php3';
}
if (empty($cfg['DefaultTabTable'])) {
$cfg['DefaultTabTable'] = 'tbl_properties_structure.php3';
}
/**
* Use mysql_connect() or mysql_pconnect()?
*/