-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.php
executable file
·37 lines (32 loc) · 1.35 KB
/
config.php
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
<?php
/**
* Author: Hidden
* Date: Mon Aug 23 22:25:15 CST 2010
*
*/
$_IMC = array();
$_IMC["version"] = "@VERSION";//版本
$_IMC["enable"] = true;//开启webim
$_IMC["domain"] = "";//网站注册域名
$_IMC["apikey"] = "";//网站注册apikey
$_IMC["host"] = "webim20.cn";//im服务器
$_IMC["port"] = 8000;//服务端接口端口
$_IMC["theme"] = "base";//界面主题,根据webim/static/themes/目录内容选择
$_IMC["local"] = "zh-CN";//本地语言,扩展请修改webim/static/i18n/内容
$_IMC["show_realname"] = false;//是否显示好友真实姓名
$_IMC["disable_room"] = false;//禁止群组聊天
$_IMC["disable_chatlink"] = false;//禁止页面名字旁边的聊天链接
$_IMC["enable_shortcut"] = false;//支持工具栏快捷方式
$_IMC["emot"] = "default";//表情主题
$_IMC["opacity"] = 80;//toolbar背景透明度设置
$_IMC['disable_menu'] = false; //隐藏工具条
$_IMC['enable_login'] = false; //允许未登录时显示IM,并可从im登录
$_IMC["host_from_domain"] = false; //设定im服务器为访问域名,当独立部署时,公网内网同时访问时用
$query = DB::query("SELECT v.* FROM ".DB::table('common_pluginvar')." v,
".DB::table('common_plugin')." p
WHERE p.identifier='webim' AND v.pluginid = p.pluginid");
while($var = DB::fetch($query)){
if(!empty($var['value'])){
$_IMC[$var['variable']] = $var['value'];
}
}