diff options
author | Jesús <heckyel@hyperbola.info> | 2019-05-28 16:54:24 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2019-05-28 16:54:24 -0500 |
commit | e6395a42ecfb3569777e20c150954b8803d797c2 (patch) | |
tree | 07c3bbd6104b490c3d98c8bb78e402a2e65959db /index.php | |
parent | 11d035d1d630ffb753267140641eb8fa3448f882 (diff) | |
download | ytlibre-e6395a42ecfb3569777e20c150954b8803d797c2.tar.lz ytlibre-e6395a42ecfb3569777e20c150954b8803d797c2.tar.xz ytlibre-e6395a42ecfb3569777e20c150954b8803d797c2.zip |
Added play with mpv
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 14 |
1 files changed, 4 insertions, 10 deletions
@@ -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'); |