<!--#include file="conn/conn.asp"-->
<!--#include file="conn/nosql.asp"-->
<!--#include file="conn/config.asp"-->
<!--#include file="conn/count.asp"-->
<%if session("uflag")<>3 then 
response.write "<script language='javascript'>"
response.write "alert('您没还有权限，请更换用户登录或联系管理员再访问本页！');"
response.write"this.location.href='/index.asp';</SCRIPT>"
response.end
end if
if Not ChkPosturl then response.redirect ("login.asp")
if isChkInteger(request("web_id")) then
web_id=request("web_id")
else
Response.Redirect ("../index.asp")
end if

sql="select url from snsn_user where id="&web_id
Set rs= Server.CreateObject("ADODB.Recordset") 
rs.open sql,conn,1,1
if rs.eof or rs.bof then
response.write "<script language='javascript'>"
response.write "alert('没有此用户，请确认后或联系管理员再访问本页！');"
response.write"this.location.href='/index.asp';</SCRIPT>"
response.end
else
tc="/web/"&rs("url")&"/index.asp?web_id="&web_id&""
if request("url")="my" then
if rs("url")=1 then
%>
<script language="javascript">
window.open('<%=tc%>','tcweb','scrollbars=no,resizable=no,width=920,height=565,menubar=no,top=10,left=10');
window.close()
</script><%else%>
<script language="javascript">
window.open('<%=tc%>','tcweb','scrollbars=no,resizable=no,width=950,height=600,menubar=no,top=10,left=10');
window.close()
</script>
<%end if
else
if rs("url")=1 then
%>
<script language="javascript">
window.open('<%=tc%>','tcweb','scrollbars=no,resizable=no,width=920,height=565,menubar=no,top=10,left=10');
window.history.go(-1)
</script>
<%else%>
<script language="javascript">
window.open('<%=tc%>','tcweb','scrollbars=no,resizable=no,width=950,height=600,menubar=no,top=10,left=10');
window.history.go(-1)
</script>
<%
end if
end if
'response.redirect( ""&weburl&"web/"&rs("url")&"/index.asp?web_id="&web_id&"")
set rs=nothing
conn.close
set conn=nothing
end if
%>
