use PMA_sendHeaderLocation

This commit is contained in:
Marc Delisle
2004-05-11 12:57:49 +00:00
parent 83615ea838
commit 4276852c82
3 changed files with 8 additions and 4 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2004-05-11 Marc Delisle <lem9@users.sourceforge.net>
* tbl_replace.php, tbl_indexes.php, sql.php, db_details_common.php:
use PMA_sendHeaderLocation()
2004-05-11 Michal Čihař <michal@cihar.com> 2004-05-11 Michal Čihař <michal@cihar.com>
* libraries/sqlparser.lib.php: Modified pretty printer to display nicer * libraries/sqlparser.lib.php: Modified pretty printer to display nicer
queries generated by our db search. queries generated by our db search.

View File

@@ -28,7 +28,7 @@ if (!isset($is_db) || !$is_db) {
$is_db = PMA_DBI_select_db($db); $is_db = PMA_DBI_select_db($db);
} }
if (empty($db) || !$is_db) { if (empty($db) || !$is_db) {
header('Location: ' . $cfg['PmaAbsoluteUri'] . 'main.php?' . PMA_generate_common_url('', '', '&') . (isset($message) ? '&message=' . urlencode($message) : '') . '&reload=1'); PMA_sendHeaderLocation($cfg['PmaAbsoluteUri'] . 'main.php?' . PMA_generate_common_url('', '', '&') . (isset($message) ? '&message=' . urlencode($message) : '') . '&reload=1');
exit; exit;
} }
} // end if (ensures db exists) } // end if (ensures db exists)

View File

@@ -74,7 +74,7 @@ if (!defined('PMA_CHK_DROP')
if (isset($store_bkm)) { if (isset($store_bkm)) {
require_once('./libraries/bookmark.lib.php'); require_once('./libraries/bookmark.lib.php');
PMA_addBookmarks($fields, $cfg['Bookmark'], (isset($bkm_all_users) && $bkm_all_users == 'true' ? true : false)); PMA_addBookmarks($fields, $cfg['Bookmark'], (isset($bkm_all_users) && $bkm_all_users == 'true' ? true : false));
header('Location: ' . $cfg['PmaAbsoluteUri'] . $goto); PMA_sendHeaderLocation($cfg['PmaAbsoluteUri'] . $goto);
} // end if } // end if
@@ -167,7 +167,7 @@ if (isset($btnDrop) && $btnDrop == $strNo) {
$active_page = $goto; $active_page = $goto;
require('./' . preg_replace('@\.\.*@', '.', $goto)); require('./' . preg_replace('@\.\.*@', '.', $goto));
} else { } else {
header('Location: ' . $cfg['PmaAbsoluteUri'] . str_replace('&amp;', '&', $goto)); PMA_sendHeaderLocation($cfg['PmaAbsoluteUri'] . str_replace('&amp;', '&', $goto));
} }
exit(); exit();
} // end if } // end if
@@ -604,7 +604,7 @@ else {
require('./' . $goto); require('./' . $goto);
} // end if file_exist } // end if file_exist
else { else {
header('Location: ' . $cfg['PmaAbsoluteUri'] . str_replace('&amp;', '&', $goto) . '&message=' . urlencode($message)); PMA_sendHeaderLocation($cfg['PmaAbsoluteUri'] . str_replace('&amp;', '&', $goto) . '&message=' . urlencode($message));
} // end else } // end else
exit(); exit();
} // end no rows returned } // end no rows returned