-
Notifications
You must be signed in to change notification settings - Fork 2
/
MovieBazLeecher-v2.php
81 lines (63 loc) · 2.51 KB
/
MovieBazLeecher-v2.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
#~~ Developer : AGC007
#~~~~~~~ Var Set ~~~~~~~#
define('Account_Key' ,'c2FoYXJfbTYzQHlhaG9vLmNvbTpkYXJ0YW5pYW4=');
define('Account_Cookie' ,'PHPSESSID=2frjcc03irpgrldbpqapple5j6');
#~~~~~~~ Var Set ~~~~~~~#
#--------------- Get Url ---------------#
if(isset($_REQUEST['link']))
{
$Link = $_REQUEST['link'];
$Link_Url = $_REQUEST['url'];
$Full_Url = $Link."&url=".$Link_Url;
MovieBazLeecher_v2(Account_Key,Account_Cookie,$Full_Url);
}
#--------------- Get Url ---------------#
#--------------- MovieBaz Leecher ---------------#
function MovieBazLeecher_v2($Account_Key , $Account_Cooike , $Movie_Url)
{
#``````````` HEADER ```````````#
$HEADER = array(
'authorization: Basic '.$Account_Key,
'cookie: '.$Account_Cooike,
'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 Edg/127.0.0.0',
);
#``````````` HEADER ```````````#
#--------------- Get Request ---------------#
$REQ_MOVIE_DATA = curl_init();
curl_setopt($REQ_MOVIE_DATA, CURLOPT_URL, $Movie_Url);
curl_setopt($REQ_MOVIE_DATA, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($REQ_MOVIE_DATA, CURLOPT_RETURNTRANSFER, true);
curl_setopt($REQ_MOVIE_DATA, CURLOPT_FOLLOWLOCATION, false);
//curl_setopt($REQ_MOVIE_DATA, CURLOPT_POSTFIELDS, "{}");
//curl_setopt($REQ_MOVIE_DATA, CURLOPT_HEADER, true);
curl_setopt($REQ_MOVIE_DATA, CURLOPT_HTTPHEADER, $HEADER);
curl_setopt($REQ_MOVIE_DATA, CURLOPT_TIMEOUT, 30);
echo $RES_MOVIE_DATA_RES = curl_exec($REQ_MOVIE_DATA);
#--------------- Get Request ---------------#
if(!strstr($RES_MOVIE_DATA_RES, 'login')) // Check Subscribe
{
#--------------- Get_Data_Movie ---------------#
$MOVIE_DOWN_LINK = curl_getinfo($REQ_MOVIE_DATA, CURLINFO_REDIRECT_URL);
#~~~~ Movie Json ~~~~#
echo(json_encode(array(
'code' => http_response_code(),
'message' => 'success' ,
'developer' => 'AGC007',
'dl' => array(
'DownloadLink' => $MOVIE_DOWN_LINK ,
),
'Developer' => "AGC007"
)));
#~~~~ Movie Json ~~~~#
}
else {
echo(json_encode(array(
'message' => 'Account Login Error' ,
'developer' => 'AGC007',
)));
}
}
#~~ Developer : AGC007
#--------------- MovieBaz Leecher ---------------#
?>