use PMA_sendHeaderLocation

This commit is contained in:
Marc Delisle
2004-05-11 14:25:22 +00:00
parent 4276852c82
commit 6101163a66

View File

@@ -2,7 +2,6 @@
/* $Id$ */
// vim: expandtab sw=4 ts=4 sts=4:
/**
* Ensure the database and the table exist (else move to the "parent" script)
* and display headers
@@ -14,7 +13,7 @@ if (!isset($is_db) || !$is_db) {
}
if (empty($db) || !$is_db) {
if (!isset($is_transformation_wrapper)) {
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;
}
@@ -27,7 +26,7 @@ if (!isset($is_table) || !$is_table) {
if (empty($table)
|| !($is_table && @PMA_DBI_num_rows($is_table))) {
if (!isset($is_transformation_wrapper)) {
header('Location: ' . $cfg['PmaAbsoluteUri'] . 'db_details.php?' . PMA_generate_common_url($db, '', '&') . (isset($message) ? '&message=' . urlencode($message) : '') . '&reload=1');
PMA_sendHeaderLocation($cfg['PmaAbsoluteUri'] . 'db_details.php?' . PMA_generate_common_url($db, '', '&') . (isset($message) ? '&message=' . urlencode($message) : '') . '&reload=1');
}
exit;
} else if (isset($is_table)) {