%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%> <% response.Charset="gb2312" hostid=requesta("hostid") conn.open constr act=requesta("act") set up=new uphost_class:up.u_sysid=session("u_sysid"):up.setHostid=hostid if up.istostatepage and instr(requesta("script_name"),"uphost_state.asp")=0 then gowithwin "uphost_state.asp?hostid="&hostid elseif not up.istostatepage and instr(requesta("script_name"),"uphost.asp")=0 then gowithwin "uphost.asp?hostid="&hostid end if if act="sub" then new_proid=requesta("new_proid") new_room=requesta("new_room") ismovedata=requesta("ismovedata") call up.getUpInfo(new_proid,new_room,ismovedata) if up.isLimitMove="true" then ismovedata=0 if up.dosub(new_proid,new_room,ismovedata,errstr) then alert_redirect "恭喜,升级成功",requesta("script_name")&"?hostid="&hostid else alert_redirect errstr,requesta("script_name")&"?hostid="&hostid end if conn.close response.end elseif act="getroom" then proid=requesta("proid") call up.getUpInfo(proid,0,0) response.write up.selectroomlist conn.close:set up=nothing response.end elseif act="getmovedata" then new_proid=requesta("new_proid") new_room=requesta("new_room") call up.getUpInfo(new_proid,new_room,0) ismovedataStr=lcase(up.isLimitMove) response.write ismovedataStr conn.close:set up=nothing response.end elseif act="checkprice" then new_room=requesta("new_room") new_proid=requesta("new_proid") ismovedata=requesta("ismovedata") movestr="" call up.getUpInfo(new_proid,new_room,ismovedata) if lcase(up.isLimitMove)="true" then ismovedata=0 if new_room<>up.s_room or instr(up.new_proname,"linux")>0 or instr(up.new_proname,"java")>0 or up.s_islinux then movestr="跨平台升级需要您自己下载并迁移数据,原服务器的数据保留至"& up.clearDate &"日,请及时迁移,过期后系统会自动清除。迁移后绑定的域名将清空,需要重新绑定" end if elseif instr(up.new_proname,"集群")>0 and instr(s_proname,"集群")=0 then movestr="升级到集群主机后绑定的域名将清空,需要重新绑定" end if needPrice=up.getupNeedPrice(new_proid,new_room,ismovedata) result="每天差价["& fmtPrice(up.everydayPrice) &"]×剩余天数["& up.dayHave &"]+手续费["& fmtPrice(up.upShouXuFei) &"]="& needPrice & "元^|^" & _ "(新价格["& fmtPrice(up.newPrice) &"]-原价格["& fmtPrice(up.oldPrice) &"])÷总天数["& up.dayCount &"]="& fmtPrice(up.everydayPrice) & _ "^|^型号手续费["& fmtPrice(up.ProShouXuFei) &"]+转移数据["& fmtPrice(up.RoomShouXuFei) &"]=" & fmtPrice(up.upShouXuFei) & _ "^|^"&movestr response.write result conn.close:set up=nothing response.end end if call doUserSyn("vhost",up.s_comment) %>