store browse state in session per query

This commit is contained in:
Sebastian Mendel
2007-05-15 11:16:10 +00:00
parent 4b368f8b42
commit fa30ac8c33
9 changed files with 238 additions and 318 deletions

View File

@@ -11,13 +11,6 @@
require_once './libraries/common.inc.php';
require_once './libraries/mysql_charsets.lib.php';
/**
* Avoids undefined variables
*/
if (!isset($pos)) {
$pos = 0;
}
/**
* No rows were selected => show again the query and tell that user.
*/
@@ -113,10 +106,9 @@ if (!empty($submit_mult)) {
default:
$action = 'tbl_row_action.php';
$err_url = 'tbl_row_action.php?' . PMA_generate_common_url($db, $table);
if (!isset($mult_btn)) {
if (! isset($mult_btn)) {
$original_sql_query = $sql_query;
$original_url_query = $url_query;
$original_pos = $pos;
}
require './libraries/mult_submits.inc.php';
$url_query = PMA_generate_common_url($db, $table)
@@ -140,10 +132,6 @@ if (!empty($submit_mult)) {
$url_query = $original_url_query;
}
if (isset($original_pos)) {
$pos = $original_pos;
}
// this is because sql.php could call tbl_structure
// which would think it needs to call mult_submits.inc.php:
unset($submit_mult);