mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-19 21:03:54 -07:00
Use http_response_code() functions instead of old header() functions (#1110)
This commit is contained in:
parent
f61a6d6c8c
commit
a939018275
1 changed files with 1 additions and 1 deletions
|
@ -433,7 +433,7 @@ if (
|
||||||
* Exit if board is disabled via trigger
|
* Exit if board is disabled via trigger
|
||||||
*/
|
*/
|
||||||
if (($bb_cfg['board_disable'] || file_exists(BB_DISABLED)) && !defined('IN_ADMIN') && !defined('IN_AJAX') && !defined('IN_LOGIN')) {
|
if (($bb_cfg['board_disable'] || file_exists(BB_DISABLED)) && !defined('IN_ADMIN') && !defined('IN_AJAX') && !defined('IN_LOGIN')) {
|
||||||
header('HTTP/1.0 503 Service Unavailable');
|
http_response_code(503);
|
||||||
if ($bb_cfg['board_disable']) {
|
if ($bb_cfg['board_disable']) {
|
||||||
// admin lock
|
// admin lock
|
||||||
send_no_cache_headers();
|
send_no_cache_headers();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue