diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2008-12-02 15:47:35 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2008-12-02 15:47:35 +0000 |
| commit | d9f46712f9f9578de05d66c0bb05c9b3eaa76cbd (patch) | |
| tree | c7c02ddad72b142f7467489afa91d1115f32a97e /download_file.php | |
| parent | 5141599d72adb2c5f009e5ac2a7dbe89eef1dc78 (diff) | |
| download | liberty-d9f46712f9f9578de05d66c0bb05c9b3eaa76cbd.tar.gz liberty-d9f46712f9f9578de05d66c0bb05c9b3eaa76cbd.tar.bz2 liberty-d9f46712f9f9578de05d66c0bb05c9b3eaa76cbd.zip | |
make use of hits column in liberty_attachments and try a new set of header()s for downloading files. hopefully this avoids problems when setting up multiple HTTP connections during file download.
Diffstat (limited to 'download_file.php')
| -rw-r--r-- | download_file.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/download_file.php b/download_file.php index 9177b0a..f11c2b5 100644 --- a/download_file.php +++ b/download_file.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_liberty/download_file.php,v 1.3 2008/06/30 02:56:55 wjames5 Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_liberty/download_file.php,v 1.4 2008/12/02 15:47:35 squareing Exp $ * * @author xing <xing@synapse.plus.com> * @package treasury @@ -25,6 +25,7 @@ $gBitSmarty->assign( 'gContent', $gContent ); if( $download_function = $gLibertySystem->getPluginFunction( $attachment['attachment_plugin_guid'], 'download_function' )) { if( $download_function( $attachment )) { + LibertyMime::addDownload( $attachment['attachment_id'] ); die; } else { if( !empty( $attachment['errors'] )) { |
