Skip to content

Commit 31dfa2e

Browse files
author
a
committed
no message
1 parent 8643ead commit 31dfa2e

4 files changed

Lines changed: 18 additions & 18 deletions

File tree

embed/index.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
<?php
2-
if(!is_array($_GET)&&count($_GET)>0){ header("Location: ../error.php"); exit();}
3-
include("../lib.php");
2+
if(!is_array($_GET)&&count($_GET)>0){ header("Location: ../error.php"); exit();} include("../lib.php");
43
?>
54
<!DOCTYPE html>
65
<html>
6+
77
<head>
88
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
9+
<base href="<?php echo trim(Root_part()," embed/ ") ?>/" />
910
<link href="//cdn.bootcss.com/video.js/5.20.4/alt/video-js-cdn.min.css" rel="stylesheet" />
10-
<script src="proxy.php?url=https%3A%2F%2Flibs.cdnjs.net%2Fvideo.js%2F5.20.4%2Fvideo.min.js"></script>
11-
<script type="text/javascript" src="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Cspan+class%3D"x x-first x-last">../inc/4.js"></script>
12-
<link rel="stylesheet" href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Cspan+class%3D"x x-first x-last">../inc/theme.css" type="text/css">
11+
<script src="proxy.php?url=https%3A%2F%2Flibs.cdnjs.net%2Fvideo.js%2F5.20.4%2Fvideo.min.js"></script>
12+
<script type="text/javascript" src="proxy.php?url=https%3A%2F%2Fgithub.com%2F.%2Finc%2F4.js"></script>
13+
<link rel="stylesheet" href="proxy.php?url=https%3A%2F%2Fgithub.com%2F.%2Finc%2Ftheme.css" type="text/css">
1314
</head>
15+
1416
<body>
15-
<div style="max-width:100%;height:auto">
16-
<video id="video1" class="video-js vjs-fluid" loop="loop" width="100%" preload="auto" webkit-playsinline="true" playsinline="true" x-webkit-airplay="true" controls="controls" controls preload="auto" width="100%" poster="../thumbnail.php?type=maxresdefault&vid=<?php echo $_GET['v'] ?>" >
17-
<source src="../vs.php?vv=<?php echo $_GET['v'] ?>&quality=720" type='video/mp4' res="720" label='720P'/>
18-
<source src="../vs.php?vv=<?php echo $_GET['v'] ?>&quality=360" type='video/mp4' res="360" label='360P' />
19-
<?php get_timedtext($_GET['v']);?>
20-
</video>
21-
<script>videojs('video1').videoJsResolutionSwitcher();</script>
22-
</div>
23-
17+
<div style="max-width:100%;height:auto">
18+
<?php html5_player($_GET[ 'v']); ?>
19+
<script>
20+
videojs('h5player').videoJsResolutionSwitcher();
21+
</script>
22+
</div>
2423
</body>
24+
2525
</html>

install.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ function Check_allow_urlopen(){
310310
if (get_cfg_var('allow_url_fopen')) {
311311
return '<th class="text-gray">支持</th>';
312312
} else {
313-
313+
$ch = curl_init();
314314
return '<th class="text-dot">不支持,请联系服务商或自行启用</th>';
315315
}
316316
}

lib.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Youtube Proxy
44
* Simple Youtube PHP Proxy Server
55
* @author ZXQ
6-
* @version V4.0
6+
* @version V1.2
77
* @description 核心操作函数集合
88
*/
99

@@ -430,7 +430,7 @@ function shareit($id,$title='免翻墙Youtube镜像'){
430430
<div class='form-group'><div class='d-inline-block h6 pt-3 col-12'>
431431
分享代码:
432432
</div>
433-
<textarea style='resize:none;height: auto' class='form-control d-inline align-middle col-12 icoys icontext' id='inputs' type='text' rows='5' placeholder='Default input'><iframe height=498 width=510 src=&quot;".ROOT_PART."embed/?v=".$id.";&quot; frameborder=0 &quot;allowfullscreen&quot;></iframe></textarea>
433+
<textarea style='resize:none;height: auto' class='form-control d-inline align-middle col-12 icoys icontext' id='inputs' type='text' rows='5' placeholder='Default input'><iframe height=498 width=510 src=&quot;".ROOT_PART."embed/?v=".$id."&quot; frameborder=0 &quot;allowfullscreen&quot;></iframe></textarea>
434434
435435
<button type='submit' class='btn btn-primary align-middle col-12 mt-2' onclick='copytext1()'>复制</button></div>";
436436

watch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
<i class="fa fa-share-square-o pr-1"></i>分享
8282
</span>
8383
<span class="pr-1">
84-
<a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F.%2Fcontent.php%3Fcont%3Dvideo%26amp%3Bv%3D%3Cspan+class%3D"pl-ent"><?php echo $videodata['items']['0']['id'] ?>" target="_blank" class="fsize2"><i class="fa fa-share-square-o pr-1"></i>下载</a>
84+
<a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F.%2Fcontent.php%3Fcont%3Dvideo%26amp%3Bv%3D%3Cspan+class%3D"pl-ent"><?php echo $videodata['items']['0']['id'] ?>" target="_blank" class="fsize2"><i class="fa fa-arrow-down pr-1"></i>下载</a>
8585
</span>
8686
</span>
8787
</div>

0 commit comments

Comments
 (0)