Added Http class implementation (#632)

* Added Http class implementation

* Applied requested changes
This commit is contained in:
Roman Kelesidis 2023-03-20 14:58:14 +07:00 committed by GitHub
commit b0a0ec1dd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 57 additions and 2 deletions

View file

@ -457,7 +457,7 @@ if (
* 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')) {
header('HTTP/1.0 503 Service Unavailable');
\TorrentPier\Common\Http::statusCode(503);
if ($bb_cfg['board_disable']) {
// admin lock
send_no_cache_headers();