Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenwrite.git

Adds license to file

AuthorDaveJarvis <email>
Date2023-11-11 17:20:53 GMT-0800
Commitb4278cb96053dfbcc18ac85d29d2650b5aa3b40d
Parent1a0256b
Delta6 lines added, 1 line removed, 5-line increase
www/downloads/counter.php
<?php
+ /* Copyright 2023 White Magic Software, Ltd. -- All rights reserved.
+ *
+ * SPDX-License-Identifier: MIT
+ */
+
// Log all errors to a temporary file.
ini_set( 'log_errors', 1 );
header( 'Cache-Control: private', false );
- // Force the browser to download, rather than displaying the file inline.
+ // Force the browser to download, rather than display the file inline.
header( "Content-Disposition: attachment; filename=\"$filename\"" );
header( 'Accept-Ranges: bytes' );