kingcms是一款轻量级的小型cms,作者大s(sin.cs)声称是完全免费的开源程序,不过好像要遵循一个什么开源项目的标准,这个俺就不懂了。所以使用kingcms有个要求就是不能去掉界面上的一些版权信息,这可是kingcms官方作者要求的哦。
但用kingcms做站的好多朋友都拿kingcms给企业做站,或者出于其它目的,很不愿意后台显示着kingcms版权信息,这样给客户造成一种。。。的感觉,总之是很不爽,那么就想尽办法想去掉或者修改kingcms的版权信息。
俺并不提倡大家去掉kingcms的版权信息,呵呵,既然用了人家的程序,就应该给人家留名嘛,下面的方法可以去掉kingcms后台页面最下面显示的一行“Copyright © KingCMS.com All Rights Reserved.”的字样,这里仅仅说的是去掉kingcms版权信息显示,不是修改哦,要修改的话,可以联系作者大s或者联系我,哈哈,如果你的企图比较合理,可以考虑,不过最好给大s缴纳版费去。希望大s不要怪我。
去掉kingcms后台最下面的版权信息比较简单(不过不好发现)。首先找到 /page/system/fun.asp 这个文件,搜索 if r_end then termi 这句代码,会找到如下一段代码
'class_terminate
private sub class_terminate()
on error resume next
if r_end then termi
if r_end and r_is then zukye
if isobject(conn) then
conn.close
set conn=nothing
end if
set r_doc=nothing
if err.number<>0 then err.clear
end sub
将该代码中 if r_end then termi 和 if r_end and r_is then zukye 两句注释掉,或者直接删掉,修改后代码如下
'class_terminate
private sub class_terminate()
on error resume next
' if r_end then termi
' if r_end and r_is then zukye
if isobject(conn) then
conn.close
set conn=nothing
end if
set r_doc=nothing
if err.number<>0 then err.clear
end sub
如此即可去掉kingcms后台的版权信息了。
再重复一遍,仅仅交流一下,建议大家还是不要去掉或修改kingcms版权信息,或者找作者 sin.cs缴纳版费然后修改。
4月16日 续,可能由于本文的缘故,俺已经预料之中的被kingcms的所谓老大sin.cs踢出kingcms QQ群,不过也可能不是由于本文原因把。图片如下,留作纪念,呵呵。
