-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathindex.php
115 lines (90 loc) · 4.23 KB
/
index.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?php
?>
<!DOCTYPE html>
<html>
<head>
<title>CFPlayer</title>
<meta name="robots" content="noindex">
<link rel="shortcut icon" href="assets/img/favicon.ico" type="image/x-icon" />
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/2.1.0/sweetalert.min.js"></script>
<script type="text/javascript" src="https://content.jwplatform.com/libraries/fgbTqCCh.js"></script>
<script type="text/javascript">jwplayer.key="cLGMn8T20tGvW+0eXPhq4NNmLB57TrscPjd1IyJF84o=";</script>
<style type="text/css" media="screen">html,body{padding:0;margin:0;height:100%}#cf-player{width:100%!important;height:100%!important;overflow:hidden;background-color:#000}</style>
</head>
<body>
<?php
error_reporting(0);
$data = (isset($_GET['data'])) ? $_GET['data'] : '';
if ($data != '') {
include_once 'config.php';
$data = json_decode(decode($data));
$link = (isset($data->link)) ? $data->link : '';
$sub = (isset($data->sub)) ? $data->sub : '';
$poster = (isset($data->poster)) ? $data->poster : '';
$tracks = '';
foreach ($sub as $key => $value) {
$tracks .= '{
file: "'.$value.'",
label: "'.$key.'",
kind: "captions"
},';
}
include_once 'curl.php';
$curl = new cURL();
$sources = '[{"label":"HD","type":"video\/mp4","file":"'.$link.'"}]';
$result = '<div id="cf-player"></div>';
$data = 'var player = jwplayer("cf-player");
player.setup({
sources: '.$sources.',
aspectratio: "16:9",
startparam: "start",
primary: "html5",
autostart: false,
preload: "auto",
aboutlink: "https://fb.com/delta.web.id",
abouttext: "CFPlayer",
image: "'.$poster.'",
logo: {
file: "https://cdn.jsdelivr.net/gh/kiprox/cf-gdplay@master/assets/img/aio-playerlogo.png",
link: "https://fb.com/delta.web.id",
hide: "true",
position: "top-left"
},
skin: {
url: "https://cdn.jsdelivr.net/gh/kiprox/cf-gdplay@master/skins/netplex.css",
name: "Netflix"
},
autoPause: {
viewability: "true",
pauseAds: "true"
},
captions: {
color: "#f3f368",
fontSize: 16,
backgroundOpacity: 0,
fontfamily: "Helvetica",
edgeStyle: "raised"
},
tracks: ['.$tracks.']
});
player.on("setupError", function() {
swal("Server Error!", "Please PM Me to fix it. Thank you!", "error");
});
player.on("error" , function(){
swal("Reload Browser!", "Your Internet Connection Problems", "error");
});';
$packer = new Packer($data, 'Normal', true, false, true);
$packed = $packer->pack();
$result .= '<script type="text/javascript">' . $packed . '</script>';
echo $result;
} else echo 'Empty link!';
$script .= "(function(){'use strict';const devtools={isOpen:false,orientation:undefined};const threshold=160;const emitEvent=(isOpen,orientation)=>{window.dispatchEvent(new CustomEvent('devtoolschange',{detail:{isOpen,orientation}}));};const main=({emitEvents=true}={})=>{const widthThreshold=window.outerWidth-window.innerWidth>threshold;const heightThreshold=window.outerHeight-window.innerHeight>threshold;const orientation=widthThreshold?'vertical':'horizontal';if(!(heightThreshold&&widthThreshold)&&((window.Firebug&&window.Firebug.chrome&&window.Firebug.chrome.isInitialized)||widthThreshold||heightThreshold)){if((!devtools.isOpen||devtools.orientation!==orientation)&&emitEvents){emitEvent(true,orientation);}
devtools.isOpen=true;devtools.orientation=orientation;}else{if(devtools.isOpen&&emitEvents){emitEvent(false,undefined);}
devtools.isOpen=false;devtools.orientation=undefined;}};main({emitEvents:false});setInterval(main,500);if(typeof module!=='undefined'&&module.exports){module.exports=devtools;}else{window.devtools=devtools;}})();
";
$script .= "const redirect = 'https://cdn.jsdelivr.net/gh/kiprox/cf-gdplay@master/assets/img/93656b62-2a01-4649-b2f3-84e9d0dde40a.jpg';if(window.devtools.isOpen){
window.location.href = redirect;}window.addEventListener('devtoolschange', event => {if(event.detail.isOpen){window.location.href = redirect;}});";
?>
</body>
</html>