File/download/file.php

Description
  • version: $Id: file.php 8772 2008-08-21 14:19:42Z acydburn $
  • copyright: (c) 2005 phpBB Group
  • license: GNU Public License
Includes
 include ($phpbb_root_path.'common.'.$phpEx) (line 106)
 require ($phpbb_root_path.'includes/acm/acm_'.$acm_type.'.'.$phpEx) (line 39)
 require ($phpbb_root_path.'config.'.$phpEx) (line 32)
 require ($phpbb_root_path.'includes/constants.'.$phpEx) (line 42)
 require ($phpbb_root_path.'includes/cache.'.$phpEx) (line 40)
 require ($phpbb_root_path.'includes/db/'.$dbms.'.'.$phpEx) (line 41)
Functions
download_allowed (line 532)

Check if downloading item is allowed

void download_allowed ()
file_gc (line 673)
void file_gc ()
header_filename (line 514)

Get a browser friendly UTF-8 encoded filename

void header_filename ( $file)
  • $file
send_avatar_to_browser (line 306)

A simplified function to deliver avatars The argument needs to be checked before calling this function.

void send_avatar_to_browser ( $file,  $browser)
  • $file
  • $browser
send_file_to_browser (line 404)

Send file to browser

void send_file_to_browser ( $attachment,  $upload_dir,  $category)
  • $attachment
  • $upload_dir
  • $category
set_modified_headers (line 644)

Check if the browser has the file already and set the appropriate headers-

  • return: if a resend is in order.
false set_modified_headers ( $stamp,  $browser)
  • $stamp
  • $browser
wrap_img_in_html (line 385)

Wraps an url into a simple html page. Used to display attachments in IE.

this is a workaround for now; might be moved to template system later direct any complaints to 1 Microsoft Way, Redmond

void wrap_img_in_html ( $src,  $title)
  • $src
  • $title

Documentation generated on Tue, 26 Aug 2008 08:34:02 +0200 by phpDocumentor 1.4.2