From a3dfbe8bf58b52f17823c63a69288daf4cdc5b45 Mon Sep 17 00:00:00 2001 From: fred Date: Tue, 21 Sep 2021 02:42:13 +0200 Subject: [PATCH] $_SERVER['SERVER_NAME'] --- www/boris/film.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/boris/film.php b/www/boris/film.php index 7b36928..3790aeb 100644 --- a/www/boris/film.php +++ b/www/boris/film.php @@ -17,8 +17,8 @@ foreach ($videos as $v) { list($a, $youtubeID, $c, $videoName, $e, $src, $h, $quality, $videoURI) = explode(";", $v); - $videoURL = 'https://'. HOST. $videoURI; - $videoEco = 'https://'. HOST. '/ipns/' . $h; + $videoURL = 'https://'. $_SERVER['SERVER_NAME']. $videoURI; + $videoEco = 'https://'. $_SERVER['SERVER_NAME']. '/ipns/' . $h; $mimeType = guessTypeFromFilename($videoURI);