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