4
0

sqlite.phtml 480 B

12345678910
  1. <?php
  2. declare(strict_types=1);
  3. /** @var FreshRSS_View $this */
  4. @ob_end_clean(); // Ensure no buffer
  5. header('Content-Type: application/vnd.sqlite3');
  6. header('Content-Disposition: attachment; filename="' . $this->sqliteName . '"');
  7. header('Cache-Control: private, no-store, max-age=0');
  8. header('Last-Modified: ' . gmdate('D, d M Y H:i:s \\G\\M\\T', @filemtime($this->sqlitePath) ?: 0));
  9. header('Content-Length: ' . (@filesize($this->sqlitePath) ?: 0));
  10. readfile($this->sqlitePath);