mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-13 20:02:54 +02:00
312 files changed, 2866 insertions(+), 24110 deletions(-) Proxy function replacements (130+ functions): - goHome() -> AdminHelpers::goHome() - checkPermissions() -> PageAuthorization::checkPermissions() - getBouquet/getCategory/etc -> Service::getById() - deleteStream/deleteLine/etc -> Repository/Service::delete() - APIRequest/systemapirequest -> ApiClient::request/systemRequest() - prepareArray/preparecolumn -> QueryHelper methods - confirmIDs/parserelease/etc -> AdminHelpers methods - getSettings/clearSettingsCache -> SettingsManager methods - destroySession -> SessionManager::clearContext() - getMag/getEnigma/deleteMAG/etc -> MagService/EnigmaService - getSeriesTrailer/getMovieTMDB/etc -> TMDbService methods Removed legacy files: - src/includes/admin.php (main proxy hub) - src/includes/libs/ (35+ files moved to core/modules) - src/includes/python/ (moved to bin/python) - src/includes/api/ (moved to Controllers) - src/includes/ts.php, reseller_api.php - src/infrastructure/legacy/admin_proxies.php - tools/run_scan.sh, update_redis_conf.sh Additional fixes: - SQL query placeholder migration (BouquetService, CategoryService) - PHP 8.x null-safe access (live.php, server_view.php, stream.php) - TmdbCron: extracted variable for repeated similar_text calls
34 lines
987 B
PHP
34 lines
987 B
PHP
<?php
|
|
|
|
/**
|
|
* StreamingBootstrap — streaming bootstrap
|
|
*
|
|
* @package XC_VM_Streaming
|
|
* @author Divarion_D <https://github.com/Divarion-D>
|
|
* @copyright 2025-2026 Vateron Media
|
|
* @link https://github.com/Vateron-Media/XC_VM
|
|
* @license AGPL-3.0 https://www.gnu.org/licenses/agpl-3.0.html
|
|
*/
|
|
|
|
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 MAIN_HOME . 'streaming/AsyncFileOperations.php';
|
|
require_once MAIN_HOME . 'core/Database/DatabaseHandler.php';
|
|
|
|
$GLOBALS['rSettings'] = $rSettings;
|
|
$GLOBALS['rAccess'] = $rFilename;
|
|
LegacyInitializer::initStreaming();
|
|
|
|
global $db;
|
|
return $db;
|
|
}
|
|
}
|