mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-12 04:03:02 +02:00
Stage 6 has been completed, and some classes have been merged into one
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* RtmpMonitorController — мониторинг RTMP (Phase 6.3 — Group A).
|
||||
*/
|
||||
class RtmpMonitorController extends BaseAdminController
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
$this->requirePermission();
|
||||
|
||||
global $rServers;
|
||||
|
||||
if (!isset(CoreUtilities::$rRequest['server']) || !isset($rServers[CoreUtilities::$rRequest['server']])) {
|
||||
CoreUtilities::$rRequest['server'] = SERVER_ID;
|
||||
}
|
||||
|
||||
$rRTMPInfo = getRTMPStats(CoreUtilities::$rRequest['server']);
|
||||
|
||||
$this->setTitle('RTMP Monitor');
|
||||
$this->render('rtmp_monitor', compact('rRTMPInfo'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user