diff --git a/index.php b/index.php
index c4808aa..ad8917a 100644
--- a/index.php
+++ b/index.php
@@ -1,6 +1,6 @@
$video_url,
CURLOPT_RETURNTRANSFER => true,
@@ -48,6 +48,20 @@ function downloadVideo($video_url, $geturl = false)
return $filename;
}
+if (isset($_GET['url']) && !empty($_GET['url'])) {
+ if ($_SERVER['HTTP_REFERER'] != "") {
+ $url = $_GET['url'];
+ $name = downloadVideo($url);
+ echo $name;
+ exit();
+ }
+ else
+ {
+ echo "";
+ exit();
+ }
+}
+
function getContent($url, $geturl = false)
{
$ch = curl_init();
@@ -190,7 +204,19 @@ function getContent($url, $geturl = false)
mkdir("user_videos");
}
if ($store_locally){
- $filename = downloadVideo($contentURL);
+ ?>
+
+