CoreAPI
[ class tree: CoreAPI ] [ index: CoreAPI ] [ all elements ]

Procedural File: http_api.php

Source Location: /core/http_api.php



Page Details:

API for managing HTTP response headers and transactions.



Tags:

copyright:  Copyright (C) 2002 - 2010 MantisBT Team - mantisbt-dev@lists.sourceforge.net
link:  http://www.mantisbt.org








http_all_headers [line 156]

void http_all_headers( )

Set all headers used by a normal page load.



[ Top ]



http_caching_headers [line 90]

void http_caching_headers( [boolean $p_allow_caching = false])

Set caching headers that will allow or prevent browser caching.



Parameters

boolean   $p_allow_caching   Allow caching
[ Top ]



http_content_disposition_header [line 64]

void http_content_disposition_header( string $p_filename, [boolean $p_inline = false])

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.




Parameters

string   $p_filename   Filename
boolean   $p_inline   Display file inline (optional, default = treat as attachment)
[ Top ]



http_content_headers [line 114]

void http_content_headers( )

Set content-type headers.



[ Top ]



http_custom_headers [line 144]

void http_custom_headers( )

Load and set any custom headers defined by the site configuration.



[ Top ]



http_security_headers [line 126]

void http_security_headers( )

Set security headers (frame busting, clickjacking/XSS/CSRF protection).



[ Top ]



is_browser_chrome [line 45]

boolean is_browser_chrome( )

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



Tags:

return:  True if Chrome is detected as the user agent


[ Top ]



is_browser_internet_explorer [line 30]

boolean is_browser_internet_explorer( )

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



Tags:

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


[ Top ]



Documentation generated on Sun, 12 Dec 2010 23:50:33 +0900 by phpDocumentor 1.4.3
inserted by FC2 system