<!--#include file="inc_const.asp"-->
<%
初始化所有的系统参数
Set Conn=Server.CreateObject("ADODB.Connection")
conn.open Application( ConstStr & "_connstr")
conn.execute "insert into sysparam (alias,guidetxt,body) values ('version','聊天室版本','3.0')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('serial','序列号','cssb-2001-000001')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('copyright','版权','传说水吧[Power by Free]')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('user','授权用户','大家')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('homepageURL','技术支持地址','http://')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('hour24','最近24小时内人气统计','0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('superlevel','最高用户级别','15')"

conn.execute "insert into sysparam (alias,guidetxt,body) values ('opendate','聊天室开放时间','2001年8月9日')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('visitor','访问人数','1000')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('logogif','聊天室图案地址','data/x04.jpg')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('ad1url','字幕广告联接的地址[不填或为http://则自动不作用，多个地址用“空格$$$空格”分开]','default.asp $$$ default.asp $$$ default.asp $$$ default.asp $$$ default.asp $$$ default.asp')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('ad1str','字幕广告联接的字幕[多个用“空格$$$空格”分开，个数必须和地址个数完全一致]','欢迎光临传说水吧 $$$ 超酷的动作，自定义界面 $$$ 独特的投票管理方式 $$$ 不一样的感受，全新的体念 $$$ 这里有你我最美丽的传说 $$$ 欢迎光临传说水吧')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('ad2url','广告条2联接的地址[不填或为http://则自动不作用]','default.asp')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('ad2gif','广告条2联接的图象','data/ad1.jpg')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('ad2gifwh','广告条2联接的图象大小[0*0为原始大小]','0*0')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('ad2title','广告条2联接的广告说明','欢迎光临传说水吧')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('ad3url','广告条3联接的地址[不填或为http://则自动不作用]','default.asp')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('ad3gif','广告条3联接的gif图象','data/ad1.jpg')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('ad3gifwh','广告条3联接的图象大小[0*0为原始大小]','0*0')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('ad3title','广告条3联接的广告说明','欢迎光临传说水吧')"

conn.execute "insert into sysparam (alias,guidetxt,body) values ('backgroudcolorstr','背景颜色字符串,颜色代码和名称用半角空格分开，多个方案用半角冒号分开，第一个方案自动为聊天室缺省背景','EAF2FF 缺省:ffffff 白色:Ffeeee 淡红:eeffee 淡绿:ffffee 淡黄:ffeeff 淡紫:eeeeff 淡蓝:eeffff 淡青')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('facecolorstr','界面颜色字符串，颜色代码1、颜色代码2和名称用半角空格分开，多个方案用半角冒号分开，第一个方案自动为聊天室缺省界面','#336699 #b0d8ff 缺省:#339999 #99cccc 青青:#33aa33 #99cc99 翠绿:993333 #ddaaaa 洋红:#993399 #ddaadd 紫红:#999933 #ddddaa 金黄:996633 ddbb99 橙红')"

conn.execute "insert into sysparam (alias,guidetxt,body) values ('enterchatshow','进入聊天室显示信息[用两个冒号隔开的是发言颜色和名称颜色]','【欢迎】在清脆的笑声中##来到%%小歇！::8800cc::6699ee')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('exitchatshow','离开聊天室显示信息[用两个冒号隔开的是发言颜色和名称颜色]','【再见】##依依不舍地推门而去！::blue::#000099')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('nosaytimeoutshow','不发言被自动清除时显示信息[用两个冒号隔开的是发言颜色和名称颜色]','【默哀】潜水过久的##不幸沉入海底！::#000099::#990000')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('userloseshow','掉线显示信息[用两个冒号隔开的是发言颜色和名称颜色]','【默哀】“砰”的一声，##重重地摔下去了！::#3366cc::blue')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('enterroomshow','换房进入房间显示信息[用两个冒号隔开的是发言颜色和名称颜色]','【欢迎】在清脆的笑声中##从%%走了过来！::#cc00cc::green')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('exitroomshow','换房离开房间显示信息[用两个冒号隔开的是发言颜色和名称颜色]','【换房】##说：“我到%%去了。有事请呼我！”::#cc00cc::green')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('reentershow','掉线重新进入显示信息[用两个冒号隔开的是发言颜色和名称颜色]','【欢迎】到处溜达了一会儿的##又出现在%%的大门口！::#666666::#3366cc')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('clearexpoutshow','系统清除不存点用户显示信息[用两个冒号隔开的是发言颜色和名称颜色]','【系统】##由于长时间不保存点经验值而被系统自动清除！::cc00cc::green')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('kickshow','踢人显示信息[用两个冒号隔开的是发言颜色和名称颜色,$F为理由]','【踢人】##提起%%的脑袋，一下子把%%摔出了聊天室！[理由：<font color=black>$F</font>]::cc00cc::green')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('lockuseripshow','封锁用户IP显示信息[用两个冒号隔开的是发言颜色和名称颜色,$F为理由,$IP为IP]','【封IP】##封锁了%%的IP($IP)！[理由：<font color=black>$F</font>]::cc00cc::green')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('lockipshow','封锁解锁IP显示信息[用两个冒号隔开的是发言颜色和名称颜色,$F为理由,$IP为IP,$OP为封锁或解锁]','【封IP】##$OP了IP($IP)！[理由：<font color=black>$F</font>]::cc00cc::green')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('coldusershow','冻结用户显示信息[用两个冒号隔开的是发言颜色和名称颜色,$F为理由,$OP为冻结或永久冻结]','【冻结】##$OP%%的帐号！[理由：<font color=black>$F</font>]::cc00cc::green')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('lifeusershow','解冻用户显示信息[用两个冒号隔开的是发言颜色和名称颜色,$F为理由]','【解冻】##解除了对%%的帐号冻结！[理由：<font color=black>$F</font>]::cc00cc::green')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('delroomshow','删除房间显示信息[用两个冒号隔开的是发言颜色和名称颜色,$F为理由]','【撤房】##使出一招“摧枯拉朽”，一阵劲风过处，%%倒塌了！[理由：<font color=black>$F</font>]::cc00cc::green')"

conn.execute "insert into sysparam (alias,guidetxt,body) values ('usernamefilter','用户名过滤字符串[用半角逗号隔开]','爸,妈,爷,奶,父,母,屄,性,操,靠,日,妓,娼,淫,荡,交,尻,屌,阴,精,奸,网管,系统,私聊,点歌,呼叫,机器,管理,fuck,sex,admin,mast,super')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('usernameenable','用户名允许特殊字符[缺省只允许汉字、字母和数字，在此定义允许使用的特殊字符(比如下划线等，空格和圆点绝对被禁止)，多个字符连续输入不需要分隔符]','')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('saysfilterstr','发言过滤字符串[用半角逗号隔开]','我操,操你,操他,操她,我靠,靠你,我日,日你,日他,日她,狗日,王八,龟儿,妓,娼,淫,作爱,做爱,性关系,乳,阳具,奶子,阴道,阴茎,强奸,强暴,性交,射精,fuck,kao,洪志,法轮')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('enablesaysfilter','允许发言过滤(0为禁止,1为允许)','1')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('allowwritegb','允许留言(0为禁止,1为允许)','1')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('autocleargb','允许自动清除留言(0为禁止,1为每天清除一次)','1')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('gbtimeout','留言超过时间自动删除(单位：天)','30')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('friendtimeout','好友请求超过时间自动删除(单位：天)','4')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('calltimeout','呼叫超过时间自动删除(单位：天)','4')"

conn.execute "insert into sysparam (alias,guidetxt,body) values ('maxtalk','内存中保留发言数(修改后需修正或重新初始化聊天室才起作用，单位：句)','400')"

conn.execute "insert into sysparam (alias,guidetxt,body) values ('maxpeople','聊天室最大人数(修改后自动起作用)','200')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('autoclearusername','自动清除过期用户(0为禁止,1为每天清除一次)','1')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('usernametimeout','使用超过一次的用户过期时限(单位：天)','30')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('usernameoncetimeout','只使用一次的用户过期时限(单位：天)','7')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('autoupgrade','允许自动升级(0为禁止,1为允许)','1')"

conn.execute "insert into sysparam (alias,guidetxt,body) values ('nosaytimeout','不发言掉线时间(单位：分钟)','30')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('sayslength','发言的最大长度(单位：字符)','150')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('dontsavevalue','最大不保存的经验点(单位：点、分钟)','100')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('kicknamedontlogin','被踢后禁止登录时间(单位：分钟)','5')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('iplocktime','封IP后禁止登录时间(单位：分钟)','60')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('votewaittime','提议结束后禁止提议的时间(单位：分钟)','2')"

conn.execute "insert into sysparam (alias,guidetxt,body) values ('disablelogin','禁止登录聊天室(1为禁止,0为允许)','0')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('disablenewuser','禁止新用户注册(1为禁止,0为允许)','0')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('disableproxy','禁止代理服务器(1为禁止,0为允许)','0')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('disableaddact','禁止添加动作(1为禁止,0为允许)','0')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('disablevotekick','禁止在线提议踢人(1为禁止,0为允许)','0')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('disablevoteth','禁止在线提议弹劾(1为禁止,0为允许)','1')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('disablevoteauto','禁止自动投票(1为禁止,0为允许)','0')"

conn.execute "insert into sysparam (alias,guidetxt,body) values ('viewsystemlog','查看系统聊务级别[踢人、封ip等等事务]','1')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('viewgradelog','查看升降级聊务级别[聊友升降级事务]','2')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('viewmanagelog','查看管理聊务级别[删除动作、删除聊友、提议监督等事务(确省15级)]','15')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('autoclearmanagelog','自动清除聊务公开记录(0为禁止,1为每天清除一次)','1')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('managelogtimeout','聊务公开自动清除时限(单位：天)','10')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('namelength','用户名允许最短长度[一个汉字长度为2]','2')"

conn.execute "insert into sysparam (alias,guidetxt,body) values ('maxroomnum','最大房间数(单位：栋)','10')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('roomkeepexp','房间自动转为永久保留人气值','100000')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('roomtimeout','房间存在时限(超过此时间无人光临自动清除，单位：分钟)','3000')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('roomautoclear','自动清除人气不旺的房间(0为禁止,1为每天清除一次)','1')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('roomexpperday','房间每天至少人气值(增加人气值低于此值房间存在时限减少，高则增加)','500')"

conn.execute "insert into sysparam (alias,guidetxt,body) values ('auto1name','自动投票事件1事件名称','管理员选举')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('auto1level','自动投票事件1候选人级别','1,2,3,4,5,6')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('auto1exp','自动投票事件1需要经验值','200')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('auto1timeout','自动投票事件1周期(单位：天)','7')"

conn.execute "insert into sysparam (alias,guidetxt,body) values ('auto2name','自动投票事件2事件名称','升级奖励(初级)')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('auto2level','自动投票事件2候选人级别','1,2,3,4,5')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('auto2num','自动投票事件2当选聊友数','3')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('auto2exp','自动投票事件2需要经验值','100')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('auto2timeout','自动投票事件2周期(单位：天)','7')"

conn.execute "insert into sysparam (alias,guidetxt,body) values ('auto3name','自动投票事件3事件名称','升级奖励(中级)')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('auto3level','自动投票事件3候选人级别','6')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('auto3num','自动投票事件3当选聊友数','1')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('auto3exp','自动投票事件3需要经验值','400')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('auto3timeout','自动投票事件3周期(单位：天)','10')"

conn.execute "insert into sysparam (alias,guidetxt,body) values ('auto4name','自动投票事件4事件名称','升级奖励(高级)')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('auto4level','自动投票事件4候选人级别','7,8,9')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('auto4num','自动投票事件4当选聊友数','1')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('auto4exp','自动投票事件4需要经验值','800')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('auto4timeout','自动投票事件4周期(单位：天)','15')"

conn.execute "insert into sysparam (alias,guidetxt,body) values ('expupto2','升级到第二级需要的经验值','300')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('expupto3','升级到第三级需要的经验值','900')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('expupto4','升级到第四级需要的经验值','2700')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('expupto5','升级到第五级需要的经验值','8000')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('expupto6','升级到第六级需要的经验值','24000')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('expupto7','升级到第七级需要的经验值','70000')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('expupto8','升级到第八级需要的经验值','140000')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('expupto9','升级到第九级需要的经验值','200000')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('expupto10','升级到第十级需要的经验值','400000')"

conn.execute "insert into sysparam (alias,guidetxt,body) values ('l_title','使用标题功能的级别','2')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('l_tt','使用贴图功能的级别','2')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('l_voteonlie','允许提交提议的级别','2')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('l_keepuser','使用用户保留功能的级别','3')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('l_addroom','使用建房功能的级别','4')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('l_seelevel','看他人级别需要的级别','5')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('l_addact','允许添加动作库的级别','6')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('l_kick','使用踢人功能的级别','7')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('l_seeip','看IP需要的级别','8')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('l_lockip','封IP所需要的级别','8')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('l_modlevel','使用升降级功能的级别','10')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('l_lockuser','冻结用户所需要的级别','9')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('l_colduser','永久冻结用户所需要的级别','10')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('l_delnote','使用留言管理功能的级别','11')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('l_delroom','使用房间管理功能的级别','13')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('l_allhtml','使用所有HTML语言的级别','12')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('l_modact','管理动作库的级别','14')"
conn.execute "insert into sysparam (alias,guidetxt,body) values ('l_vote','管理投票系统的级别','14')"%>
