[ Index ]

PHP Cross Reference of MantisBT

title

Body

[close]

/core/ -> http_api.php (summary)

HTTP API Provides functions to manage HTTP response headers.

Copyright: Copyright (C) 2002 - 2011 MantisBT Team - mantisbt-dev@lists.sourceforge.net
File Size: 183 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 8 functions

  is_browser_internet_explorer()
  is_browser_chrome()
  http_content_disposition_header()
  http_caching_headers()
  http_content_headers()
  http_security_headers()
  http_custom_headers()
  http_all_headers()

Functions
Functions that are not part of a class:

is_browser_internet_explorer()   X-Ref
Check to see if the client is using Microsoft Internet Explorer so we can
enable quirks and hacky non-standards-compliant workarounds.

return: boolean True if Internet Explorer is detected as the user agent

is_browser_chrome()   X-Ref
Checks to see if the client is using Google Chrome so we can enable quirks
and hacky non-standards-compliant workarounds.

return: boolean True if Chrome is detected as the user agent

http_content_disposition_header( $p_filename, $p_inline = false )   X-Ref
Send a Content-Disposition header. This is more complex than it sounds
because only a few browsers properly support RFC2231. For those browsers
which are behind the times or are otherwise broken, we need to use
some hacky workarounds to get them to work 'nicely' with attachments and
inline files. See http://greenbytes.de/tech/tc2231/ for full reasoning.

param: string Filename
param: boolean Display file inline (optional, default = treat as attachment)

http_caching_headers( $p_allow_caching=false )   X-Ref
Set caching headers that will allow or prevent browser caching.

param: boolean Allow caching

http_content_headers()   X-Ref
Set content-type headers.


http_security_headers()   X-Ref
Set security headers (frame busting, clickjacking/XSS/CSRF protection).


http_custom_headers()   X-Ref
Load and set any custom headers defined by the site configuration.


http_all_headers()   X-Ref
Set all headers used by a normal page load.




Generated: Thu Jul 28 15:48:31 2011 Cross-referenced by PHPXref 0.7