diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 18 |
1 files changed, 1 insertions, 17 deletions
@@ -50,6 +50,7 @@ if (empty($_GET['link'])){ $video_decode->assign("formatdrm", $formatdrm); // Base link + $video_decode->assign("local_url", $local_url); $video_decode->assign("baselink", $baselink); /* ---- ---- CSS ---- ---- */ @@ -63,22 +64,5 @@ if (empty($_GET['link'])){ $video_decode->assign('javascript', array('plyr' => 'templates/libs/plyr/plyr.min.js') ); - /* ---- ---- Embed ---- ---- */ - if (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") { - $pro = 'https'; - } else { - $pro = 'http'; - } - - $subject = $pro."://".$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME']; - - // Local URL - $local_url = preg_replace('/index.php/', '', $subject); - - // Assign variables - $video_decode->assign("local_url", $local_url); - - /* ---- ---- END ---- --- */ - $video_decode->display('templates/video.tpl'); } |