From 2ee46df51c31ee697e2afa0cb7b5c154fe857844 Mon Sep 17 00:00:00 2001 From: the_systech Date: Fri, 1 Jun 2001 22:05:19 +0000 Subject: [PATCH] Update for better error reporting on backup git-svn-id: file:///svn/phpbb/trunk@408 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/admin/db_utilities.php | 37 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/phpBB/admin/db_utilities.php b/phpBB/admin/db_utilities.php index d50a472333..31f4b19c8c 100644 --- a/phpBB/admin/db_utilities.php +++ b/phpBB/admin/db_utilities.php @@ -6,7 +6,8 @@ * copyright : (C) 2001 The phpBB Group * email : support@phpbb.com * -* $id $ +* $Id$ + * ****************************************************************************/ @@ -224,7 +225,8 @@ function get_table_content($db, $table, $handler) } function output_table_content($content) { - echo $content . "\n"; + global $backup_sql; + $backup_sql .= $content . "\n"; return; } // @@ -326,35 +328,30 @@ if(isset($perform)) common_footer(); exit; } - header("Content-Type: text/x-delimtext; name=\"phpbb_db_backup.sql\""); - header("Content-disposition: attachment; filename=phpbb_db_backup.sql"); - header("Pragma: no-cache"); -?> -# -# phpBB Backup Script -# Dump of tables for -# -# DATE : -# - - -# -# TABLE: -# -