aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php18
1 files changed, 1 insertions, 17 deletions
diff --git a/index.php b/index.php
index b847e75..95f5817 100644
--- a/index.php
+++ b/index.php
@@ -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');
}