<!--#include file="inc_const.asp"-->
<%response.expires=0
Response.CacheControl = "Private"
application.lock
set cschat=server.createobject("ffcschat.cssbchat")
my_level=cschat.getLevel(Session,Application(ConstStr & "_user_list"),Application(ConstStr & "_room_list"))
application.unlock
myname=cschat.myname
set cschat=nothing
if my_level=0 then  response.end

function chnum(n)
  if IsNumeric(n) then
    if n>=0 and n<=18 then
      chnum=true
    else
      chnum=false
    end if
  else
    chnum=false
  end if
end function


Set Conn=Server.CreateObject("ADODB.Connection")
conn.open Application( ConstStr & "_connstr")
set Rs=conn.execute("select * from user where username='"&myname&"'")
if Rs.eof or Rs.bof then
  rs.close
  set rs=nothing
  conn.close
  set conn=nothing
  response.end
end if
      f_size=request("f_size")
      if chnum(f_size) then
        f_size=int(f_size)
      else
        f_size=rs("f_size")
      end if
      l_height=request("l_height")
      if chnum(l_height) then
        l_height=int(l_height)
      else
        l_height=rs("l_height")
      end if
      n_color=request("n_color")
      if chnum(n_color) then
        n_color=int(n_color)
      else
        n_color=rs("n_color")
      end if
      s_color=request("s_color")
      if chnum(s_color) then
        s_color=int(s_color)
      else
        s_color=rs("s_color")
      end if
      conn.Execute("UPDATE user SET f_size="&f_size&",l_height="&l_height&",n_color="&n_color&",s_color="&s_color&" WHERE username='"&myname&"'")
rs.close
set rs=nothing
conn.close
set conn=nothing%>
<meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
<SCRIPT language=JavaScript>
parent.saysize=<%=(9+f_size/2)%>;
parent.LHeight=<%=(120+l_height*5)%>;
parent.input.document.forms[0].addwordcolor.options[<%=n_color%>].selected=true;
parent.input.document.forms[0].sayscolor.options[<%=s_color%>].selected=true;
parent.addsay(-1,'【系统】修改了字体大小和行距需要点清屏后才会生效！',parent.myname,'大家',0,'red','990099',-2,parent.gettimestr())
</script>





























































































