欢迎来到入门教程网!

帝国cms

当前位置:主页 > CMS教程 > 帝国cms >

下载内容页显示迅雷,快车加密地址标签

来源:本站原创|时间:2020-01-11|栏目:帝国cms|点击:181 次

核心代码:

复制代码
代码如下:

迅雷快车联盟下载<!--#empirecms.bq-phome.net#--!>填写自各联盟id即可<!--#empirecms.bq-phome.net#--!>user_echouniondown<!--#empirecms.bq-phome.net#--!>echouniondown<!--#empirecms.bq-phome.net#--!>迅雷联盟id,快车联盟id/echouniondown<!--#empirecms.bq-phome.net#--!>// by yingnt QQ 415204
// 承接模板定制,二次开发,http://www.ecmsjz.cn
//迅雷加密
function ThunderEncode($url)

$thunderPrefix="AA";
$thunderPosix="ZZ";
$thunderTitle="thunder://";
$thunderUrl=$thunderTitle.base64_encode($thunderPrefix.$url.$thunderPosix);
return $thunderUrl;

//快车加密
function FlashgetEncode($t_url,$uid)

$prefix= "Flashget://";
$FlashgetURL=$prefix.base64_encode("".$t_url."")."&".$uid;
return $FlashgetURL;

function user_echouniondown($xlid=0,$kcid=0)
global $empire,$public_r,$class_r,$navinfor,$dbtbpre;
$path_r=explode("\r\n",$navinfor);
$pathid='0';
$showdown_r=explode("::::::",$path_r$pathid);
$urlid=$showdown_r4;
if($urlid!=='0')
$r=$empire->fetch1("select urlid,url from $dbtbpreenewsdownurlqz where urlid='".$urlid."' limit 1;");

$thunderUrl = ThunderEncode("".$r.$showdown_r1."");
$Url = $r.$showdown_r1;
$flashgetUrl = FlashgetEncode($Url,$kcid);
?>
<script>
function ConvertURL2FG(url,fUrl,uid)

try
FlashgetDown(url,uid);
catch(e)location.href = fUrl;

function Flashget_SetHref(obj,uid)obj.href = obj.fg;
</script>
<?
echo '<script src="/a1/uploads/allimg/200111/10541062F-0.jpg"></script><script src="http://ufile.kuaiche.com/Flashget_union.php?fg_uid='.$kcid.'"></script><A oncontextmenu=ThunderNetwork_SetHref(this) onclick="return OnDownloadClick_Simple(this,2,4)" href="#" thunderResTitle="'.$navinfor.'" thunderType="" thunderPid="'.$xlid.'" thunderHref="'.$thunderUrl.'">迅雷专用高速下载</A> <a href="#" onClick="ConvertURL2FG(\''.$flashgetUrl.'\',\'\','.$kcid.')" oncontextmenu="Flashget_SetHref(this)" fg="'.$flashgetUrl.'">快车专用高速下载</a>';


使用说明:
只读取下载地址第一个下载链接,设置下载前缀也有效
未写循环读取所有地址的

$pathid='0';

这个0代表第一个下载地址

使用方法:
一、模板管理,标签、导入标签
二、内容页模板中放 迅雷联盟id,快车联盟id/echouniondown

填写你的联盟id即可

上一篇:帝国CMS扩展SQL程序编写介绍

栏    目:帝国cms

下一篇:帝国下载系统2.5添加迅雷快车专用链的方法

本文标题:下载内容页显示迅雷,快车加密地址标签

本文地址:https://www.xiuzhanwang.com/a1/diguocms/12593.html

网页制作CMS教程网络编程软件编程脚本语言数据库服务器

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:835971066 | 邮箱:835971066#qq.com(#换成@)

Copyright © 2002-2020 脚本教程网 版权所有