-
Notifications
You must be signed in to change notification settings - Fork 15
/
play.php
38 lines (36 loc) · 1.67 KB
/
play.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
<?php
function getrealurl($url){
$header = get_headers($url,1);
if (strpos($header[0],'301') || strpos($header[0],'302')) {
if(is_array($header['Location'])) {
return $header['Location'][count($header['Location'])-1];
}else{
return $header['Location'];
}
}else {
return $url;
}
}
$url= $_GET['url'];
if(strpos($url,'rtmp') !== false){
$url2 = $url;
}else{
$url2 = getrealurl($url);
}
?>
<html>
<head>
<title></title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit"/>
<meta name="force-rendering" content="webkit"/>
<meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
<script src="/ckplayer/js/jquery-3.5.1.min.js"></script>
<script src="/ckplayer/js/liveplayer-lib.min.js"></script>
<link href="/ckplayer/css/LivePlayer.8bb089e5.css" rel="stylesheet"></head>
<body class="skin-blue sidebar-mini fixed" style="margin: 0;">
<style="background:url(https://image.baidu.com/search/down?tn=download&word=download&ie=utf8&fr=detail&url=https%3A%2F%2Ftimgsa.baidu.com%2Ftimg%3Fimage%26quality%3D80%26size%3Db9999_10000%26sec%3D1530206125124%26di%3Db7280999344e87722c750fd9cadbad67%26imgtype%3D0%26src%3Dhttp%253A%252F%252Fi1.hdslb.com%252Fbfs%252Farchive%252Feb6f33eaec8ed36c2885788592a3da0cb492a068.jpg&thumburl=https%3A%2F%2Fss0.bdstatic.com%2F70cFuHSh_Q1YnxGkpoWK1HF6hhy%2Fit%2Fu%3D1305331794%2C3945950120%26fm%3D27%26gp%3D0.jpg); background-size:cover;">
<div id="app"></div>
<script type="text/javascript" src="/ckplayer/js/LivePlayer.8bb089e5.js"></script></body>
</html>