mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 02:09:22 +02:00
23 lines
No EOL
649 B
PHP
23 lines
No EOL
649 B
PHP
<?php
|
|
use Ratchet\Server\IoServer;
|
|
use Ratchet\Http\HttpServer;
|
|
use Ratchet\WebSocket\WsServer;
|
|
use Socket\Message;
|
|
//use React\Socket\Server as Reactor;
|
|
|
|
require_once dirname(__FILE__) . '/../../videos/configuration.php';
|
|
require_once $global['systemRootPath'] . 'plugin/YPTSocket/Message.php';
|
|
require_once $global['systemRootPath'] . 'objects/autoload.php';
|
|
|
|
if (!isCommandLineInterface()) {
|
|
die("Command line only");
|
|
}
|
|
|
|
$SocketDataObj = AVideoPlugin::getDataObject("YPTSocket");
|
|
$SocketDataObj->serverVersion = YPTSocket::getServerVersion();
|
|
|
|
ob_end_flush();
|
|
_mysql_close();
|
|
session_write_close();
|
|
|
|
killProcessOnPort(); |