aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-05-28 16:54:24 -0500
committerJesús <heckyel@hyperbola.info>2019-05-28 16:54:24 -0500
commite6395a42ecfb3569777e20c150954b8803d797c2 (patch)
tree07c3bbd6104b490c3d98c8bb78e402a2e65959db /index.php
parent11d035d1d630ffb753267140641eb8fa3448f882 (diff)
downloadytlibre-e6395a42ecfb3569777e20c150954b8803d797c2.tar.lz
ytlibre-e6395a42ecfb3569777e20c150954b8803d797c2.tar.xz
ytlibre-e6395a42ecfb3569777e20c150954b8803d797c2.zip
Added play with mpv
Diffstat (limited to 'index.php')
-rw-r--r--index.php14
1 files changed, 4 insertions, 10 deletions
diff --git a/index.php b/index.php
index 0181cb8..b847e75 100644
--- a/index.php
+++ b/index.php
@@ -72,18 +72,12 @@ if (empty($_GET['link'])){
$subject = $pro."://".$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME'];
- $pattern = array();
- $pattern[0] = '/index.php/';
- $substitution = array();
- $substitution[0] = 'embed?link=';
+ // Local URL
+ $local_url = preg_replace('/index.php/', '', $subject);
- $embed_url = preg_replace($pattern, $substitution, $subject);
+ // Assign variables
+ $video_decode->assign("local_url", $local_url);
- $decode_url_embed = "<iframe width='560' height='315' src='".$embed_url.$baselink."' frameborder='0' scrolling='no'></iframe>";
-
- $current_url = htmlentities($decode_url_embed);
-
- $video_decode->assign("current_url", $current_url);
/* ---- ---- END ---- --- */
$video_decode->display('templates/video.tpl');