首页 > IT基础架构 > 网络安全 > 动网论坛在论坛上添加防复制的版权保护
1、在Inc/Dv_ubbcode.asp文件的最后上面一行插入以下代码:
Public Function htmlencode2(str)
dim result
dim i,j,k
if isnull(str) then
htmlencode2=""
exit function
end if
Randomize
k=instr(str,"
2、在Dispbbs.asp文件里找到以下代码,添加红色部分:
If Not (node.attributes.getNamedItem("LockUser").text="2" Or (node.attributes.getNamedItem("isbest").text="1" And Dvbbs.GroupSetting(41)="0") Or node.attributes.getNamedItem("LockUser").text="1") Then
If InStr(Ubblists,",39,") > 0 Then
TopicBody = dv_ubb.Dv_UbbCode(node.attributes.getNamedItem("body").text,node.attributes.getNamedItem("UserGroupID").text,1,0)
TopicBody = htmlencode2(TopicBody)
Else
TopicBody = dv_ubb.Dv_UbbCode(node.attributes.getNamedItem("body").text,node.attributes.getNamedItem("UserGroupID").text,1,1)
TopicBody = htmlencode2(TopicBody)
End If
End If
3、在TopicOther.asp文件里找到以下代码,添加红色部分:
Templist=Replace(Templist,"{$body}",htmlencode2(SimJsReplace(dv_ubb.Dv_UbbCode(SQL(3,i),SQL(4,i),1,1))))
")来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/79126/viewspace-976198/ ,如需转载,请注明出处,否则将追究法律责任。