<%if Session("weight")<>5 then 
Response.Redirect "error.asp?cause=4"
 end if
%>
<object runat=server id=conn1 progid="adodb.connection"></object>
<%application.Lock
conn1.Open Application("p_jyzx")
Application.UnLock
%>
<%application.Lock
	Application("counter_value")=Request("counter_value")
	Application("visited_counter_value")=Request("visited_counter_value")
	Application("send_letter_value")=Request("send_letter_value")
	Application("receive_letter_value")=Request("receive_letter_value")
 Application("web_address")=Request("web_address")
 Application("search_weight")=Request("search_weight")
 Application("webqq_weight")=Request("webqq_weight")
 Application("card_weight")=Request("card_weight")
 Application("oneday_visit")=Request("oneday_visit")
  Application("online_num")=Request("online_num")
 Application.UnLock
 set rs=server.CreateObject ("ADODB.recordset")
  rs.Supports ( adUpdate )
   sql="select * from my_system where system_id=1"
   rs.Open sql,conn1,2,3
  if rs.RecordCount<>0 then
	'rs("photo_num")=Request("photo_num")
	'rs("online_num")=Request("online_num")
	rs("total")=Request("total")
	'rs("search_weight")=cint(Request("search_weight"))
	
	rs.Update
  end if
  Response.Redirect "show_system.asp"
%>