Config.jsp
2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<jsp:useBean id="MessagerSettingCominfo" class="weaver.messager.MessagerSettingCominfo" scope="page" />
<%@ page import="weaver.general.Util" %>
<script>
//用以Messager的配置信息
var wmServer="<%=MessagerSettingCominfo.getSettingValueByName("msgServerAddr")%>";//222.66.55.190
//var wmServer="zengdongping"
var Config={
SITENAME:wmServer, //资源显示名
//SITENAME:"222.66.55.190",
JABBERSERVER:wmServer, //主机名
//JABBERSERVER:"222.66.55.190", //主机名
DEBUG_LVL:2, //默认调试级别 0..4 (4 = very noisy)
DEFAULTPRIORITY:10,//默认人连接优先权
DEFAULTCONFERENCEROOM : "talks",
DEFAULTCONFERENCESERVER: "conference."+wmServer,
HTTPBASE: "/JHB/",
AlertFlag:"|[|(alert)|]|",
FocusFlag:"|[|(focus)|]|",
BlurFlag:"|[|(blur)|]|",
OnlineFlag:"|[|(online)|]|",
//TIMERVAL: "<%=Util.getIntValue(MessagerSettingCominfo.getSettingValueByName("timerval"))*1000%>",
TIMERVAL: "<%=300*1000%>",
TIMERVALFORMSG:"<%=60*1000%>",
TIMERVALFORRECONNECT:"<%=5*1000%>",
MessageWindowHeight:'400',
MessageWindowMaxHeight:'400',
MessageWindowWidth:'550',
ChatWindowHeight:'150',
ChatWindowWidth:'340',
MaxUploadImageSize:"<%=MessagerSettingCominfo.getSettingValueByName("MaxUploadImageSize")%>",
initOnlineUsrNumMax:50,
target:'current', //parent current
ObjectWindow:window,
accSaveDir:"<%=MessagerSettingCominfo.getSettingValueByName("accSaveDir")%>",
//msgRecordInterval:"<%=MessagerSettingCominfo.getSettingValueByName("msgRecordInterval")%>",
//USE_DEBUGJID:<%=MessagerSettingCominfo.getSettingValueByName("USE_DEBUGJID").equalsIgnoreCase("true")%>, // 此属性为Ture是才能使用DEBUGJID用户得到调试信息
//DEBUGJID:"<%=MessagerSettingCominfo.getSettingValueByName("DebugLoginid")%>@"+wmServer // 能得到调试信息的用户
canSendSms:<%if(!HrmUserVarify.checkUserRight("CreateSMS:View", user)){%>false<%}else{%>true<%}%>, //能否发送短信
msgRecordInterval:15,
USE_DEBUGJID:true, // 此属性为Ture是才能使用DEBUGJID用户得到调试信息
DEBUGJID:"zdp@"+wmServer // 能得到调试信息的用户
}
</script>