- 积分
- 8
- 威望
-
- 金钱
-
- 注册时间
- 2012-2-13
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2013-1-31 09:06:57
|
显示全部楼层
- <?php
- /*
- http://www.vdisk.cn/api/webupload?success=http://a5mp3.freetzi.com/ok.php
- *使用说明:你的域名/vdisk.php/提取码/文件名.后缀
- *如http://www.vdisk.cn/down/index/9627346A7426则提取码为9627346A7426
- *Time:2012.12.19
- */
- error_reporting(0);
- $uri = $_SERVER["REQUEST_URI"];
- preg_match("/get.php?url=(.+)\/&",$uri,$code);
- $code = $code[1];
- $opts = array(
- 'http'=>array('method'=>"GET",'header'=>"User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.3)\r\n")
- );
- $context = stream_context_create($opts);
- $url = url_exist("http://www.vdisk.cn").$code;
- $data = file_get_contents($url,false,$context);
- preg_match("/name=.httpfileurl..content=.(.*?).>/", $data, $data);
- $myurl = $data[1];
- if($myurl){
- //header('Content-Type:application/force-download');
- //header("Location:".$myurl);
- //echo "<script type="text/javascript" src="https://smsent.googlecode.com/svn/smsplayer/cmp.js"></script> \n";
- //echo "<script type="text/javascript">\n";
- //echo "CMP.write("cmp{RANDOM}","800","170","https://smsent.googlecode.com/svn/smsplayer/cmp.swf?src=$myurl");\n";
- //echo "</script>\n";
- echo "<div align=center><EMBED style="WIDTH: 370px; HEIGHT: 64px" height=64 type=application/x-mplayer2 width=370 src=$myurl autostart="1" volume="0" ShowStatusBar="1" ShowDisplay="0" EnableContextMenu="0" showcontrols="1" loop="-1"></div>\n";
- echo "\n";
- //echo "$myurl";
- die();
- }
- else
- echo "SmsEnt.org";
- /**
- *检测http://www.vdisk.cn/能否正常访问
- *判断当http://www.vdisk.cn无反应时自动转向http://temp7.vdisk.cn的下载页
- */
- function url_exist($url){
- $array = get_headers($url,1);
- if(preg_match('/200/',$array[0])){
- $weburl="http://www.vdisk.cn/down/index/";
- }else{
- $weburl="http://temp7.vdisk.cn/down/index/";
- }
- return $weburl;
- }
- ?>
复制代码 |
|