use PMA_sendHeaderLocation
This commit is contained in:
@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$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>
|
||||
* libraries/sqlparser.lib.php: Modified pretty printer to display nicer
|
||||
queries generated by our db search.
|
||||
|
@@ -28,7 +28,7 @@ if (!isset($is_db) || !$is_db) {
|
||||
$is_db = PMA_DBI_select_db($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;
|
||||
}
|
||||
} // end if (ensures db exists)
|
||||
|
6
sql.php
6
sql.php
@@ -74,7 +74,7 @@ if (!defined('PMA_CHK_DROP')
|
||||
if (isset($store_bkm)) {
|
||||
require_once('./libraries/bookmark.lib.php');
|
||||
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
|
||||
|
||||
|
||||
@@ -167,7 +167,7 @@ if (isset($btnDrop) && $btnDrop == $strNo) {
|
||||
$active_page = $goto;
|
||||
require('./' . preg_replace('@\.\.*@', '.', $goto));
|
||||
} else {
|
||||
header('Location: ' . $cfg['PmaAbsoluteUri'] . str_replace('&', '&', $goto));
|
||||
PMA_sendHeaderLocation($cfg['PmaAbsoluteUri'] . str_replace('&', '&', $goto));
|
||||
}
|
||||
exit();
|
||||
} // end if
|
||||
@@ -604,7 +604,7 @@ else {
|
||||
require('./' . $goto);
|
||||
} // end if file_exist
|
||||
else {
|
||||
header('Location: ' . $cfg['PmaAbsoluteUri'] . str_replace('&', '&', $goto) . '&message=' . urlencode($message));
|
||||
PMA_sendHeaderLocation($cfg['PmaAbsoluteUri'] . str_replace('&', '&', $goto) . '&message=' . urlencode($message));
|
||||
} // end else
|
||||
exit();
|
||||
} // end no rows returned
|
||||
|
Reference in New Issue
Block a user