databases * @uses $GLOBALS['server'] * @uses $GLOBALS['db'] * @uses $GLOBALS['table'] * @uses $GLOBALS['available_languages'] * @uses $GLOBALS['lang'] * @uses $GLOBALS['text_dir'] * @uses $GLOBALS['charset'] * @uses $GLOBALS['pmaThemeImage'] * @uses $GLOBALS['strNoDatabases'] * @uses $GLOBALS['strDatabase'] * @uses $GLOBALS['strGo'] * @uses $GLOBALS['strSelectADb'] * @uses $GLOBALS['strNoTablesFound'] * @uses $GLOBALS['cfg']['LeftFrameLight'] * @uses $GLOBALS['cfg']['ShowTooltip'] * @uses $GLOBALS['cfg']['ShowTooltipAliasDB'] * @uses $GLOBALS['cfg']['DefaultTabDatabase'] * @uses $GLOBALS['cfgRelation']['commwork']) { * @uses PMA_List_Database::getSingleItem() * @uses PMA_List_Database::getHtmlSelectGrouped() * @uses PMA_List_Database::getGroupedDetails() * @uses PMA_generate_common_url() * @uses PMA_generate_common_hidden_inputs() * @uses PMA_getDbComment(); * @uses PMA_getTableCount() * @uses PMA_getTableList() * @uses PMA_getRelationsParam() * @uses PMA_outBufferPre() * @uses session_write_close() * @uses strlen() * @uses session_write_close() * @uses is_array() * @uses implode() * @uses htmlspecialchars() */ /** * Gets a core script and starts output buffering work */ require_once './libraries/common.inc.php'; /** * finish and cleanup navigation.php script execution * * @uses $GLOBALS['controllink'] to close it * @uses $GLOBALS['userlink'] to close it * @access private only to be used in navigation.php */ function PMA_exitNavigationFrame() { echo ''; exit; } // keep the offset of the db list in session before closing it if (! isset($_SESSION['userconf']['navi_limit_offset'])) { $_SESSION['userconf']['navi_limit_offset'] = 0; } if (! isset($_SESSION['userconf']['table_limit_offset']) || $_SESSION['userconf']['table_limit_offset_db'] != $db) { $_SESSION['userconf']['table_limit_offset'] = 0; $_SESSION['userconf']['table_limit_offset_db'] = $db; } if (isset($_REQUEST['pos'])) { if (isset($_REQUEST['tpos'])) { $_SESSION['userconf']['table_limit_offset'] = (int) $_REQUEST['pos']; } else { $_SESSION['userconf']['navi_limit_offset'] = (int) $_REQUEST['pos']; } } $pos = $_SESSION['userconf']['navi_limit_offset']; $tpos = $_SESSION['userconf']['table_limit_offset']; // free the session file, for the other frames to be loaded // but only if debugging is not enabled if (empty($_SESSION['debug'])) { session_write_close(); } /** * the output compression library */ require_once './libraries/ob.lib.php'; PMA_outBufferPre(); /* * selects the database if there is only one on current server */ if ($GLOBALS['server'] && ! strlen($GLOBALS['db'])) { $GLOBALS['db'] = $GLOBALS['pma']->databases->getSingleItem(); } $db_start = $GLOBALS['db']; /** * the relation library */ require_once './libraries/relation.lib.php'; $cfgRelation = PMA_getRelationsParam(); /** * garvin: For re-usability, moved http-headers to a seperate file. * It can now be included by libraries/header.inc.php, querywindow.php. */ require_once './libraries/header_http.inc.php'; /* * Displays the frame */ // xml declaration moves IE into quirks mode, making much trouble with CSS /* echo ''; */ ?> phpMyAdmin databases)) { // no database available, so we break here echo '

' . $GLOBALS['strNoDatabases'] . '

'; PMA_exitNavigationFrame(); } elseif ($GLOBALS['cfg']['LeftFrameLight'] && count($GLOBALS['pma']->databases) > 1) { $list = $cfg['DisplayDatabasesList']; if ($list === 'auto') { if (empty($GLOBALS['db'])) { $list = true; } else { $list = false; } } if (!$list) { // more than one database available and LeftFrameLight is true // display db selectbox // // Light mode -> beginning of the select combo for databases // Note: When javascript is active, the frameset will be changed from // within navigation.php. With no JS (