diff options
| author | Bart van Bragt <bartvb@users.sourceforge.net> | 2001-08-03 00:34:53 +0000 |
|---|---|---|
| committer | Bart van Bragt <bartvb@users.sourceforge.net> | 2001-08-03 00:34:53 +0000 |
| commit | 8b0b59594d4b086da94561fdc0537712d7121d7f (patch) | |
| tree | 5d7f1bcfce31bf30c42be4a14e659563ae7d821a /phpBB/admin/admin_db_utilities.php | |
| parent | fbcaf21bc0840ed9af214dfecc103098f70ff089 (diff) | |
| download | forums-8b0b59594d4b086da94561fdc0537712d7121d7f.tar forums-8b0b59594d4b086da94561fdc0537712d7121d7f.tar.gz forums-8b0b59594d4b086da94561fdc0537712d7121d7f.tar.bz2 forums-8b0b59594d4b086da94561fdc0537712d7121d7f.tar.xz forums-8b0b59594d4b086da94561fdc0537712d7121d7f.zip | |
Not the screwup is REALLY fixed! Trust me ;)
git-svn-id: file:///svn/phpbb/trunk@803 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/admin/admin_db_utilities.php')
| -rw-r--r-- | phpBB/admin/admin_db_utilities.php | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/phpBB/admin/admin_db_utilities.php b/phpBB/admin/admin_db_utilities.php index 3146b28f01..7f84d78c9f 100644 --- a/phpBB/admin/admin_db_utilities.php +++ b/phpBB/admin/admin_db_utilities.php @@ -718,11 +718,6 @@ function split_sql_file($sql, $delimiter) // End Functions // ------------- -// -// Include required files, get $phpEx and check permissions -// -$no_page_header = TRUE; -require('pagestart.inc'); // // Begin program proper @@ -731,10 +726,18 @@ require('pagestart.inc'); if( isset($HTTP_GET_VARS['perform']) || isset($HTTP_POST_VARS['perform']) ) { $perform = (isset($HTTP_POST_VARS['perform'])) ? $HTTP_POST_VARS['perform'] : $HTTP_GET_VARS['perform']; - - if( $perform != 'backup' && !isset($HTTP_POST_VARS['startdownload']) && !isset($HTTP_GET_VARS['startdownload']) ) + + if( $perform == 'backup' && !isset($HTTP_POST_VARS['startdownload']) && !isset($HTTP_GET_VARS['startdownload']) ) { + // We want to warn the user before the download starts.. This part of the script + // needs a META header so we can't include the header yet. + $no_page_header = TRUE; } + // + // Include required files, get $phpEx and check permissions + // + require('pagestart.inc'); + switch($perform) { |
