Igor Wiedler
0bf6966c52
[feature/request-class] Add server(), header() and is_ajax() to request
...
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
2011-07-15 22:34:24 +02:00
Igor Wiedler
136a932303
[ticket/10258] Remove the meta charset tag
...
The charset tag is useless, because if a charset content-type header is
present it takes precedence. And phpBB always sends such a header.
PHPBB3-10258
2011-07-12 01:32:00 +02:00
Igor Wiedler
854c14f9f6
[ticket/10258] Remove X-UA-Compatible and imagetoolbar meta tags
...
These meta tags are IE specific and do not validate as HTML5.
PHPBB3-10258
2011-07-10 23:04:14 +02:00
Igor Wiedler
766537035e
[ticket/10258] Change the DOCTYPE to HTML5
...
PHPBB3-10258
2011-07-09 17:04:46 +02:00
Andreas Fischer
cf5253c7b8
Merge branch 'develop-olympus' into develop
...
* 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
2011-02-24 10:54:51 +01:00
Andreas Fischer
f6a14cbcef
[ticket/9790] Support for lighttpd's X-Sendfile header for attachments.
...
PHPBB3-9790
2011-01-18 21:04:49 +01:00
Andreas Fischer
6bbdc129c0
[ticket/9790] Support for nginx's X-Accel-Redirect header for attachments.
...
PHPBB3-9790
2011-01-17 22:37:53 +01:00
Andreas Fischer
19931713db
[ticket/9790] Always call file_gc(false) before sending the file.
...
This also unloads the cache before the file is send.
PHPBB3-9790
2011-01-17 22:34:39 +01:00
Andreas Fischer
0f88b847fc
[ticket/9790] Add $exit parameter to file_gc().
...
PHPBB3-9790
2011-01-17 00:01:35 +01:00
Andreas Fischer
0f49e52940
[ticket/9627] Prefix function names with 'phpbb_'.
...
PHPBB3-9627
2010-10-23 18:06:46 +02:00
Andreas Fischer
3c61831010
[ticket/9627] Split http_range_request() into several functions.
...
Split http_range_request() into several functions for better reusability and
to allow some unit testing.
PHPBB3-9627
2010-10-23 18:04:17 +02:00
Andreas Fischer
7463a988ea
[ticket/9627] Make sure range request reads till the end of the file.
...
PHPBB3-9627
2010-10-23 18:04:17 +02:00
Andreas Fischer
18e5570851
[ticket/9627] Make use of 'static' since the function is called more than once
...
PHPBB3-9627
2010-10-23 18:04:16 +02:00
Andreas Fischer
56b0268d1d
[ticket/9627] Make sure the database record for the filesize is correct.
...
PHPBB3-9627
2010-10-23 18:04:16 +02:00
Andreas Fischer
17715388c6
[ticket/9627] Support for HTTP range requests in download/file.php
...
Initial draft of "resume support" for attachments.
This should allow users to resume partially downloaded attachments.
PHPBB3-9627
2010-10-23 18:04:16 +02:00
Andreas Fischer
5625df34a5
[ticket/9792] Move function definitions out of download/file.php
...
Move functions defined in download/file.php out to
includes/functions_download.php so they can be properly reused and unit tested.
PHPBB3-9792
2010-08-30 00:28:15 +02:00