mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
Update
This commit is contained in:
parent
4041d45aa1
commit
29d2e1d7c4
2 changed files with 9 additions and 8 deletions
|
@ -418,6 +418,9 @@ Options All -Indexes
|
|||
|
||||
|
||||
<IfModule mod_xsendfile.c>
|
||||
# Allow direct access to files in the convertedMP4 directory
|
||||
RewriteRule ^videos/convertedMP4/(.+(\.(mp4|webm|m3u8|mp3|ogg|jpg)))$ /videos/convertedMP4/$1 [L]
|
||||
|
||||
RewriteRule ^videos/([_A-Za-z0-9.-]+/)?([^!#$&'()*+,\/:;=?@[\]]+(\.(mp4|webm|m3u8|mp3|ogg)))$ view/xsendfile.php?file=$2&folder=$1 [QSA]
|
||||
RewriteRule ^videos/cache/download/([_A-Za-z0-9.-]+/)?([^!#$&'()*+,\/:;=?@[\]]+(\.(mp4|webm|m3u8|mp3|ogg)))$ view/xsendfile.php?file=$2&cacheDownload=1 [QSA]
|
||||
</IfModule>
|
||||
|
|
|
@ -48,15 +48,13 @@ class VideosVR360 extends ObjectYPT {
|
|||
if (!static::isTableInstalled()) {
|
||||
return false;
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @var array $global
|
||||
* @var object $global['mysqli']
|
||||
*/
|
||||
$videos_id = intval($videos_id);
|
||||
$sql = "SELECT * FROM ".static::getTableName()." WHERE videos_id = $videos_id LIMIT 1";
|
||||
$res = $global['mysqli']->query($sql);
|
||||
if ($res) {
|
||||
$row = $res->fetch_assoc();
|
||||
} else {
|
||||
$row = false;
|
||||
}
|
||||
return $row;
|
||||
return Video::getVideoLight($videos_id);
|
||||
}
|
||||
|
||||
static function isVR360Enabled($videos_id){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue