|
一、主要变化:
1、修改了换房时非会员可以进入会员室的BUG。
2、自动出题采用随机顺序功能。
3、认证数据包可以在管理区动态调入,不再需要重新运行程序。
4、“/保护”功能可以通过INI设置为非会员也可使用。
二、需要修改的地方:
1、chat.ini 中[chat]段里增加如下内容:
[B];是否仅会员享受保护功能,默认为1(是)
ProtectOnlyMember = 0[/B]
2、管理区的 menu.htm 文件增加链接:
[B]<a href="LoadDat.xsl" title="把数据包载入程序内存中,只有在重新认证后才使用">[载入认证]</a><br>[/B]
3、聊天室增加支持 GET 方法登录:
格式:http://主机域名IP:端口/LoginChat.xsl
参考如下 menu.htm 中的 JavaScript 代码:
<script language="JavaScript">
BaseURL = "http://" + this.location.hostname + ":5050/";
var JhWin = "xajh50";
document.onmousedown=Click;
WinStatus='Status=yes,scrollbars=yes,resizable=yes,width=500,height=350'
gameStatus='Status=yes,Scrollbars=no,resizable=yes,width=600,height=400'
function Click(){if(event.button==2){WuPin()}}
function WuPin(){if(confirm("是否显示自己的物品?","江湖提示")){WinOpen('WuPin.xsl');}}
function PanShi(){if(confirm("是否要背叛你的师傅?需要使用一个神豆", "江湖提示")){WinOpen('PanShi.xsl')}}
function GongZi(){if(confirm("掌门每周只能领一次工资,每次要交手续费XXX两", "江湖提示")){WinOpen('GongZi.xsl')}}
function PerGongZi(){if(confirm("每周只能领一次个人工资,每次要交手续费XXX两", "江湖提示")){WinOpen('PerGongZi.xsl')}}
function LiKai(){if(confirm("是否离开门派?","江湖提示")){WinOpen('LiPai.xsl')}}
function LiFen(){if(confirm("真的要离婚吗?","江湖提示")){WinOpen('LiFen.xsl')}}
function BootMe(){if(confirm("真的要踢出自己?","江湖提示")){WinOpen('BootMe.xsl')}}
function WinOpen(URL){window.open(BaseURL + URL,'',WinStatus)}
function gameOpen(URL){window.open(URL,'game',gameStatus)}
function Login(port){window.open("http://"+this.location.hostname + ":" + port +"/LoginChat.xsl", JhWin, "Status=yes,toolbar=no,location=no,directories=no,menubar=no,resizable=yes");}
</script>
|
|