Portions created by the Initial Developer are Copyright (C) 2008-2012 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane */ include "root.php"; require_once "resources/require.php"; require_once "resources/check_auth.php"; if (if_group("superadmin")) { $fh = fopen($db_file_path.'/'.$dbfilename, 'r+b'); $contents = fread($fh, filesize($db_file_path.'/'.$dbfilename)); header("Content-disposition: attachment; filename=$dbfilename"); header("Content-Type: application/force-download"); header("Content-Transfer-Encoding: binary"); header("Content-Length: ".strlen($contents)); header("Pragma: no-cache"); header("Expires: 0"); echo $contents; } ?>