From 358dfaf08cbeccae61a42cc12c5756f25f6fe674 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 1 Jan 2008 15:03:50 +0000 Subject: [PATCH] These should go to ['userconf'] --- libraries/common.inc.php | 6 +++--- navigation.php | 22 +++++++++++----------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/libraries/common.inc.php b/libraries/common.inc.php index 81a31ef85..7630610a0 100644 --- a/libraries/common.inc.php +++ b/libraries/common.inc.php @@ -901,10 +901,10 @@ if (! defined('PMA_MINIMUM_COMMON')) { /** * some resetting has to be done when switching servers */ - if (isset($_SESSION['previous_server']) && $_SESSION['previous_server'] != $GLOBALS['server']) { - unset($_SESSION ['navi_limit_offset']); + if (isset($_SESSION['userconf']['previous_server']) && $_SESSION['userconf']['previous_server'] != $GLOBALS['server']) { + unset($_SESSION['userconf']['navi_limit_offset']); } - $_SESSION['previous_server'] = $GLOBALS['server']; + $_SESSION['userconf']['previous_server'] = $GLOBALS['server']; } // end server connecting diff --git a/navigation.php b/navigation.php index d04496a71..33969cb07 100644 --- a/navigation.php +++ b/navigation.php @@ -61,13 +61,13 @@ function PMA_exitNavigationFrame() } // keep the offset of the db list in session before closing it -if (! isset($_SESSION['navi_limit_offset'])) { - $_SESSION['navi_limit_offset'] = 0; +if (! isset($_SESSION['userconf']['navi_limit_offset'])) { + $_SESSION['userconf']['navi_limit_offset'] = 0; } if (isset($_REQUEST['pos'])) { - $_SESSION['navi_limit_offset'] = (int) $_REQUEST['pos']; + $_SESSION['userconf']['navi_limit_offset'] = (int) $_REQUEST['pos']; } -$pos = $_SESSION['navi_limit_offset']; +$pos = $_SESSION['userconf']['navi_limit_offset']; // free the session file, for the other frames to be loaded session_write_close(); @@ -100,13 +100,13 @@ $cfgRelation = PMA_getRelationsParam(); */ require_once './libraries/header_http.inc.php'; -if (! isset($_SESSION['navi_limit_offset'])) { - $_SESSION['navi_limit_offset'] = 0; +if (! isset($_SESSION['userconf']['navi_limit_offset'])) { + $_SESSION['userconf']['navi_limit_offset'] = 0; } if (isset($_REQUEST['pos'])) { - $_SESSION['navi_limit_offset'] = (int) $_REQUEST['pos']; + $_SESSION['userconf']['navi_limit_offset'] = (int) $_REQUEST['pos']; } -$pos = $_SESSION['navi_limit_offset']; +$pos = $_SESSION['userconf']['navi_limit_offset']; /* * Displays the frame @@ -188,7 +188,7 @@ if (! $GLOBALS['server']) { getHtmlSelectGrouped(true, $_SESSION['navi_limit_offset'], $GLOBALS['cfg']['MaxDbList']) . "\n"; + echo $GLOBALS['PMA_List_Database']->getHtmlSelectGrouped(true, $_SESSION['userconf']['navi_limit_offset'], $GLOBALS['cfg']['MaxDbList']) . "\n"; echo '' . "\n" @@ -197,7 +197,7 @@ if (! $GLOBALS['server']) { if (! empty($db)) { echo '
' . "\n"; } - echo $GLOBALS['PMA_List_Database']->getHtmlListGrouped(true, $_SESSION['navi_limit_offset'], $GLOBALS['cfg']['MaxDbList']) . "\n"; + echo $GLOBALS['PMA_List_Database']->getHtmlListGrouped(true, $_SESSION['userconf']['navi_limit_offset'], $GLOBALS['cfg']['MaxDbList']) . "\n"; } $_url_params = array('pos' => $pos); PMA_listNavigator($GLOBALS['PMA_List_Database']->count(), $pos, $_url_params, 'navigation.php', 'frame_navigation', $GLOBALS['cfg']['MaxDbList']); @@ -294,7 +294,7 @@ if ($GLOBALS['cfg']['LeftFrameLight'] && strlen($GLOBALS['db'])) { echo '
' . "\n"; $common_url_query = PMA_generate_common_url(); - PMA_displayDbList($GLOBALS['PMA_List_Database']->getGroupedDetails($_SESSION['navi_limit_offset'],$GLOBALS['cfg']['MaxDbList']), $_SESSION['navi_limit_offset'],$GLOBALS['cfg']['MaxDbList']); + PMA_displayDbList($GLOBALS['PMA_List_Database']->getGroupedDetails($_SESSION['userconf']['navi_limit_offset'],$GLOBALS['cfg']['MaxDbList']), $_SESSION['userconf']['navi_limit_offset'],$GLOBALS['cfg']['MaxDbList']); } /**