1 Star 0 Fork 1

缘维 / you2php

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
link.php 495 Bytes
一键复制 编辑 Web IDE 原始数据 按行查看 历史
1 提交于 2018-01-05 19:04 . no message
<?php
include('./lib.php');
if(!is_array($_GET)&&count($_GET)>0){
exit();
}
$str=strdecode($_GET['u'],EN2DEKEY);
if(stripos($str,'youtu.be')!==false || stripos($str,'watch?v=')!==false ){
preg_match("/^(?:http(?:s)?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com\/(?:(?:watch)?\?(?:.*&)?v(?:i)?=|(?:embed|v|vi|user)\/))([^\?&\"'>]+)/", $str, $matches);
$str='./watch.php?v='.$matches[1];
header("Location:$str");
}else{
header("Location:$str");
}
?>
PHP
1
https://gitee.com/xiugan/you2php.git
git@gitee.com:xiugan/you2php.git
xiugan
you2php
you2php
master

搜索帮助

14c37bed 8189591 565d56ea 8189591