aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche/Tools.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/poche/Tools.class.php')
-rwxr-xr-xinc/poche/Tools.class.php20
1 files changed, 11 insertions, 9 deletions
diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php
index 63137d76..c2c1bdab 100755
--- a/inc/poche/Tools.class.php
+++ b/inc/poche/Tools.class.php
@@ -296,18 +296,20 @@ final class Tools
296 296
297 /** 297 /**
298 * Download the sqlite database 298 * Download the sqlite database
299 * Function not longer used for security reasons
299 */ 300 */
300 public static function downloadDb()
301 {
302 header('Content-Disposition: attachment; filename="poche.sqlite.gz"');
303 self::_status(200);
304 301
305 header('Content-Transfer-Encoding: binary'); 302 // public static function downloadDb()
306 header('Content-Type: application/octet-stream'); 303 // {
307 echo gzencode(file_get_contents(STORAGE_SQLITE)); 304 // header('Content-Disposition: attachment; filename="poche.sqlite.gz"');
305 // self::_status(200);
308 306
309 exit; 307 // header('Content-Transfer-Encoding: binary');
310 } 308 // header('Content-Type: application/octet-stream');
309 // echo gzencode(file_get_contents(STORAGE_SQLITE));
310
311 // exit;
312 // }
311 313
312 /** 314 /**
313 * Get the content for a given URL (by a call to FullTextFeed) 315 * Get the content for a given URL (by a call to FullTextFeed)