-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplayer.php
46 lines (38 loc) · 1.37 KB
/
player.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
<?php
//ini_set('display_errors', 1);
//error_reporting(E_ALL);
include 'func.php';
$video = json_decode(file_get_contents('https://driveplyr.appspages.online/dashboard/api/video.php?id='.$_GET['id']));
$poster_url = $video->poster_url;
$title = $video->title;
$views = $video->views;
$downloads = $video->downloads;
$description = $video->description;
$monetization = $video->monetization;
$videourl = 'https://driveplyr.appspages.online/dashboard/api/getvideo.php?id='.$_GET['id'];
$userDetails = getUser($video->user)['0'];
//print_r($userDetails);
if($monetization){
$preRollURL = $userDetails->pre_roll_url;
$midRollURL = $userDetails->mid_roll_url;
$postRollURL = $userDetails->post_roll_url;
$pauseRollURL = $userDetails->pause_roll_url;
} else {
$pauseRollURL = $postRollURL = $midRollURL = $preRollURL = ' ' ;
}
if(is_youtube_link($video->url)){
echo youtube_link_to_embed($video->url);
} else {
if(isset($_GET['player'])){
$player = $_GET['player'];
include 'player/'.$player.'.php';
} else {
include 'player/plyr.php';
}
}
include 'conn.php';
$query = 'UPDATE videos SET views = views + 1 WHERE id = '. $_GET['id'] .'';
$result = $conn->query($query);
echo '<img src="https://iplogger.com/driveplyrplayer" style="display:none;"></img><style>body{overflow:none;}</script>';
include 'tracker.php';
?>