5831e3bcea
PHP 8.2 deprecations no longer corrupt health_check JSON; .htaccess respects X-Forwarded-Proto behind reverse proxies. Co-authored-by: Cursor <cursoragent@cursor.com>
17 lines
602 B
PHP
17 lines
602 B
PHP
<?php
|
|
/**
|
|
* EverShelf API bootstrap — shared by HTTP router and cron.
|
|
*/
|
|
// Never emit HTML notices before JSON API responses (breaks fetch().json() in the PWA).
|
|
if (!defined('CRON_MODE') && (getenv('DISPLAY_ERRORS') ?: '') !== '1') {
|
|
ini_set('display_errors', '0');
|
|
ini_set('html_errors', '0');
|
|
}
|
|
require_once __DIR__ . '/lib/env.php';
|
|
require_once __DIR__ . '/lib/constants.php';
|
|
require_once __DIR__ . '/lib/github.php';
|
|
require_once __DIR__ . '/lib/security.php';
|
|
require_once __DIR__ . '/lib/cron_log.php';
|
|
require_once __DIR__ . '/logger.php';
|
|
require_once __DIR__ . '/database.php';
|