<!--#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

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

bc1=trim(request("face1"))
bc2=trim(request("face2"))
bgcolor=trim(request("bg_color"))
bgcolor_str=bgcolor&":"&bc1&":"&bc2

conn.Execute("UPDATE user SET bgcolor='"&bgcolor_str&"' WHERE username='"&myname&"'")
rs.close
set rs=nothing
conn.close
set conn=nothing%>
<meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
<SCRIPT language=JavaScript>
parent.oldbgcolor='<%=bgcolor%>';
parent.bc1='<%=bc1%>';
parent.bc2='<%=bc2%>';
parent.input.document.forms[0].bgc.options[0].selected=true;
parent.chcolor();
parent.input.cface('<%=bc1%>','<%=bc2%>')
</script>





























































































