summaryrefslogtreecommitdiff
path: root/downloadbackup.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2011-11-05 14:25:38 +0000
committerfisharebest <fisharebest@gmail.com>2011-11-05 14:25:38 +0000
commit9184390d6d1424fcb32e2edc70d4feced52fa3f4 (patch)
tree60ad769580e96d229ef8b024b233fcfbd186fdd0 /downloadbackup.php
parent9b21eb42558a27852c3f93b872a7baa62b51040a (diff)
downloadwebtrees-9184390d6d1424fcb32e2edc70d4feced52fa3f4.tar.gz
webtrees-9184390d6d1424fcb32e2edc70d4feced52fa3f4.tar.bz2
webtrees-9184390d6d1424fcb32e2edc70d4feced52fa3f4.zip
Major MVC refactoring. Every page now has a controller.
Diffstat (limited to 'downloadbackup.php')
-rw-r--r--downloadbackup.php51
1 files changed, 23 insertions, 28 deletions
diff --git a/downloadbackup.php b/downloadbackup.php
index 70e6aa1815..f6c981d287 100644
--- a/downloadbackup.php
+++ b/downloadbackup.php
@@ -1,31 +1,27 @@
<?php
-/**
- * Allow an admin user to download the backup file.
- *
- * webtrees: Web based Family History software
- * Copyright (C) 2010 webtrees development team.
- *
- * Derived from PhpGedView
- * Copyright (C) 2002 to 2005 John Finlay and Others
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * @package webtrees
- * @subpackage Admin
- * @version $Id$
- */
+// Allow an admin user to download the backup file.
+//
+// webtrees: Web based Family History software
+// Copyright (C) 2011 webtrees development team.
+//
+// Derived from PhpGedView
+// Copyright (C) 2002 to 2005 John Finlay and Others
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// $Id$
define('WT_SCRIPT_NAME', 'downloadbackup.php');
require './includes/session.php';
@@ -50,4 +46,3 @@ header('Content-Disposition: attachment; filename="'.$fname.'"');
header('Content-length: '.filesize($INDEX_DIRECTORY.$fname));
header('Content-Transfer-Encoding: binary');
readfile($INDEX_DIRECTORY.basename($fname));
-exit();