[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/download/ -> file.php (summary)

(no description)

Copyright: (c) 2005 phpBB Group
License: http://opensource.org/licenses/gpl-license.php GNU Public License
Version: $Id$
File Size: 733 lines (19 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 8 functions

  send_avatar_to_browser()
  wrap_img_in_html()
  send_file_to_browser()
  header_filename()
  download_allowed()
  set_modified_headers()
  file_gc()
  phpbb_is_greater_ie_version()

Functions
Functions that are not part of a class:

send_avatar_to_browser($file, $browser)   X-Ref
A simplified function to deliver avatars
The argument needs to be checked before calling this function.


wrap_img_in_html($src, $title)   X-Ref
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


send_file_to_browser($attachment, $upload_dir, $category)   X-Ref
Send file to browser


header_filename($file)   X-Ref
Get a browser friendly UTF-8 encoded filename


download_allowed()   X-Ref
Check if downloading item is allowed


set_modified_headers($stamp, $browser)   X-Ref
Check if the browser has the file already and set the appropriate headers-

returns: false if a resend is in order.

file_gc()   X-Ref
No description

phpbb_is_greater_ie_version($user_agent, $version)   X-Ref
Check if the browser is internet explorer version 7+

param: string $user_agent    User agent HTTP header
param: int $version IE version to check against
return: bool true if internet explorer version is greater than $version



Generated: Wed Oct 2 15:03:47 2013 Cross-referenced by PHPXref 0.7.1