[转帖]修复金币帖不用支付金币就能查看的BUG
<p>1.修改了Appraise.asp文件中的“Sub ShowAppraise()”过程,如需详细修改信息,请通过和之前原版的文件进行对比来了解。</p><p>2.修改了inc\\TempLates\\topicpk.xslt文件,下面是该文件的详细修改信息。<br/>(1)把第32行代码</p><div class=\"msgheader\">QUOTE:</div><div class=\"msgborder\"><xsl:value-of select=\"<a href=\"mailto:post/@body\" target=\"_blank\"><font color=\"#004f97\">post/@body</font></a>\" disable-output-escaping=\"yes\"/></div><p>改为以下代码:<br/></p><div class=\"msgheader\">QUOTE:</div><div class=\"msgborder\"><font color=\"#0000ff\"><xsl:choose><br/><xsl:when test=\"</font><a href=\"mailto:post/@parentid\" target=\"_blank\"><font color=\"#0000ff\">post/@parentid</font></a><font color=\"#0000ff\"> =0 and </font><a href=\"mailto:post/@getmoneytype=3\" target=\"_blank\"><font color=\"#0000ff\">post/@getmoneytype=3</font></a><font color=\"#0000ff\">\"><br/><xsl:call-template name=\"checkgetmoney\" /><br/></xsl:when><br/><xsl:otherwise><br/><xsl:value-of select=\"</font><a href=\"mailto:post/@body\" target=\"_blank\"><font color=\"#0000ff\">post/@body</font></a><font color=\"#0000ff\">\" disable-output-escaping=\"yes\"/><br/></xsl:otherwise><br/></xsl:choose></font></div><p><br/>(2)在第173行代码</p><div class=\"msgheader\">QUOTE:</div><div class=\"msgborder\"></xsl:template></div><p>下面插入以下代码:</p><div class=\"msgheader\">QUOTE:</div><div class=\"msgborder\"><p><font color=\"#ff0000\"><xsl:template name=\"checkgetmoney\"><br/><fieldset style=\"border : 1px dotted #ccc;\"><br/><xsl:choose><br/><xsl:when test=\"</font><a href=\"mailto:post/@postuserid=userinfo/@userid\"><legend\" target=\"_blank\"><font color=\"#ff0000\">post/@postuserid=userinfo/@userid\"><legend</font></a><font color=\"#ff0000\"> style=\"text-indent:0px;\">以下内容需要支付 <b><font color=\"red\"><xsl:value-of select=\"</font><a href=\"mailto:post/@getmoney\" target=\"_blank\"><font color=\"#ff0000\">post/@getmoney</font></a><font color=\"#ff0000\">\" /></font></b> 个金币方可查看,这是您发布的贴子。</legend><br/><xsl:value-of select=\"</font><a href=\"mailto:post/@body\" target=\"_blank\"><font color=\"#ff0000\">post/@body</font></a><font color=\"#ff0000\">\" disable-output-escaping=\"yes\"/></xsl:when><br/><xsl:otherwise><xsl:choose><br/><xsl:when test=\"</font><a href=\"mailto:userinfo/@truemaster\" target=\"_blank\"><font color=\"#ff0000\">userinfo/@truemaster</font></a><font color=\"#ff0000\"> =1\"><legend style=\"text-indent:0px;\">以下内容需要支付 <b><font color=\"red\"><xsl:value-of select=\"</font><a href=\"mailto:post/@getmoney\" target=\"_blank\"><font color=\"#ff0000\">post/@getmoney</font></a><font color=\"#ff0000\">\" /></font></b> 个金币方可查看,由于您是工作人员,你可以看到内容。</legend><br/><xsl:value-of select=\"</font><a href=\"mailto:post/@body\" target=\"_blank\"><font color=\"#ff0000\">post/@body</font></a><font color=\"#ff0000\">\" disable-output-escaping=\"yes\"/></xsl:when><br/><xsl:otherwise><xsl:choose><br/><xsl:when test=\"post/postbuyinfo/postbuyusers = </font><a href=\"mailto:userinfo/@username\"><legend\" target=\"_blank\"><font color=\"#ff0000\">userinfo/@username\"><legend</font></a><font color=\"#ff0000\"> style=\"text-indent:0px;\">以下内容需要支付 <b><font color=\"red\"><xsl:value-of select=\"</font><a href=\"mailto:post/@getmoney\" target=\"_blank\"><font color=\"#ff0000\">post/@getmoney</font></a><font color=\"#ff0000\">\" /></font></b> 个金币方可查看,您已经购买。</legend><br/><xsl:value-of select=\"</font><a href=\"mailto:post/@body\" target=\"_blank\"><font color=\"#ff0000\">post/@body</font></a><font color=\"#ff0000\">\" disable-output-escaping=\"yes\"/></xsl:when><br/><xsl:otherwise><br/><xsl:choose><br/><xsl:when test=\"</font><a href=\"mailto:userinfo/@vipgroupuser=1\" target=\"_blank\"><font color=\"#ff0000\">userinfo/@vipgroupuser=1</font></a><font color=\"#ff0000\"> and </font><a href=\"mailto:post/postbuyinfo/@notvipbuy=0\"><legend\" target=\"_blank\"><font color=\"#ff0000\">post/postbuyinfo/@notvipbuy=0\"><legend</font></a><font color=\"#ff0000\"> style=\"text-indent:0px;\">以下内容需要支付 <b><font color=\"red\"><xsl:value-of select=\"</font><a href=\"mailto:post/@getmoney\" target=\"_blank\"><font color=\"#ff0000\">post/@getmoney</font></a><font color=\"#ff0000\">\" /></font></b> 个金币方可查看,由于您是vip用户,并且因为设置了vip用户可免购买查看,您可以直接查看。</legend><br/><xsl:value-of select=\"</font><a href=\"mailto:post/@body\" target=\"_blank\"><font color=\"#ff0000\">post/@body</font></a><font color=\"#ff0000\">\" disable-output-escaping=\"yes\"/></xsl:when><br/><xsl:otherwise><br/><xsl:choose><br/><xsl:when test=\"(</font><a href=\"mailto:post/postbuyinfo/@buyuser\" target=\"_blank\"><font color=\"#ff0000\">post/postbuyinfo/@buyuser</font></a><font color=\"#ff0000\"> =\',,\' or contains(</font><a href=\"mailto:post/postbuyinfo/@buyuser,concat(\',\',userinfo/@username,\',\'\" target=\"_blank\"><font color=\"#ff0000\">post/postbuyinfo/@buyuser,concat(\',\',userinfo/@username,\',\'</font></a><font color=\"#ff0000\">))) and </font><a href=\"mailto:userinfo/@userid\" target=\"_blank\"><font color=\"#ff0000\">userinfo/@userid</font></a><font color=\"#ff0000\"> !=0 \"><legend style=\"text-indent:0px;\">以下内容需要支付 <b><font color=\"red\"><xsl:value-of select=\"</font><a href=\"mailto:post/@getmoney\" target=\"_blank\"><font color=\"#ff0000\">post/@getmoney</font></a><font color=\"#ff0000\">\" /></font></b> 个金币方可查看,您需要购买方可看到内容。</legend><br/><input type=\"button\" value=\"我要查看内容,决定购买\" onclick=\"location.href=\'BuyPost.asp?action=buy&boardid={post/@boardid}&id={post/@topicid}&ReplyID={post/@postid}&PostTable={post/@posttable}\'\"/></xsl:when><br/><xsl:otherwise><br/><legend style=\"text-indent:0px;\">以下内容需要支付 <b><font color=\"red\"><xsl:value-of select=\"</font><a href=\"mailto:post/@getmoney\" target=\"_blank\"><font color=\"#ff0000\">post/@getmoney</font></a><font color=\"#ff0000\">\" /></font></b> 个金币方可查看,您需要购买方可看到内容。</legend><br/><xsl:choose><br/><xsl:when test=\"</font><a href=\"mailto:userinfo/@userid\" target=\"_blank\"><font color=\"#ff0000\">userinfo/@userid</font></a><font color=\"#ff0000\"> !=0\">楼主设置了您不可以购买。</xsl:when><br/><xsl:otherwise>您还未登录,不能购买。</xsl:otherwise><br/></xsl:choose><br/></xsl:otherwise><br/></xsl:choose><br/></xsl:otherwise><br/></xsl:choose><br/></xsl:otherwise><br/></xsl:choose><br/></xsl:otherwise><br/></xsl:choose><br/></xsl:otherwise><br/></xsl:choose><br/></fieldset><br/></xsl:template></font></p></div><br/>
页:
[1]