diff --git a/htdocs/sql/navigation.php b/htdocs/sql/navigation.php deleted file mode 100755 --- a/htdocs/sql/navigation.php +++ /dev/null @@ -1,666 +0,0 @@ -'; - - /** - * Close MySQL connections - */ - if (isset($GLOBALS['controllink']) && $GLOBALS['controllink']) { - @PMA_DBI_close($GLOBALS['controllink']); - } - if (isset($GLOBALS['userlink']) && $GLOBALS['userlink']) { - @PMA_DBI_close($GLOBALS['userlink']); - } - - 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'] = 0; -} -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 -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_List_Database']->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'; - -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'] = 0; -} -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']; - -/* - * Displays the frame - */ -// xml declaration moves IE into quirks mode, making much trouble with CSS -/* echo ''; */ -?> - - - - - - - phpMyAdmin - - - - - - - - - - - -count()) { - // no database available, so we break here - echo '

' . $GLOBALS['strNoDatabases'] . '

'; - PMA_exitNavigationFrame(); -} elseif ($GLOBALS['cfg']['LeftFrameLight'] && $GLOBALS['PMA_List_Database']->count() > 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 (