Файловый менеджер - Редактировать - /var/www/html/components/com_jchat/Controller/BlackboardController.php
Ðазад
<?php namespace JExtstore\Component\JChat\Site\Controller; /** * @package JCHAT::BLACKBOARD::components::com_jchat * @subpackage controllers * @author Joomla! Extensions Store * @Copyright (C) 2015 - Joomla! Extensions Store * @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html */ defined('_JEXEC') or die('Restricted access'); use JExtstore\Component\JChat\Administrator\Framework\Controller as JChatController; use JExtstore\Component\JChat\Administrator\Framework\Helpers\Users as JChatHelpersUsers; /** * Controller for the blackboard signaling channel * * @package JCHAT::BLACKBOARD::components::com_jchat * @subpackage controllers * @since 2.23 */ class BlackboardController extends JChatController { /** * Save new session for WebRTC blackboard * * @access public * @return bool */ public function saveEntity(): bool { // Initialization $viewType = $this->document->getType (); $coreName = $this->getName (); // Instantiate model object with Dependency Injection $userSessionTable = JChatHelpersUsers::getSessiontable (); $model = $this->getModel($coreName, null, array('sessiontable'=>$userSessionTable)); // Retrieve POST data $otherPeer = $this->app->input->getString('peer2', null); $sdp = $this->app->input->getString('sdp', null); $iceCandidate = $this->app->input->getString('icecandidate', null); $isCaller = $this->app->input->getInt('caller', 0); // Try to store record using model $response = $model->storeEntity($otherPeer, $sdp, $iceCandidate, $isCaller); // Get view $view = $this->getView ( $coreName, $viewType, '', array ('base_path' => $this->basePath ) ); // Format response for JS client as requested $view->display($response); return true; } /** * Remove existing session for WebRTC blackboard * * @access public * @return bool */ public function deleteEntity(): bool { // Initialization $viewType = $this->document->getType (); $coreName = $this->getName (); // Instantiate model object with Dependency Injection $userSessionTable = JChatHelpersUsers::getSessiontable (); $model = $this->getModel($coreName, null, array('sessiontable'=>$userSessionTable)); $remotePeer = $this->app->input->getString('ids', null); // Try to load record from model $response = $model->deleteEntity($remotePeer); // Get view and pushing model $view = $this->getView ( $coreName, $viewType, '', array ('base_path' => $this->basePath ) ); // Format response for JS client as requested $view->display($response); return true; } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка