织梦 DEDE 加迅雷下载链接 织梦dedecms5.5 5.6 5.7加迅雷专用链的操作说明文档
此版本实用于:dedecms5.5 5.6 5.7 5.7sp1
建议:部分迅雷化下载链接
程序演示地址: http://www.ejdz.cn/plus/download.php?open=0&aid=83418&cid=3
1.部分迅雷化:是保留你的本地资源下载链接,在你的本地资源下载链接的旁边单独添加一个迅雷专用链接。
2.部分迅雷化,需要修改templets\system\channel_downlinks.htm和\plus\download.php这2个文件,打开这个templets\system\channel_downlinks.htm文件,找到以下代码:
<li><a href="~link~" target="_blank">~server~</a></li>
在这句代码的前面加上以下代码:
<li><a target=_blank href='~link~&flag=1'><font color=red>迅雷专用高速下载</font></a></li>
3.templets\system\channel_downlinks.htm这个文件修改完毕,详情请查看附件里面的channel_downlinks.htm这个文件。
4.打开\plus\download.php这个文件:
A) 找到以下代码:
require_once(DEDEINC."/channelunit.class.php");
在这句代码的下面加上以下代码:
$flag=(int)$_GET['flag'];
B) 找到以下代码:
header("location:$link");
把这句代码替换成以下代码:
if ($flag == 1)
{
$thunderPrefix="AA";
$thunderPosix="ZZ";
$thunderTitle="thunder://";
$name = $link;
$pan = "://";
$con = explode($pan,$name);
if (count($con)>1)
$thunderUrl=$thunderTitle.base64_encode($thunderPrefix.$link.$thunderPosix);
}
else
$thunderUrl=$thunderTitle.base64_encode($thunderPrefix."http://www.ejdz.cn/".$link.$thunderPosix);
echo "<script src='http://pstatic.xunlei.com/js/webThunderDetect.js'></script><script>OnDownloadClick('".$thunderUrl."','',location.href,'46607',2,'')</script>";
echo "<script>window.opener=null;window.close();</script>";
C) 找到以下代码:
header("location:{$softUrl}");
$name = $softUrl;
$thunderUrl=$thunderTitle.base64_encode($thunderPrefix.$softUrl.$thunderPosix);
$thunderUrl=$thunderTitle.base64_encode($thunderPrefix."http://www.ejdz.cn/".$softUrl.$thunderPosix);
注意:
1)把以上所有代码里面的“http://WWW.ejdz.cn/”这个全部修改成你自己的域名。
5.download.php这个文件修改完毕,详情请查看附件里面的download.php文件。
6.覆盖说明:
1)用修改好的download.php这个文件覆盖你网站管理系统里面的\plus\download.php这个文件。
2)用修改好的channel_downlinks.htm这个文件覆盖系统里面的templets\system\channel_downlinks.htm这个文件。
3)覆盖后全部重新生成一下就可以了。
暂无
简体中文
全年龄对象
0KB
免费
否
查看权限
暂无评论,期待你的妙语连珠
预约成功!,
到时你将收到我们的短信提醒。
暂无数据
渝ICP备20008086号-17 渝公网安备50010702505138号
ejdz2023#163.com(#替换为@) QQ:2368208271
暂无权限数据
织梦 DEDE 加迅雷下载链接 织梦dedecms5.5 5.6 5.7加迅雷专用链的操作说明文档
应用简介
织梦 DEDE 加迅雷下载链接 织梦dedecms5.5 5.6 5.7加迅雷专用链的操作说明文档
此版本实用于:dedecms5.5 5.6 5.7 5.7sp1
建议:部分迅雷化下载链接
程序演示地址: http://www.ejdz.cn/plus/download.php?open=0&aid=83418&cid=3
1.部分迅雷化:是保留你的本地资源下载链接,在你的本地资源下载链接的旁边单独添加一个迅雷专用链接。
2.部分迅雷化,需要修改templets\system\channel_downlinks.htm和\plus\download.php这2个文件,打开这个templets\system\channel_downlinks.htm文件,找到以下代码:
<li><a href="~link~" target="_blank">~server~</a></li>
在这句代码的前面加上以下代码:
<li><a target=_blank href='~link~&flag=1'><font color=red>迅雷专用高速下载</font></a></li>
3.templets\system\channel_downlinks.htm这个文件修改完毕,详情请查看附件里面的channel_downlinks.htm这个文件。
4.打开\plus\download.php这个文件:
A) 找到以下代码:
require_once(DEDEINC."/channelunit.class.php");
在这句代码的下面加上以下代码:
$flag=(int)$_GET['flag'];
B) 找到以下代码:
header("location:$link");
把这句代码替换成以下代码:
if ($flag == 1)
{
$thunderPrefix="AA";
$thunderPosix="ZZ";
$thunderTitle="thunder://";
$name = $link;
$pan = "://";
$con = explode($pan,$name);
if (count($con)>1)
{
$thunderUrl=$thunderTitle.base64_encode($thunderPrefix.$link.$thunderPosix);
}
else
{
$thunderUrl=$thunderTitle.base64_encode($thunderPrefix."http://www.ejdz.cn/".$link.$thunderPosix);
}
echo "<script src='http://pstatic.xunlei.com/js/webThunderDetect.js'></script><script>OnDownloadClick('".$thunderUrl."','',location.href,'46607',2,'')</script>";
echo "<script>window.opener=null;window.close();</script>";
}
else
{
header("location:$link");
}
C) 找到以下代码:
header("location:{$softUrl}");
把这句代码替换成以下代码:
if ($flag == 1)
{
$thunderPrefix="AA";
$thunderPosix="ZZ";
$thunderTitle="thunder://";
$name = $softUrl;
$pan = "://";
$con = explode($pan,$name);
if (count($con)>1)
{
$thunderUrl=$thunderTitle.base64_encode($thunderPrefix.$softUrl.$thunderPosix);
}
else
{
$thunderUrl=$thunderTitle.base64_encode($thunderPrefix."http://www.ejdz.cn/".$softUrl.$thunderPosix);
}
echo "<script src='http://pstatic.xunlei.com/js/webThunderDetect.js'></script><script>OnDownloadClick('".$thunderUrl."','',location.href,'46607',2,'')</script>";
}
else
{
header("location:{$softUrl}");
}
注意:
1)把以上所有代码里面的“http://WWW.ejdz.cn/”这个全部修改成你自己的域名。
5.download.php这个文件修改完毕,详情请查看附件里面的download.php文件。
6.覆盖说明:
1)用修改好的download.php这个文件覆盖你网站管理系统里面的\plus\download.php这个文件。
2)用修改好的channel_downlinks.htm这个文件覆盖系统里面的templets\system\channel_downlinks.htm这个文件。
3)覆盖后全部重新生成一下就可以了。
温馨提示:易家知识网压缩包默认解压密码: 320723。详细信息
暂无
暂无
简体中文
全年龄对象
暂无
0KB
免费
否
查看权限
评论(0)
暂无评论,期待你的妙语连珠
预约成功!,
到时你将收到我们的短信提醒。
相似应用
最新收录
应用文章
暂无数据