<!--#include file="inc_const.asp"-->
<%response.expires=0
Response.CacheControl = "Private"

dim sysparam(134,1)
sysparam(1,0)="opendate"
sysparam(1,1)="2001年8月9日"
sysparam(2,0)="visitor"
sysparam(2,1)="1000"
sysparam(3,0)="logogif"
sysparam(3,1)="data/x04.jpg"
sysparam(4,0)="maxtalk"
sysparam(4,1)="200"
sysparam(5,0)="maxpeople"
sysparam(5,1)="200"
sysparam(6,0)="ad1url"
sysparam(6,1)="default.asp"
sysparam(7,0)="ad1gif"
sysparam(7,1)="data/ad1.jpg"
sysparam(8,0)="ad1gifwh"
sysparam(8,1)="400*60"
sysparam(9,0)="ad1title"
sysparam(9,1)="欢迎光临传说水吧"
sysparam(10,0)="ad2url"
sysparam(10,1)="default.asp"
sysparam(11,0)="ad2gif"
sysparam(11,1)="data/ad1.jpg"
sysparam(12,0)="ad2gifwh"
sysparam(12,1)="420*60"
sysparam(13,0)="ad2title"
sysparam(13,1)="欢迎光临传说水吧"
sysparam(14,0)="backgroudcolorstr"
sysparam(14,1)="EAF2FF 缺省:ffffff 白色:Ffeeee 淡红:eeffee 淡绿:ffffee 淡黄:ffeeff 淡紫:eeeeff 淡蓝:eeffff 淡青"
sysparam(15,0)="facecolorstr"
sysparam(15,1)="#336699 #b0d8ff 缺省:#339999 #99cccc 青青:#33aa33 #99cc99 翠绿:993333 #ddaaaa 洋红:#993399 #ddaadd 紫红:#999933 #ddddaa 金黄:996633 ddbb99 橙红"
sysparam(16,0)="enterchatshow"
sysparam(16,1)="【欢迎】在清脆的笑声中##来到%%小歇！::8800cc::6699ee"
sysparam(17,0)="exitchatshow"
sysparam(17,1)="【再见】##依依不舍地推门而去！::blue::#000099"
sysparam(18,0)="nosaytimeoutshow"
sysparam(18,1)="【默哀】潜水过久的##不幸沉入海底！::#000099::#990000"
sysparam(19,0)="userloseshow"
sysparam(19,1)="【默哀】“砰”的一声，##重重地摔下去了！::#3366cc::blue"
sysparam(20,0)="enterroomshow"
sysparam(20,1)="【欢迎】在清脆的笑声中##从%%走了过来！::#cc00cc::green"
sysparam(21,0)="exitroomshow"
sysparam(21,1)="【换房】##说：“我到%%去了。有事请呼我！”::#cc00cc::green"
sysparam(22,0)="reentershow"
sysparam(22,1)="【欢迎】到处溜达了一会儿的##又出现在%%的大门口！::#666666::#3366cc"
sysparam(23,0)="clearexpoutshow"
sysparam(23,1)="【系统】##由于长时间不保存经验值而被系统自动清除！::cc00cc::green"
sysparam(24,0)="unknowerrorexitshow"
sysparam(24,1)="【系统】##非正常原因离开了聊天室！[浏览器临时文件可能需要清理了]::#3366cc::blue"
sysparam(25,0)="newroomshow"
sysparam(25,1)="【建房】##建立的“%%”欢迎大家的光临！::0088ff::green"
sysparam(26,0)="tonewroomshow"
sysparam(26,1)="【建房】##搭起一座房子，在门上写着“%%，欢迎光临”。然后开门进去了！::#336699::green"
sysparam(27,0)="kickshow"
sysparam(27,1)="【踢人】##提起%%的脑袋，一下子把%%摔出了聊天室！[理由：$F]::cc00cc::green"
sysparam(28,0)="lockuseripshow"
sysparam(28,1)="【封IP】##封锁了%%的IP($IP)！[理由：$F]::cc00cc::green"
sysparam(29,0)="lockipshow"
sysparam(29,1)="【封IP】##$OP了IP($IP)！[理由：$F]::cc00cc::green"
sysparam(30,0)="coldusershow"
sysparam(30,1)="【冻结】##$OP%%的帐号！[理由：$F]::cc00cc::green"
sysparam(31,0)="lifeusershow"
sysparam(31,1)="【解冻】##解除了对%%的帐号冻结！[理由：$F]::cc00cc::green"
sysparam(32,0)="delroomshow"
sysparam(32,1)="【撤房】##使出一招“摧枯拉朽”，一阵劲风过处，%%倒塌了！[理由：$F]::cc00cc::green"
sysparam(33,0)="usernamefilter"
sysparam(33,1)="爸,妈,爷,奶,父,母,屄,性,操,靠,日,妓,娼,淫,荡,交,尻,屌,阴,精,奸,网管,系统,私聊,点歌,呼叫,机器,管理,fuck,sex,admin,mast,super"
sysparam(34,0)="usernameenable"
sysparam(34,1)="の_"
sysparam(35,0)="saysfilterstr"
sysparam(35,1)="我操,操你,操他,操她,我靠,靠你,我日,日你,日他,日她,狗日,王八,龟儿,妓,娼,淫,作爱,做爱,性关系,乳,阳具,奶子,阴道,阴茎,强奸,强暴,性交,射精,fuck,kao,洪志,法轮"
sysparam(36,0)="enablesaysfilter"
sysparam(36,1)="1"
sysparam(37,0)="allowwritegb"
sysparam(37,1)="1"
sysparam(38,0)="autocleargb"
sysparam(38,1)="1"
sysparam(39,0)="gbtimeout"
sysparam(39,1)="30"
sysparam(40,0)="friendtimeout"
sysparam(40,1)="4"
sysparam(41,0)="calltimeout"
sysparam(41,1)="4"
sysparam(42,0)="autoclearusername"
sysparam(42,1)="1"
sysparam(43,0)="usernametimeout"
sysparam(43,1)="30"
sysparam(44,0)="usernameoncetimeout"
sysparam(44,1)="7"
sysparam(45,0)="autoupgrade"
sysparam(45,1)="1"
sysparam(46,0)="newusernum"
sysparam(46,1)="3"
sysparam(47,0)="newguestbooknum"
sysparam(47,1)="5"
sysparam(48,0)="nosaytimeout"
sysparam(48,1)="30"
sysparam(49,0)="maxsayslength"
sysparam(49,1)="150"
sysparam(50,0)="minsayslength"
sysparam(50,1)="2"
sysparam(51,0)="titlelength"
sysparam(51,1)="50"
sysparam(52,0)="guestbooklength"
sysparam(52,1)="800"
sysparam(53,0)="gbpagesize"
sysparam(53,1)="20"
sysparam(54,0)="dontsavevalue"
sysparam(54,1)="100"
sysparam(55,0)="listreftime"
sysparam(55,1)="10"
sysparam(56,0)="kicknamedontlogin"
sysparam(56,1)="5"
sysparam(57,0)="iplocktime"
sysparam(57,1)="60"
sysparam(58,0)="votewaittime"
sysparam(58,1)="2"
sysparam(59,0)="disablenewuser"
sysparam(59,1)="0"
sysparam(60,0)="disableproxy"
sysparam(60,1)="0"
sysparam(61,0)="disableaddact"
sysparam(61,1)="0"
sysparam(62,0)="disablevotekick"
sysparam(62,1)="0"
sysparam(63,0)="disablevoteauto"
sysparam(63,1)="0"
sysparam(64,0)="viewsystemlog"
sysparam(64,1)="1"
sysparam(65,0)="viewgradelog"
sysparam(65,1)="2"
sysparam(66,0)="viewmanagelog"
sysparam(66,1)="15"
sysparam(67,0)="autoclearmanagelog"
sysparam(67,1)="1"
sysparam(68,0)="managelogtimeout"
sysparam(68,1)="10"
sysparam(69,0)="namelength"
sysparam(69,1)="2"
sysparam(70,0)="maxnamelength"
sysparam(70,1)="6"
sysparam(71,0)="maxroomnum"
sysparam(71,1)="10"
sysparam(72,0)="roomkeepexp"
sysparam(72,1)="100000"
sysparam(73,0)="roomtimeout"
sysparam(73,1)="3000"
sysparam(74,0)="roomautoclear"
sysparam(74,1)="1"
sysparam(75,0)="roomexpperday"
sysparam(75,1)="500"
sysparam(76,0)="auto1name"
sysparam(76,1)="管理员选举"
sysparam(77,0)="auto1level"
sysparam(77,1)="1,2,3,4,5,6"
sysparam(78,0)="auto1exp"
sysparam(78,1)="200"
sysparam(79,0)="auto1timeout"
sysparam(79,1)="7"
sysparam(80,0)="auto2name"
sysparam(80,1)="升级奖励(初级)"
sysparam(81,0)="auto2level"
sysparam(81,1)="1,2,3,4,5"
sysparam(82,0)="auto2num"
sysparam(82,1)="3"
sysparam(83,0)="auto2exp"
sysparam(83,1)="100"
sysparam(84,0)="auto2timeout"
sysparam(84,1)="7"
sysparam(85,0)="auto3name"
sysparam(85,1)="升级奖励(中级)"
sysparam(86,0)="auto3level"
sysparam(86,1)="6"
sysparam(87,0)="auto3num"
sysparam(87,1)="1"
sysparam(88,0)="auto3exp"
sysparam(88,1)="400"
sysparam(89,0)="auto3timeout"
sysparam(89,1)="10"
sysparam(90,0)="auto4name"
sysparam(90,1)="升级奖励(高级)"
sysparam(91,0)="auto4level"
sysparam(91,1)="7,8,9"
sysparam(92,0)="auto4num"
sysparam(92,1)="1"
sysparam(93,0)="auto4exp"
sysparam(93,1)="800"
sysparam(94,0)="auto4timeout"
sysparam(94,1)="15"
sysparam(95,0)="expupto2"
sysparam(95,1)="300"
sysparam(96,0)="expupto3"
sysparam(96,1)="900"
sysparam(97,0)="expupto4"
sysparam(97,1)="2700"
sysparam(98,0)="expupto5"
sysparam(98,1)="8000"
sysparam(99,0)="expupto6"
sysparam(99,1)="24000"
sysparam(100,0)="expupto7"
sysparam(100,1)="70000"
sysparam(101,0)="expupto8"
sysparam(101,1)="140000"
sysparam(102,0)="expupto9"
sysparam(102,1)="200000"
sysparam(103,0)="expupto10"
sysparam(103,1)="400000"
sysparam(104,0)="l_title"
sysparam(104,1)="2"
sysparam(105,0)="l_tt"
sysparam(105,1)="2"
sysparam(106,0)="l_voteonline"
sysparam(106,1)="2"
sysparam(107,0)="l_keepuser"
sysparam(107,1)="3"
sysparam(108,0)="l_addroom"
sysparam(108,1)="4"
sysparam(109,0)="l_seelevel"
sysparam(109,1)="5"
sysparam(110,0)="l_addact"
sysparam(110,1)="6"
sysparam(111,0)="l_kick"
sysparam(111,1)="7"
sysparam(112,0)="l_seeip"
sysparam(112,1)="8"
sysparam(113,0)="l_lockip"
sysparam(113,1)="8"
sysparam(114,0)="l_modlevel"
sysparam(114,1)="10"
sysparam(115,0)="l_lockuser"
sysparam(115,1)="9"
sysparam(116,0)="l_colduser"
sysparam(116,1)="10"
sysparam(117,0)="l_delnote"
sysparam(117,1)="11"
sysparam(118,0)="l_newuser"
sysparam(118,1)="12"
sysparam(119,0)="l_delroom"
sysparam(119,1)="13"
sysparam(120,0)="l_allhtml"
sysparam(120,1)="14"
sysparam(121,0)="l_modact"
sysparam(121,1)="14"
sysparam(122,0)="l_vote"
sysparam(122,1)="14"
sysparam(123,0)="enablequestion"
sysparam(123,1)="0"
sysparam(124,0)="questionautoman"
sysparam(124,1)="聪明小博士"
sysparam(125,0)="questionroomid"
sysparam(125,1)="-2"
sysparam(126,0)="questionminpeople"
sysparam(126,1)="20"
sysparam(127,0)="questionmaxpeople"
sysparam(127,1)="200"
sysparam(128,0)="questionasktimes"
sysparam(128,1)="2"
sysparam(129,0)="questiontimeinterval"
sysparam(129,1)="2"
sysparam(130,0)="showloseanswer"
sysparam(130,1)="0"
sysparam(131,0)="questionaskshow"
sysparam(131,1)="##：智力竞赛开始啦！<big style=color:red><b>$Q</b>[$T]</big>，有谁知道？答对有奖！::#008888::#000099"
sysparam(132,0)="questionloseshow"
sysparam(132,1)="##：<big style=color:red><b>$Q</b>[$T]</big>，%%的答案是：<u style=color:red>$A</u>，跟正确答案差得不远哟。大家继续努力呀！::#008888::#000099"
sysparam(133,0)="answersuccessshow"
sysparam(133,1)="##：%%给出了正确的答案：<u style=color:red>$A</u>，%%获得$N点经验值的奖励！我好崇拜%%呀！::#008888::#000099"
sysparam(134,0)="questionendshow"
sysparam(134,1)="##：<big style=color:red><b>$Q</b>[$T]</big>，这么简单的问题居然没有人知道？我忙其他的去了。回头见！::#008888::#000099"

Set Conn=Server.CreateObject("ADODB.Connection")
conn.open Application(ConstStr & "_connstr")

alias=trim(request("alias"))
if alias<>"" then
 application.lock
 set cschat=server.createobject("ffcschat.cssbchat")
 
 my_level=cschat.getLevel(Session,Application(ConstStr & "_user_list"),Application(ConstStr & "_room_list"))
 set cschat=nothing
 application.unlock
 if  my_level-application(ConstStr & "_superlevel")<>0 then response.end
 for i=1 to ubound(sysparam)
   if alias=sysparam(i,0) then
    sql="update sysparam set body='"&sysparam(i,1)&"' where alias='"&alias&"'"
    conn.Execute(sql)
    application.lock
    application(ConstStr & "_"&alias)=sysparam(i,1)
    application.unlock
    errtext="操作成功！"
    exit for
   end if
 next
 if errText="" then errText="找不到你选择的系统参数！"
 response.redirect("showerr.asp?errtext="&errText)
else
  if request.form("cmdYes")="确认" then
    username=trim(request.form("username"))
    set cschat=server.createobject("ffcschat.cssbchat")
    spass = cschat.trPass(request.Form("spass"))
    if username="" or spass="" then
     conn.close
     set conn=nothing
     set cschat=nothing
     response.end
    end if

    set rs=conn.execute("select * from user where username='"&username&"'")
    if rs.eof or rs.bof then
     rs.close
     set rs=nothing
     conn.close
     set conn=nothing
     response.end
    end if

    if spass<>rs("passwd") or rs("user_level")-application(ConstStr & "_superlevel")<>0 then
     rs.close
     set rs=nothing
     conn.close
     set conn=nothing
     set cschat=nothing
     response.end
    end if

   rs.close
   set rs=nothing

   for i=1 to ubound(sysparam)
    sql="update sysparam set body='"&sysparam(i,1)&"' where alias='"&sysparam(i,0)&"'"
    conn.Execute(sql)
   next

   errtext="聊天室被重新初始化，所有的用户和发言被清除！"
   cschat.ConstStr=ConstStr
   cschat.InitGlobal(application)
   set cschat=nothing
   response.redirect("showerr.asp?errtext="&errText)
  else%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="chat.css">
<style>u{color:red}</style>
<body style="background-color:EAF2FF;color:112233;scrollbar-Base-Color: #b0d8ff;SCROLLBAR-DARKSHADOW-COLOR:#b0d8ff;SCROLLBAR-arrow-COLOR:#336699;SCROLLBAR-TRACK-COLOR: EAF2FF;SCROLLBAR-3DLIGHT-COLOR: #b0d8ff;SCROLLBAR-SHADOW-COLOR: #336699;SCROLLBAR-HIGHLIGHT-COLOR: #b0d8ff;" leftmargin=3 topmargin=20 >
  <table width=400 align=center cellspacing=0 cellpadding=0 border=1 BORDERCOLORLIGHT=#000000 BORDERCOLORDARK=#ffffff>
  <tr><td class=navy1>请输入你的名字和密码</td></tr>
 <form name="setdefaultvalue" action="setdefaultvalue.asp" method="post" onsubmit="return confirm('你真的要缺省所有的参数吗？仅在聊天室参数设置错误造成聊天室不可用才使用！')">
  <tr><td height=60>名字:<input type=text size=10 maxlength=10 name="username"><br>
  密码:<input type=password size=10 maxlength=15 name="spass"><br>
  <tr><td height=40><input class=navy1 type="submit" name="cmdYes" value="确认" >
    <input class=navy1 type="reset" name="cmdClear" value="清除">
    </td></tr></form></table><tr<td><br><center>[<a href='javascript:history.go(-1)'>后退</a>]</table></body></html>
  <%end if
end if
conn.close
set conn=nothing%>