mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 02:39:46 +02:00
22 lines
No EOL
504 B
PHP
22 lines
No EOL
504 B
PHP
<?php
|
|
require_once '../../videos/configuration.php';
|
|
$p = AVideoPlugin::loadPluginIfEnabled("LiveLinks");
|
|
if(empty($p)){
|
|
forbiddenPage('Plugin is disabled');
|
|
}
|
|
|
|
if (!User::canStream()) {
|
|
forbiddenPage('You cannot stream');
|
|
}
|
|
|
|
if (empty($_REQUEST['url'])) {
|
|
forbiddenPage('URL is empty');
|
|
}
|
|
|
|
$users_id = User::getId();
|
|
|
|
$title = Live::getTitleFromUsers_Id($users_id);
|
|
|
|
$url = LiveLinks::getDinamicVideoLink($_REQUEST['url'], $title, $users_id);
|
|
|
|
header('Location: '.$url); |