diff options
author | Simon Rettberg | 2019-12-11 18:00:38 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-12-11 18:00:38 +0100 |
commit | 0ef44223568b3ef512b504cc236378bc64fc38a8 (patch) | |
tree | 3415e6f21d1dc31b7fb96f03a328dfbf0855d13b /modules-available/backup/page.inc.php | |
parent | [serversetup-bwlp-ipxe] Fix updating of default boot entries (diff) | |
download | slx-admin-0ef44223568b3ef512b504cc236378bc64fc38a8.tar.gz slx-admin-0ef44223568b3ef512b504cc236378bc64fc38a8.tar.xz slx-admin-0ef44223568b3ef512b504cc236378bc64fc38a8.zip |
[backup] Disable button during download; add IP to download file name
Diffstat (limited to 'modules-available/backup/page.inc.php')
-rw-r--r-- | modules-available/backup/page.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/backup/page.inc.php b/modules-available/backup/page.inc.php index 985f39ee..1d69ddd3 100644 --- a/modules-available/backup/page.inc.php +++ b/modules-available/backup/page.inc.php @@ -63,7 +63,7 @@ class Page_Backup extends Page Util::redirect('?do=Backup'); } Header('Content-Type: application/octet-stream', true); - Header('Content-Disposition: attachment; filename=' . 'satellite-backup_v16_' . date('Y.m.d-H.i.s') . '.tgz'); + Header('Content-Disposition: attachment; filename=' . 'satellite-backup_' . Property::getServerIp() . '_' . date('Y.m.d-H.i.s') . '.tgz'); Header('Content-Length: ' . @filesize($task['data']['backupFile'])); while (!feof($fh)) { $data = fread($fh, 16000); |