diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2010-05-16 19:52:01 -0400 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2010-05-16 19:52:01 -0400 |
commit | 691f682fc2a69fed28bdca76f714d20be9277af6 (patch) | |
tree | 22408a59661482ca21caad465c3c48cefc9df000 /phpBB/includes | |
parent | c1a4cb1d01dc19650219566b60671abc767af662 (diff) | |
download | forums-691f682fc2a69fed28bdca76f714d20be9277af6.tar forums-691f682fc2a69fed28bdca76f714d20be9277af6.tar.gz forums-691f682fc2a69fed28bdca76f714d20be9277af6.tar.bz2 forums-691f682fc2a69fed28bdca76f714d20be9277af6.tar.xz forums-691f682fc2a69fed28bdca76f714d20be9277af6.zip |
[ticket/7782] Added phpdoc comment for send_status_line function.
PHPBB3-7782
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/functions.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index bc7c426e44..178bb3ff3f 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -2578,6 +2578,26 @@ function meta_refresh($time, $url, $disable_cd_check = false) return $url; } +/** +* Outputs correct status line header. +* +* Depending on php sapi one of the two following forms is used: +* +* Status: 404 Not Found +* +* HTTP/1.x 404 Not Found +* +* HTTP version is taken from HTTP_VERSION environment variable, +* and defaults to 1.0. +* +* Sample usage: +* +* send_status_line(404, 'Not Found'); +* +* @param int $code HTTP status code +* @param string $message Message for the status code +* @return void +*/ function send_status_line($code, $message) { if (substr(strtolower(@php_sapi_name()),0,3) === 'cgi') |