aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/download/file.php
Commit message (Collapse)AuthorAgeFilesLines
...
* | | [feature/attach-dl] phpbb_check_attach_extensions: Get rid of pass-by-referenceAndreas Fischer2012-08-071-9/+2
| | | | | | | | | | | | PHPBB3-11042
* | | [feature/attach-dl] Move !download_allowed() check up.Andreas Fischer2012-08-071-6/+5
| | | | | | | | | | | | PHPBB3-11042
* | | [feature/attach-dl] Putting more old code under "else if ($download_id)".Andreas Fischer2012-08-071-82/+101
| | | | | | | | | | | | PHPBB3-11042
* | | [feature/attach-dl] Putting some old code under "else if ($download_id)".Andreas Fischer2012-08-071-4/+10
| | | | | | | | | | | | PHPBB3-11042
* | | [feature/attach-dl] Also merge topic_id query. a.topic_id can be used.Andreas Fischer2012-08-071-15/+22
| | | | | | | | | | | | PHPBB3-11042
* | | [feature/attach-dl] Combine download_id and post_id queries.Andreas Fischer2012-08-071-14/+3
| | | | | | | | | | | | PHPBB3-11042
* | | [feature/attach-dl] Store query result always in $attachments first.Andreas Fischer2012-08-071-5/+6
| | | | | | | | | | | | PHPBB3-11042
* | | [feature/attach-dl] Exploit the "if ... else if ..." for the error message.Andreas Fischer2012-08-071-6/+5
| | | | | | | | | | | | | | | | | | Use an "else" statement instead of checking everything at the top. PHPBB3-11042
* | | [feature/attach-dl] Use table aliases in all three cases.Andreas Fischer2012-08-071-6/+6
| | | | | | | | | | | | PHPBB3-11042
* | | [feature/attach-dl] Remove unnecessary LIMIT from primary key query.Andreas Fischer2012-08-071-1/+1
| | | | | | | | | | | | PHPBB3-11042
* | | [feature/attach-dl] Use "else if" for precedence in case of multiple arguments.Andreas Fischer2012-08-071-24/+12
| | | | | | | | | | | | PHPBB3-11042
* | | [feature/attach-dl] Only include compress class when neededFyorl2012-08-041-1/+1
| | | | | | | | | | | | PHPBB3-11042
* | | [feature/attach-dl] Used sql_fetchrowsetFyorl2012-08-041-19/+6
| | | | | | | | | | | | PHPBB3-11042
* | | [feature/attach-dl] Added a function for checking allowed extensionsFyorl2012-08-041-15/+9
| | | | | | | | | | | | PHPBB3-11042
* | | [feature/attach-dl] Ensure only one operation is performedFyorl2012-08-041-0/+12
| | | | | | | | | | | | PHPBB3-11042
* | | [feature/attach-dl] Added function for incrementing download counterFyorl2012-08-041-8/+2
| | | | | | | | | | | | PHPBB3-11042
* | | [feature/attach-dl] Initialised arrays if they're usedFyorl2012-08-041-2/+2
| | | | | | | | | | | | PHPBB3-11042
* | | [feature/attach-dl] Added table prefix to columnsFyorl2012-08-041-1/+1
| | | | | | | | | | | | PHPBB3-11042
* | | [feature/attach-dl] Modified SQL query format and used sql_in_setFyorl2012-08-041-26/+15
| | | | | | | | | | | | PHPBB3-11042
* | | [feature/attach-dl] Downloading all attachments fully implementedFyorl2012-08-041-62/+213
|/ / | | | | | | | | | | | | | | | | | | Added a function to list all available archiving methods and integrated it with the prosilver style. Heavy modifications to download/file.php to support archiving and downloading of multiple files at once. PHPBB3-11042
* | [feature/event-dispatcher] Add missing dispatcher to file.phpIgor Wiedler2012-03-281-0/+4
| | | | | | | | PHPBB3-9550
* | [feature/event-dispatcher] Delete hard dependency on composer.Oleg Pudeyev2012-03-181-2/+0
| | | | | | | | | | | | Applications should not depend on package managers. PHPBB3-9550
* | [feature/event-dispatcher] Use real EventDispatcher through composerIgor Wiedler2012-03-111-0/+2
| | | | | | | | | | | | | | * replace the copy-pasta EventDispatcher with the real one from Symfony2 * use composer for managing this dependency, use composer autoloading PHPBB3-9550
* | [ticket/9916] Updating header license and removing Version $Id$Unknown2011-12-311-2/+1
| | | | | | | | PHPBB3-9916
* | [feature/extension-manager] The class loader no longer knows about extensionsNils Adermann2011-09-291-3/+6
| | | | | | | | | | | | | | Instead the class loader is instantiated twice. Once with the phpbb_ prefix and once with the phpbb_ext_ prefix. PHPBB3-10323
* | [feature/extension-manager] Load the extension manager on all pagesNils Adermann2011-09-291-0/+3
| | | | | | | | PHPBB3-10323
* | [feature/extension-manager] Extension Manager & FinderNils Adermann2011-09-291-1/+1
| | | | | | | | | | | | | | Extensions RFC: http://area51.phpbb.com/phpBB/viewtopic.php?f=84&t=41499 Ticket: http://tracker.phpbb.com/browse/PHPBB3-10323 PHPBB3-10323
* | [ticket/10359] Fix phpbb_request regression in download/file.phpIgor Wiedler2011-09-081-0/+4
| | | | | | | | | | | | The phpbb_request object, utf-8 tools and request_var injection are missing. PHPBB3-10359
* | [feature/request-class] Add server(), header() and is_ajax() to requestIgor Wiedler2011-07-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Extend the request class with helpers for reading server vars (server()) and HTTP request headers (header()). Refactor the existing code base to make use of these helpers, make $_SERVER a deactivated super global. Also introduce an is_ajax() method, which checks the X-Requested-With header for the value 'XMLHttpRequest', which is sent by JavaScript libraries, such as jQuery. PHPBB3-9716
* | Merge branch 'develop-olympus' into developAndreas Fischer2011-06-151-6/+1
|\ \ | |/ | | | | | | | | | | | | | | * develop-olympus: [ticket/10218] Prevent startime from being overwritten by deregister_globals() [ticket/10218] Moving global deregistration, etc. to startup.php Conflicts: phpBB/install/database_update.php
| * [ticket/10218] Moving global deregistration, etc. to startup.phpYuriy Rusko2011-06-141-6/+1
| | | | | | | | | | | | | | Because startup.php deletes all variables, the constants in database_update are used to preserve settings at the top. PHPBB3-10218
* | Merge branch 'develop-olympus' into developOleg Pudeyev2011-05-101-1/+1
|\ \ | |/ | | | | | | * develop-olympus: [ticket/10126] Use binary "and not" instead of binary "xor" in error_reporting.
| * [ticket/10126] Use binary "and not" instead of binary "xor" in error_reporting.Andreas Fischer2011-05-111-1/+1
| | | | | | | | | | | | Make what we want to achieve clear by using "and not" instead of "xor". PHPBB3-10126
* | [ticket/9684] Remove code in some more files especially includes/Joas Schilling2011-04-071-2/+1
| | | | | | | | | | | | Topic-Tracking is still missing. PHPBB3-9684
* | Merge branch 'develop-olympus' into developAndreas Fischer2011-02-241-0/+9
|\ \ | |/ | | | | | | | | | | | | | | * develop-olympus: [ticket/10056] Corrected a typo in Firebird name. [ticket/10041] Use send_status_line more in download/file.php Conflicts: phpBB/download/file.php
| * [ticket/10041] Use send_status_line more in download/file.phpOleg Pudeyev2011-02-231-0/+12
| | | | | | | | PHPBB3-10041
* | Merge branch 'develop-olympus' into developIgor Wiedler2011-02-121-1/+1
|\ \ | |/ | | | | | | | | | | | | * develop-olympus: [ticket/10038] Use request_var() in the avatar code path of download/file.php Conflicts: phpBB/download/file.php
| * [ticket/10038] Use request_var() in the avatar code path of download/file.phpAndreas Fischer2011-02-121-1/+1
| | | | | | | | | | | | | | | | | | | | There is no reason not to use request_var() here because it is available anyway since 3afd2c6948e777fde2f43f00bff1659f2691f4d8. This change especially prevents submitting an array which might then throw an error in one of the string functions substr() or strpos() later on. PHPBB3-10038
* | [task/config-class] Do not create multiple cache driver instances.Nils Adermann2011-01-121-2/+2
| | | | | | | | | | | | | | Retrieve the driver from the service instead of creating new ones over and over from the factory. PHPBB3-9988
* | [task/config-class] Always specify the config table to use.Nils Adermann2011-01-121-1/+1
| | | | | | | | PHPBB3-9988
* | [task/config-class] Implemented a config class to replace the global array.Nils Adermann2011-01-101-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a phpbb_config class which simply holds an array and does not persist any data. It implements ArrayAccess, Countable and IteratorAggregate to allow regular use of configuration as if it was still an array. The phpbb_config_db class depends on an instance of the dbal and a cache driver. It obtains the configuration data from cache and database as necessary and persists data to the database. The functions set_config and set_config_count remain for backward compatability but they only call methods on the new config class now instead of directly manipulating the database and cache. PHPBB3-9988
* | [task/acm-refactor] Cleaning up left over mentions of ACM and fixing tests.Nils Adermann2011-01-091-3/+3
| | | | | | | | PHPBB3-9983
* | [task/acm-refactor] Refactor the ACM classes to have a common interface.Igor Wiedler2011-01-091-3/+9
| | | | | | | | | | | | | | | | | | | | They are now refered to as cache drivers rather than ACM classes. The additional utility functions from the original cache class have been moved to the cache_service. The class loader is now instantiated without a cache instance and passed one as soon as it is constructed to allow autoloading the cache classes. PHPBB3-9983
* | [ticket/9556] Drop php closing tags, add trailing newlineIgor Wiedler2010-11-111-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | Closing tags converted using Oleg's script. remove-php-end-tags.py -a . Trailing newlines added using the following where $ext is file extension. find . -type f -name "*.$ext" -print | xargs printf "e %s\nw\n" | ed -s; Extensions: php, css, html, js, xml. PHPBB3-9556
* | [ticket/9627] Prefix function names with 'phpbb_'.Andreas Fischer2010-10-231-1/+1
| | | | | | | | PHPBB3-9627
* | [ticket/9627] Do not increase download counter if file is requested partially.Andreas Fischer2010-10-231-2/+2
| | | | | | | | PHPBB3-9627
* | Merge branch 'ticket/bantu/9792' into developIgor Wiedler2010-10-041-395/+3
|\ \ | |/ |/| | | | | | | | | | | * ticket/bantu/9792: [ticket/9792] Move function definitions out of download/file.php Conflicts: phpBB/download/file.php
| * [ticket/9792] Move function definitions out of download/file.phpAndreas Fischer2010-08-301-394/+2
| | | | | | | | | | | | | | Move functions defined in download/file.php out to includes/functions_download.php so they can be properly reused and unit tested. PHPBB3-9792
* | [ticket/9609] Change header() calls setting HTTP status to send_status_line().Andreas Fischer2010-09-111-7/+7
|/ | | | PHPBB3-9609
* [ticket/9793] Make sure send_status_line() is defined when in avatar mode.Andreas Fischer2010-08-271-0/+1
| | | | | | | | | | | | | When download/file.php is in avatar mode set_modified_headers() can be called, which then calls send_status_line() which is not available because includes/functions.php is not included in avatar mode. We also load includes/functions.php in the bootstrap now to solve this problem. Regression from c1a4cb1d01dc19650219566b60671abc767af662. PHPBB3-9793 PHPBB3-7782