仿站咨询QQ:2587483189

手机微信同号:15850888840

dedecms仿站软件模块加入迅雷联盟代码

修改 /plus/download.php 文件

查找

<?php

在它上面加入

<script src="http://pstatic.xunlei.com/js/webThunderDetect.js"></script>

在它下面加入

require("encode.inc");

dedecms仿站查找


else if($open==1){
$link = base64_decode($link);
echo "<script language='javascript'>location=\"$link\";</script>";
exit();

替换为

else if($open==1){
$link = base64_decode($link);
$Url = ("你的网站url".$link);
$thunderUrl = ThunderEncode($Url);
echo "<script>OnDownloadClick('".$thunderUrl."','',location.href,'你的联盟id',2,'')</script>";
exit();
}

把迅雷联盟的 encode.inc 文件 放到 plus 目录

登陆dedecms后台 系统设置 - 软件频道设置 把 附件下载方式 修改为 链接到跳转页面

  • 上一篇:DedeCMS模板制作使用实例系列教程(序)
  • 下一篇:织梦dedecms栏目列表页文章标题加粗
  • 来源:未知//所属分类: dede仿站 /更新时间:2012-11-04
    相关仿站教程