Files
XC_VM/src/streaming/StreamingBootstrap.php
T

24 lines
692 B
PHP
Raw Normal View History

2026-02-22 15:02:41 +03:00
<?php
class StreamingBootstrap {
public static function bootstrap($rFilename, $rSettings) {
$rProbeEndpoints = array('probe', 'player_api');
$rDefaultEndpoints = array('live', 'thumb', 'subtitle', 'timeshift', 'vod', 'status');
$rPrivilegedEndpoints = array('rtmp', 'portal');
if (!in_array($rFilename, array_merge($rProbeEndpoints, $rDefaultEndpoints, $rPrivilegedEndpoints), true)) {
return null;
}
require_once INCLUDES_PATH . 'libs/AsyncFileOperations.php';
require_once MAIN_HOME . 'core/Database/DatabaseHandler.php';
2026-03-03 20:00:34 +03:00
$GLOBALS['rSettings'] = $rSettings;
$GLOBALS['rAccess'] = $rFilename;
LegacyInitializer::initStreaming();
2026-02-22 15:02:41 +03:00
2026-03-03 20:00:34 +03:00
global $db;
return $db;
2026-02-22 15:02:41 +03:00
}
}