<?php
$url=$_GET['url'];
//$url = "http://www.56.com/u75/v_MTkwMTIwMjQ.html";
$html = @file_get_contents($url);
preg_match_all("/var _oFlv_o = '([\S|\s]+)'/isU", $html, $matches);
$o = decode56($matches[1][0]);
include_once "json.php"; //当php没有配置支持json的时候有用
$o = str_replace("'", '"', $o);
$o = json_decode($o);
//print_r($o);
$swf = "http://www.56.com/N_" . str_replace(":88", "", str_replace(".56.com", "", $o->img_host)) .
"_/" . str_replace(".56.com", "", $o->URL_host) .
"_/" . $o->URL_pURL .
"_/" . $o->URL_sURL .
"_/" . $o->user_id .
"_/" . $o->URL_URLid .
"_/" . $o->totaltime .
"_/" . $o->effectID .
"_/" . $o->id . ".swf";
$flv = "http://hot-chinacache.56.com/flvdownload/" . $o->URL_pURL .
"/" . $o->URL_sURL .
"/" . $o->user_id .
"@56.com_56flv_" . $o->URL_URLid . ".flv";
echo "FLASH文件路径: <a href=" . $swf.">". $swf."</a>";
echo "<br>";
echo "FLV文件路径:<a href=" . $flv.">". $flv."</a>";
$de = 0;
function decode56($str) {
global $de;
$c1 = "";
$c2 = "";
$c3 = "";
$c4 = "";
$c5 = array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,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,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40, 41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1);
$c6 = charCodeAt($str, 0);
$c7 = "";
$i = "";
$len = "";
$out = "";
if(!$de) {
$de = 1;
$c7 = decode56($str);
$str = substr($c7, $c6);
}
$len = strlen($str);
$i = 1;
$out = "";
while ($i < $len) {
do {
$c1 = $c5[charCodeAt($str, $i++) & 0xff];
}
while($i < $len && $c1 == -1);
if ($c1 == -1) break;
do {
$c2 = $c5[charCodeAt($str, $i++) & 0xff];
}
while ($i < $len && $c2 == -1);
if($c2 == -1) break;
$out .= chr(($c1 << 2) | (($c2 & 0x30) >> 4));
do {
$c3 = charCodeAt($str, $i++) & 0xff;
if($c3 == 61) return $out;
$c3 = $c5[$c3];
}
while ($i < $len && $c3 == -1);
if($c3 == -1) break;
$out .= chr((($c2 & 0XF) << 4) | (($c3 & 0x3C) >> 2));
do {
$c4 = charCodeAt($str, $i++) & 0xff;
if($c4 == 61) return $out;
$c4 = $c5[$c4];
}
while ($i < $len && $c4 == -1);
if ($c4 == -1) break;
$out .= chr((($c3 & 0x03) << 6) | $c4);
}
return $out;
}
function charCodeAt($str, $i){
return ord(substr($str, $i, 1));
}
//该程序仅为技术交流,交流可加QQ群: 1714987
?>
没有合适的资源?快使用搜索试试~ 我知道了~
基于ASP的火车头采集数据库管理程序_多功能插件.zip
共32个文件
asp:30个
php:1个
html:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 7 浏览量
2023-07-14
07:44:43
上传
评论
收藏 58KB ZIP 举报
温馨提示
基于ASP的火车头采集数据库管理程序_多功能插件.zip
资源推荐
资源详情
资源评论
收起资源包目录
基于ASP的火车头采集数据库管理程序_多功能插件.zip (32个子文件)
132687972925202092
baidubz.asp 3KB
update.asp 2KB
main.asp 3KB
baidustar.asp 2KB
replace.asp 4KB
conn.asp 2KB
about.asp 1KB
job.asp 3KB
rules.asp 1KB
sqltest.asp 1015B
baidump3.asp 3KB
downloadedit.asp 1KB
locoy.asp 0B
contents.asp 3KB
Config.asp 206B
style.asp 1KB
download.asp 3KB
baidubzpage.asp 3KB
rename.asp 3KB
Function.asp 2KB
updatesql.asp 790B
index.html 597B
left.asp 2KB
show.asp 1KB
content.asp 3KB
urlcode.asp 14KB
dedestory.asp 4KB
56flv.php 3KB
dbtool.asp 46KB
bbspage.asp 2KB
56flv.asp 967B
sql.asp 5KB
共 32 条
- 1
资源评论
快乐无限出发
- 粉丝: 1153
- 资源: 7299
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功