aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_download.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2010-10-23 18:03:49 +0200
committerAndreas Fischer <bantu@phpbb.com>2010-10-23 18:06:46 +0200
commit0f49e529407e0b20610f980ff3cac47dcf141db1 (patch)
tree87312f1b4f2eb9614f6b95f740920d0a441a9b8a /phpBB/includes/functions_download.php
parentafda5e2073981927e4db9c699a5cd72e8df7ef51 (diff)
downloadforums-0f49e529407e0b20610f980ff3cac47dcf141db1.tar
forums-0f49e529407e0b20610f980ff3cac47dcf141db1.tar.gz
forums-0f49e529407e0b20610f980ff3cac47dcf141db1.tar.bz2
forums-0f49e529407e0b20610f980ff3cac47dcf141db1.tar.xz
forums-0f49e529407e0b20610f980ff3cac47dcf141db1.zip
[ticket/9627] Prefix function names with 'phpbb_'.
PHPBB3-9627
Diffstat (limited to 'phpBB/includes/functions_download.php')
-rw-r--r--phpBB/includes/functions_download.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/phpBB/includes/functions_download.php b/phpBB/includes/functions_download.php
index ad0c7f1cff..94d851e383 100644
--- a/phpBB/includes/functions_download.php
+++ b/phpBB/includes/functions_download.php
@@ -237,7 +237,7 @@ function send_file_to_browser($attachment, $upload_dir, $category)
if ($fp !== false)
{
// Deliver file partially if requested
- if ($range = http_byte_range($size))
+ if ($range = phpbb_http_byte_range($size))
{
fseek($fp, $range['byte_pos_start']);
@@ -439,7 +439,7 @@ function file_gc()
* @return mixed false if the whole file has to be delivered
* associative array on success
*/
-function http_byte_range($filesize)
+function phpbb_http_byte_range($filesize)
{
// Only call find_range_request() once.
static $request_array;
@@ -451,10 +451,10 @@ function http_byte_range($filesize)
if (!isset($request_array))
{
- $request_array = find_range_request();
+ $request_array = phpbb_find_range_request();
}
- return (empty($request_array)) ? false : parse_range_request($request_array, $filesize);
+ return (empty($request_array)) ? false : phpbb_parse_range_request($request_array, $filesize);
}
/**
@@ -464,7 +464,7 @@ function http_byte_range($filesize)
* array of strings containing the requested ranges otherwise
* e.g. array(0 => '0-0', 1 => '123-125')
*/
-function find_range_request()
+function phpbb_find_range_request()
{
$globals = array(
array('_SERVER', 'HTTP_RANGE'),
@@ -505,7 +505,7 @@ function find_range_request()
* bytes_requested the number of bytes requested
* bytes_total the full size of the file
*/
-function parse_range_request($request_array, $filesize)
+function phpbb_parse_range_request($request_array, $filesize)
{
// Go through all ranges
foreach ($request_array as $range_string)