diff options
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'); |