public static function SetStatus($status) { $bCgi = stristr(php_sapi_name(), "cgi") !== false; if ($bCgi && (!defined("BX_HTTP_STATUS") || BX_HTTP_STATUS == false)) { header("Status: " . $status); } else { header($_SERVER["SERVER_PROTOCOL"] . " " . $status); } self::$lastSetStatus = $status; }