mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-01-17 17:57:54 -05:00
* [sqlite export] add username and timestamp add username and timestamp to sqlite user export, similar to the ZIP export. Useful for archiving purposes. * Fix case of backups and other DB types https://github.com/FreshRSS/FreshRSS/pull/8169#issuecomment-3476079108 --------- Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
11 lines
480 B
PHTML
11 lines
480 B
PHTML
<?php
|
|
declare(strict_types=1);
|
|
/** @var FreshRSS_View $this */
|
|
@ob_end_clean(); // Ensure no buffer
|
|
header('Content-Type: application/vnd.sqlite3');
|
|
header('Content-Disposition: attachment; filename="' . $this->sqliteName . '"');
|
|
header('Cache-Control: private, no-store, max-age=0');
|
|
header('Last-Modified: ' . gmdate('D, d M Y H:i:s \\G\\M\\T', @filemtime($this->sqlitePath) ?: 0));
|
|
header('Content-Length: ' . (@filesize($this->sqlitePath) ?: 0));
|
|
readfile($this->sqlitePath);
|