在这句代码的下面加上以下代码:
$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://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>";
}
else
{