* @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 CreatedChannelMassController extends BaseAdminController { public function index() { $this->requirePermission(); global $rServers; $rCategories = CategoryService::getAllByType('live'); $rTranscodeProfiles = StreamConfigRepository::getTranscodeProfiles(); $rServerTree = [ ['id' => 'source', 'parent' => '#', 'text' => "Active", 'icon' => 'mdi mdi-play', 'state' => ['opened' => true]], ['id' => 'offline', 'parent' => '#', 'text' => "Offline", 'icon' => 'mdi mdi-stop', 'state' => ['opened' => true]] ]; foreach ($rServers as $rServer) { $rServerTree[] = ['id' => intval($rServer['id']), 'parent' => 'offline', 'text' => htmlspecialchars($rServer['server_name']), 'icon' => 'mdi mdi-server-network', 'state' => ['opened' => true]]; } $this->setTitle('Mass Edit Channels'); $this->render('created_channel_mass', ['rCategories' => $rCategories, 'rTranscodeProfiles' => $rTranscodeProfiles, 'rServerTree' => $rServerTree]); } }