gusucode.com > 爱美尔女性商城源码 1.0源码程序 > admintouch/savexx.asp
<%@ LANGUAGE = VBScript.Encode %> <!--#include file="conn.asp"--> <%if session("bjxadmin")="" then response.Write "<script language='javascript'>alert('网络超时或您还没有登陆!');window.location.href='login.asp';</script>" response.End else if session("flag")>1 then response.Write "<p align=center><font color=red>您没有此项目管理权限!</font></p>" response.End end if end if %> <%dim action,html html=request("html") action=request.QueryString("action") Content=Request.Form("Content") '将里面的链接换成本地链接 aa="http://"&Request.ServerVariables("server_name")&Request.ServerVariables("path_info") 'response.write aa&"<br>" 'bb=request.servervariables("http_referer") 'response.write aa&"<br>" 'response.write bb&"<br>" 'response.end 'aa= mid(aa,1,len(aa)-12) aa= mid(aa,1,len(aa)-16) '16=admin/savexx.asp 'response.write aa&"<br>" 'response.write bb&"<br>" 'response.end content=replace(content,aa,"") session("content")=content set rs=server.CreateObject("adodb.recordset") select case action case "huikuanfangshi" rs.Open "select huikuanfangshi from BJX_config",conn,1,3 rs("huikuanfangshi")=content rs.Update session("content")="" response.Write "<script language=javascript>alert('修改成功');window.location.href='editxx.asp';</script>" response.End '////////////////////////////// case "jiaoyitiaokuan" rs.Open "select jiaoyitiaokuan from BJX_config",conn,1,3 rs("jiaoyitiaokuan")=content rs.Update session("content")="" response.Write "<script language=javascript>alert('修改成功');window.location.href='editxx.asp';</script>" response.End '////////////////////////////// case "yunshushuoming" rs.Open "select yunshushuoming from BJX_config",conn,1,3 rs("yunshushuoming")=content rs.Update session("content")="" response.Write "<script language=javascript>alert('修改成功');window.location.href='editxx.asp';</script>" response.End '////////////////////////////// case "gouwuliucheng" rs.Open "select gouwuliucheng from BJX_config",conn,1,3 rs("gouwuliucheng")=content rs.Update session("content")="" response.Write "<script language=javascript>alert('修改成功');window.location.href='editxx.asp';</script>" response.End '////////////////////////////// case "changjianwenti" rs.Open "select changjianwenti from BJX_config",conn,1,3 rs("changjianwenti")=content rs.Update session("content")="" response.Write "<script language=javascript>alert('修改成功');window.location.href='editxx.asp';</script>" response.End '////////////////////////////// case "baomi" rs.Open "select baomi from BJX_config",conn,1,3 rs("baomi")=content rs.Update session("content")="" response.Write "<script language=javascript>alert('修改成功');window.location.href='editxx.asp';</script>" response.End '////////////////////////////// case "shouhoufuwu" rs.Open "select shouhoufuwu from BJX_config",conn,1,3 rs("shouhoufuwu")=content rs.Update session("content")="" response.Write "<script language=javascript>alert('修改成功');window.location.href='editxx.asp';</script>" response.End '////////////////////////////// case "shiyongfalv" rs.Open "select shiyongfalv from BJX_config",conn,1,3 rs("shiyongfalv")=content rs.Update session("content")="" response.Write "<script language=javascript>alert('修改成功');window.location.href='editxx.asp';</script>" response.End '////////////////////////////// case "regtiaoyue" rs.Open "select regtiaoyue from BJX_config",conn,1,3 rs("regtiaoyue")=content rs.Update session("content")="" response.Write "<script language=javascript>alert('修改成功');window.location.href='editxx.asp';</script>" response.End '////////////////////////////// case "regtiaoyue2" rs.Open "select regtiaoyue2 from BJX_config",conn,1,3 rs("regtiaoyue2")=content rs.Update session("content")="" response.Write "<script language=javascript>alert('修改成功');window.location.href='editxx.asp';</script>" response.End case "songhuofeiyong" rs.Open "select songhuofeiyong from BJX_config",conn,1,3 rs("songhuofeiyong")=content rs.Update session("content")="" response.Write "<script language=javascript>alert('修改成功');window.location.href='editxx.asp';</script>" response.End case "gongzuoshijian" rs.Open "select gongzuoshijian from BJX_config",conn,1,3 rs("gongzuoshijian")=content rs.Update session("content")="" response.Write "<script language=javascript>alert('修改成功');window.location.href='editxx.asp';</script>" response.End case "jifen" rs.Open "select jifen from BJX_config",conn,1,3 rs("jifen")=content rs.Update session("content")="" response.Write "<script language=javascript>alert('修改成功');window.location.href='editxx.asp';</script>" response.End case "vip" rs.Open "select vip from BJX_config",conn,1,3 rs("vip")=content rs.Update session("content")="" response.Write "<script language=javascript>alert('修改成功');window.location.href='editxx.asp';</script>" response.End case "about" rs.Open "select about from BJX_config",conn,1,3 rs("about")=content rs.Update session("content")="" response.Write "<script language=javascript>alert('修改成功');window.location.href='editxx.asp';</script>" response.End case "lxwm" rs.Open "select lxwm from BJX_config",conn,1,3 rs("lxwm")=content rs.Update session("content")="" response.Write "<script language=javascript>alert('修改成功');window.location.href='editxx.asp';</script>" response.End case "jtcg" rs.Open "select jtcg from BJX_config",conn,1,3 rs("jtcg")=content rs.Update session("content")="" response.Write "<script language=javascript>alert('修改成功');window.location.href='editxx.asp';</script>" response.End end select %>