垃圾引用防治补丁以及发送引用修正补丁的自动(6)
if not result then Er=Er&"cls_logAction.asp 文件第三步修改出错!<br>"
End if
if Er="" then
Conn.Execute("ALTER TABLE blog_Info ADD blog_tbKey INT")
Conn.Execute("UPDATE blog_Info Set blog_tbKey=123456")
else
Er=Er&"数据库升级失败。"
End if
if Er="" then
result=replaceStr("common/cache.asp","Dim blog_wapNum,blog_wapImg,blog_wapHTML,blog_wapLogin,blog_wapComment,blog_wap,blog_wapURL","Dim blog_wapNum,blog_wapImg,blog_wapHTML,blog_wapLogin,blog_wapComment,blog_wap,blog_wapURL,blog_tbKey")
if not result then Er=Er&"cache.asp 文件第一步修改出错!<br>"
End if
if Er="" then
result=replaceStr("common/cache.asp","""blog_wapNum,blog_wapImg,blog_wapHTML,blog_wapLogin,blog_wapComment,blog_wap,blog_wapURL"" & _","""blog_wapNum,blog_wapImg,blog_wapHTML,blog_wapLogin,blog_wapComment,blog_wap,blog_wapURL,blog_tbKey"" & _")
if not result then Er=Er&"cache.asp 文件第二步修改出错!<br>"
End if
if Er="" then
result=replaceStr("common/cache.asp","blog_wapURL=CBool(blog_Infos(44,0))'使用 wap 转换文章超链接","blog_wapURL=CBool(blog_Infos(44,0))'使用 wap 转换文章超链接"&vbcrlf&_
" blog_tbKey=int(blog_Infos(45,0))'引用验证Key")
if not result then Er=Er&"cache.asp 文件第三步修改出错!<br>"
End if
If Er<>"" then
response.write Er&"<br>如果未能解决请到<a href='http://www.alonefly.com/blog' target='_blank'>http://www.alonefly.com/blog</a>留言。"
Else
if not DeleteFile("tbspam_update.asp") then
response.write "请手动删除 tbspam_update.asp 文件!<br>"
Else
response.write "tbspam_update.asp 文件已经自动删除!<br>"
End if
内容版权声明:除非注明,否则皆为本站原创文章。