• [织梦吧]唯一域名:www.dedecms8.com,织梦DedeCMS学习平台.

当前位置: > DedeCMS视频 >

如何给DEDECMS5.5添加迅雷专用链接(5)

来源: www.dedecms8.com 编辑:织梦吧 时间:2011-01-30点击:

{
$thunderUrl=$thunderTitle.base64_encode($thunderPrefix.$link.$thunderPosix);
}
else
{
$thunderUrl=$thunderTitle.base64_encode($thunderPrefix."http://localhost:6070/dedecms55/".$link.$thunderPosix);
}
echo "<script src='http://pstatic.xunlei.com/js/webThunderDetect.js'></script><script>OnDownloadClick('".$thunderUrl."','',location.href,'92922',2,'')</script>";
echo "<script>window.opener=null;window.close();</script>";

  B) 找到以下代码:

  header("location:{$softUrl}");

  把这句代码替换成以下代码:

  $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://localhost:6070/dedecms55/".$softUrl.$thunderPosix);

About D8

  • ©2014 织梦吧(d8) DedeCMS学习交流平台
  • 唯一网址 www.DedeCMS8.com 网站地图
  • 联系我们 1170734538@qq.com ,  QQ