主题:救命啊 谁可以帮我看看这个要怎么弄
希望能再查询另一个表 服务器 里的 影片地址 和 远古用户名ID 值 并付值给play_url和user_id,
是通过 表 影片地址 里的字段 服务器 值来查的
应该怎么改? 麻烦高手帮个忙啊!!!!
全部代码是以下
<!--#include file="conn.asp" -->
<%
'Response.ContentType = "audio/x-pn-realaudio"
'session("play_body")=True
if session("play_body")=True then
set rs=conn.execute("select * from 影片地址 where id="&Rq("id")&"")
if not rs.eof then
url_b=rs("地址")
url_filmid=rs("所属影片")
'****************本页所有变量/函数说明****************************************************************
' site_film 影片来源,分盗链,跟自有服务器,如果为盗链方式,直接用url_b作地址,不加入主机(前缀)
' site_helix 防盗系统是否开启,防盗系统
' get_filmplayserver 函数 '读取当前ID地址所在的服务器URL
' url 播放器最终播放的地址,自有服务器模式,url=主机URL+url_b
' url_b 数据库里的影片文件名
'****************本页所有变量/函数说明****************************************************************
'*************************防盗链系统**************************
if site_film="盗链" then
url=url_b '直接读取地址做最终播放地址
elseif site_helix="关闭" then
url=get_filmplayserver(rs("服务器"))&"/"&url_b '采用服务器+地址
elseif site_helix="开启" then
url=get_filmplayserver(rs("服务器"))&"/"&url_b&"?urlid="&GetayangIISulink '启用防盗系统后的地址
else
url=get_filmplayserver(rs("服务器"))&"/"&url_b
end if '/////////结束防盗模块
'*************************防盗链系统**************************
else
url=site_film_playbannerurl '变成系统广告
end if
else
Rw "非正常途径进入,此页禁止F5刷新<br>"
Response.end
end if
if Rq("play")="yes" then '////调用客户端软件播放,ifram解决自动关闭问题
Rw "本窗口将在3秒钟后自动关闭."
Rw "<iframe id='callrealplay' frameborder=0 width=1 scrolling=no height=1></iframe>"
if left(url,4)="http" then call msgbox_j("请注意:\n\n播放器可能不会正常弹出\n因为播放地址使用了非Rtsp方式\n"," ")
Rw "<script language=javascript>callrealplay.location.href='"&url&"';setTimeout('self.close();', 4000)</script>"
elseif Rq("play")="test" then
Rw "系统调试模式说明:<br>请直接复制下面的地址到IE地址栏里,如果可以正常访问代表系统正常,否则为系统未配置好,或影片添加不正确。<br>"
if site_film_playbanner="开启" then
Rw "<textarea name='textfield' cols='60' rows='4'>广告地址:"&site_filmbannerFun(url_filmid)&chr(10)& "影片地址:" &url&"</textarea>"
else
Rw "<textarea name='textfield' cols='60' rows='4'>核对地址:"&url&""&play_url&""&user_id"</textarea>"
end if
else
if site_film_playbanner="开启" then url=site_filmbannerFun(url_filmid)&chr(10)&url
Rw url
end if
session("play_body")=False
connclose
%>
是通过 表 影片地址 里的字段 服务器 值来查的
应该怎么改? 麻烦高手帮个忙啊!!!!
全部代码是以下
<!--#include file="conn.asp" -->
<%
'Response.ContentType = "audio/x-pn-realaudio"
'session("play_body")=True
if session("play_body")=True then
set rs=conn.execute("select * from 影片地址 where id="&Rq("id")&"")
if not rs.eof then
url_b=rs("地址")
url_filmid=rs("所属影片")
'****************本页所有变量/函数说明****************************************************************
' site_film 影片来源,分盗链,跟自有服务器,如果为盗链方式,直接用url_b作地址,不加入主机(前缀)
' site_helix 防盗系统是否开启,防盗系统
' get_filmplayserver 函数 '读取当前ID地址所在的服务器URL
' url 播放器最终播放的地址,自有服务器模式,url=主机URL+url_b
' url_b 数据库里的影片文件名
'****************本页所有变量/函数说明****************************************************************
'*************************防盗链系统**************************
if site_film="盗链" then
url=url_b '直接读取地址做最终播放地址
elseif site_helix="关闭" then
url=get_filmplayserver(rs("服务器"))&"/"&url_b '采用服务器+地址
elseif site_helix="开启" then
url=get_filmplayserver(rs("服务器"))&"/"&url_b&"?urlid="&GetayangIISulink '启用防盗系统后的地址
else
url=get_filmplayserver(rs("服务器"))&"/"&url_b
end if '/////////结束防盗模块
'*************************防盗链系统**************************
else
url=site_film_playbannerurl '变成系统广告
end if
else
Rw "非正常途径进入,此页禁止F5刷新<br>"
Response.end
end if
if Rq("play")="yes" then '////调用客户端软件播放,ifram解决自动关闭问题
Rw "本窗口将在3秒钟后自动关闭."
Rw "<iframe id='callrealplay' frameborder=0 width=1 scrolling=no height=1></iframe>"
if left(url,4)="http" then call msgbox_j("请注意:\n\n播放器可能不会正常弹出\n因为播放地址使用了非Rtsp方式\n"," ")
Rw "<script language=javascript>callrealplay.location.href='"&url&"';setTimeout('self.close();', 4000)</script>"
elseif Rq("play")="test" then
Rw "系统调试模式说明:<br>请直接复制下面的地址到IE地址栏里,如果可以正常访问代表系统正常,否则为系统未配置好,或影片添加不正确。<br>"
if site_film_playbanner="开启" then
Rw "<textarea name='textfield' cols='60' rows='4'>广告地址:"&site_filmbannerFun(url_filmid)&chr(10)& "影片地址:" &url&"</textarea>"
else
Rw "<textarea name='textfield' cols='60' rows='4'>核对地址:"&url&""&play_url&""&user_id"</textarea>"
end if
else
if site_film_playbanner="开启" then url=site_filmbannerFun(url_filmid)&chr(10)&url
Rw url
end if
session("play_body")=False
connclose
%>