files: Provide unified download script
This script adds a single download script, 'file.php', which provides access to files of all types to all users. It uses a HMAC signature system with an expires time, which allows signed URLs to be sent to external users. This also fixes an issue with the Http::cacheable() method, where the last-modified and Etag headers were not properly compared, which resulted in permanent cache misses by the client.
Showing
- attachment.php 0 additions, 36 deletionsattachment.php
- file.php 39 additions, 0 deletionsfile.php
- include/ajax.draft.php 2 additions, 2 deletionsinclude/ajax.draft.php
- include/class.attachment.php 3 additions, 3 deletionsinclude/class.attachment.php
- include/class.draft.php 1 addition, 1 deletioninclude/class.draft.php
- include/class.faq.php 3 additions, 4 deletionsinclude/class.faq.php
- include/class.file.php 61 additions, 17 deletionsinclude/class.file.php
- include/class.format.php 7 additions, 6 deletionsinclude/class.format.php
- include/class.forms.php 3 additions, 4 deletionsinclude/class.forms.php
- include/class.http.php 7 additions, 6 deletionsinclude/class.http.php
- include/class.page.php 1 addition, 1 deletioninclude/class.page.php
- include/class.thread.php 9 additions, 9 deletionsinclude/class.thread.php
- include/staff/settings-pages.inc.php 1 addition, 1 deletioninclude/staff/settings-pages.inc.php
- js/filedrop.field.js 3 additions, 2 deletionsjs/filedrop.field.js
- kb/file.php 0 additions, 30 deletionskb/file.php
- scp/attachment.php 0 additions, 31 deletionsscp/attachment.php
- scp/file.php 0 additions, 30 deletionsscp/file.php
- scp/image.php 0 additions, 34 deletionsscp/image.php
Loading
Please register or sign in to comment