游客,您好 
免费注册 用户中心 支持中心 加入收藏
本版版规及导航
·本版禁止灌水,禁发广告帖及友情链接帖子,禁发与本版无关的帖子
·新手提问前请先看固顶帖及版块的精华帖子,常见问题已经在固顶帖或者精华里得到解决
·提问的帖子请将问题问得尽量详细,如方便,可以配以图示
 交流论坛 -> 技术交流讨论区 -> HelixApp防盗链系统 -> [求助]能不能帮忙改下播放器页面..看了半天看不懂怎么改..
本版专题: [Real防盗链] [IIS 防盗链] [Media防盗链]
本版版主 大个子 西瓜田
您是本贴第 1855 位浏览者 
主题:[求助]能不能帮忙改下播放器页面..看了半天看不懂怎么改..
qlez
等级:  城镇农民
发贴: 2
积分: 4
经验: 5
体力: 105
货币: 0 金币
注册: 2006-12-17
            1楼
 [求助]能不能帮忙改下播放器页面..看了半天看不懂怎么改..
有三个文件好象有联系,我也不知道怎么改.郁闷死了.

playerurl_1.asp
----------------------------------------------------------------------

<% Option Explicit %>
<!--#include file="Conn.asp"-->
<%
dim hosturl,dnum,checknum,skyuc_com_url_id,skyuc_com_server_id
hosturl=request.servervariables("HTTP_HOST")

dnum=trim(request.querystring("num"))
checknum=trim(request.cookies("tempurl")("online"))
response.cookies("tempurl")("online")=""

skyuc_com_url_id=trim(request.querystring("skyuc_com_url_id"))
skyuc_com_server_id=trim(request.querystring("skyuc_com_server_id"))

if dnum="" then
response.write "<script>alert('非法操作:参数传递出错!');window.close();</script>"
response.end
end if

if checknum="" then
response.write "<script>alert('非法操作:只能在网页中收看!');window.close();</script>"
response.end
end if

If not isNumeric(dnum) then
response.write "<script>alert('非法操作:参数传递出错!');window.close();</script>"
Response.end
end if

If skyuc_com_url_id="" or skyuc_com_server_id="" then
response.write "<script>alert('非法操作:参数传递出错!');window.close();</script>"
Response.end
end if

If not isNumeric(skyuc_com_url_id) then
response.write "<script>alert('非法操作:参数传递出错!');window.close();</script>"
Response.end
end if

If not isNumeric(skyuc_com_server_id) then
response.write "<script>alert('非法操作:参数传递出错!');window.close();</script>"
Response.end
end if

if dnum<>checknum then
response.write "<script>alert('非法操作:参数传递出错!');window.close();</script>"
response.end
end if
%>

<%
dim rs1,rs2,rs3,url,skyuc_com_url,skyuc_com_onlineserver,password
set rs1=conn.execute("select skyuc_com_url from [skyuc_com_url] where id="&skyuc_com_url_id&"")
skyuc_com_url=rs1(0)
rs1.close
set rs1=nothing
   
set rs2=conn.execute("select skyuc_com_onlineserver from [skyuc_com_server] where id="&skyuc_com_server_id&"")
skyuc_com_onlineserver=rs2(0)
rs2.close
set rs2=nothing
conn.close
set conn=nothing

url=skyuc_com_onlineserver&skyuc_com_url

response.write url
%>


----------------------------------------------------------------------
PLAYER_VIP.ASP
----------------------------------------------------------------------
<%Option Explicit%>
<!--#include file="conn.asp"-->
<%
dim skyuc_com_url_id,skyuc_com_show_id,mov_id
skyuc_com_url_id=trim(request.querystring("skyuc_com_url_id"))
skyuc_com_show_id=trim(request.querystring("skyuc_com_show_id"))
mov_id=trim(request.querystring("mov_id"))
'字符串过滤statr
if skyuc_com_url_id="" or skyuc_com_show_id="" or mov_id="" then
response.redirect "../default.htm"
response.end
end if
if len(skyuc_com_url_id)>10 or len(skyuc_com_show_id)>10 or len(mov_id)>10 then
response.redirect "../default.htm"
response.end
end if
If not isNumeric(skyuc_com_url_id) then
response.redirect "../default.htm"
Response.end
end if
If not isNumeric(skyuc_com_show_id) then
response.redirect "../default.htm"
Response.end
end if
If not isNumeric(mov_id) then
response.redirect "../default.htm"
Response.end
end if
'字符串过滤end
%>
<%dim rs,sql,skyuc_com_format
set rs=server.createobject("adodb.recordset") 
   sql="select skyuc_com_format from skyuc_com_show where id="&skyuc_com_show_id
   rs.open sql,conn,1,1 
   skyuc_com_format=rs("skyuc_com_format")
   rs.close 
   set rs=nothing 
   %>
   <%
dim servertype,skyuc_com_helixonoff
set rs4=conn.execute("select * from [skyuc_com_siteall]")
skyuc_com_helixonoff=rs4("skyuc_com_helixonoff")
rs4.close
set rs4=nothing
%>
<%
if skyuc_com_helixonoff="0" then
servertype="playerurl_2.asp"
else
servertype="playerurl_1.asp"
end if
%>
<%
if skyuc_com_format="real" then
 %>
<html>
<head>
<title>播放器</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../images/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
body {
 margin-left: 0px;
 margin-top: 0px;
 margin-right: 0px;
 margin-bottom: 0px;
}
-->
</style>
<script language=javascript>
<!--
function chk_refurbish()
{
document.frames["hiddenframe_refurbish"].location.replace("Check_player.asp");
window.setTimeout('chk_refurbish()',5*60000);
}
function window_onload() 
{
chk_refurbish();
}
-->
</script>
<script LANGUAGE="javascript">              
var ERR_FileNotFind="播放器提示您:未发现你要点播的文件!";
var ERR_NotLocateServer="播放器提示您:无法连接服务器或连接超时!";
var ERR_UnkownError="播放器提示您:发生未知错误!";
</script>
<script LANGUAGE="VBscript">                                    
on error resume next
Sub player_OnBuffering(lFlags,lPercentage)
if (lPercentage=100) then
StartPlay=false
if (FirstPlay) then
FirstPlay=false
end if 
exit sub
end if
End Sub
Sub player_OnErrorMessage(uSeverity, uRMACode, uUserCode, pUserString, pMoreInfoURL, pErrorString)
select case player.GetLastErrorRMACode()
    case -2147221496
   window.alert(ERR_FileNotFind)
    case -2147221433,-2147221428,-2147221417,-2147217468
   window.alert(ERR_NotLocateServer)
    case else
   window.alert(ERR_UnkownError)
end select
End Sub
</script>

</head>
<BODY bgColor=#000000 leftMargin=0 topMargin=0 marginheight="0" marginwidth="0" oncontextmenu="return false" onselectstart="return false" onkeydown="return false" ondragstart="return false" onload=window_onload() >
<%
dim userid,password,usertypes,ip
userid=request.cookies("skyuc.com")("userid")
password=request.cookies("skyuc.com")("password")
usertypes=request.cookies("skyuc.com")("usertypes")
ip=request.servervariables("remote_addr")
if userid="" or password="" or usertypes="" then
response.write "<div align=center><center>"
response.write "<table width=400 border=1 cellspacing=0 cellpadding=0 bordercolorlight=#666666 bordercolordark=#ffffff align=center>"
response.write "<tr><td bgcolor=#666666 height=27> <div align=center><font color=#FFFFFF>系统提示!!</font></div></td></tr>"
response.write "<tr><td height=89><div align=center><font color=#FFFFFF>登陆超时,或者你未登陆,请重新登陆!</a><br>"
response.write "</font><br></div></td></tr></table></center></div>"
%>
<%
conn.close
set conn=nothing
response.end
end if
%>
   
<%
dim rs1,sql1,skyuc_com_server_id,skyuc_com_servertype,skyuc_com_points,skyuc_com_name
set rs1=server.createobject("adodb.recordset")
sql1="select skyuc_com_online_hits,skyuc_com_server,skyuc_com_servertype,skyuc_com_points,skyuc_com_name from [skyuc_com_show] where id="&skyuc_com_show_id&" order by id desc"
rs1.open sql1,conn,1,3

if rs1.eof and rs1.bof then
rs1.close
set rs1=nothing
conn.close
set conn=nothing
response.write "<br><div align=center><font color=red>参数出错!</font></div>"
response.end
end if

rs1(0)=rs1(0)+1
rs1.update

skyuc_com_server_id=rs1(1)
skyuc_com_servertype=rs1(2)
skyuc_com_points=rs1(3)
skyuc_com_name=rs1(4)

rs1.close
set rs1=nothing
%>   

<%
dim rs2,skyuc_com_overtime,skyuc_com_usertype,skyuc_com_userpoints,body,bodys
set rs2=conn.execute("select skyuc_com_overtime,skyuc_com_usertype,skyuc_com_userpoints from [skyuc_com_user_vip] where skyuc_com_userid='"&userid&"' and  skyuc_com_userpass='"&password&"'")
if rs2.eof and rs2.bof then
rs2.close
set rs2=nothing
conn.close
set conn=nothing
response.write "<script>alert('系统错误!');window.close();</script>"
response.end
end if
skyuc_com_overtime=rs2(0)
skyuc_com_usertype=rs2(1)
skyuc_com_userpoints=rs2(2)
rs2.close
set rs2=nothing

if now() > skyuc_com_overtime and skyuc_com_usertype=1 then
bodys=1
body="你没有包月或者你包月的时间已经到期!"
elseif skyuc_com_points > skyuc_com_userpoints and skyuc_com_usertype=0 then
bodys=1
body="你的点数已经不够了!"
elseif skyuc_com_userpoints<1 and skyuc_com_usertype=0 then
bodys=1
body="你的点数已经不够了!"
end if
if bodys=1 then
response.write "<div align=center><center>"
response.write "<table width=400 border=1 cellspacing=0 cellpadding=0 bordercolorlight=#666666 bordercolordark=#ffffff align=center>"
response.write "<tr><td bgcolor=#666666 height=27> <div align=center><font color=#FFFFFF>系统提示!!</font></div></td></tr>"
response.write "<tr><td height=89><div align=center><font color=#FFFFFF>"&body&"<a target=_top href=../user/right_user_pay.asp><font color=#FF0000>请进行充值</font></a><br>"
response.write "</font><br></div></td></tr></table></center></div>"
conn.close
set conn=nothing
response.end
end if
%>
<% if  skyuc_com_usertype=1 then  
   dim rs4,sql4
   set rs4=server.createobject("adodb.recordset")
   sql4="select skyuc_com_moviename,skyuc_com_userip,skyuc_com_userid,skyuc_com_lookordown,skyuc_com_onoff,skyuc_com_times,skyuc_com_mov_id,skyuc_com_url,skyuc_com_usertype,skyuc_com_lookcount,skyuc_com_userpoints from [skyuc_com_seelog] where skyuc_com_userid='"&userid&"' and skyuc_com_url="&skyuc_com_url_id&""
   rs4.open sql4,conn,1,3
   if rs4.eof and rs4.bof then
   rs4.addnew
   rs4(0)=skyuc_com_name
   rs4(1)=ip
   rs4(2)=userid
   rs4(3)=1
   rs4(4)=1
   rs4(5)=now()
   rs4(6)=mov_id
   rs4(7)=skyuc_com_url_id
   rs4(8)=skyuc_com_usertype
   rs4.update
   rs4.close
   set rs4=nothing
   end if
   end if
%>
<% 
   if  skyuc_com_usertype=0 then
   dim rs3,sql3,skyuc_com_times
   set rs3=server.createobject("adodb.recordset")
   sql3="select skyuc_com_moviename,skyuc_com_userip,skyuc_com_userid,skyuc_com_lookordown,skyuc_com_onoff,skyuc_com_times,skyuc_com_mov_id,skyuc_com_url,skyuc_com_usertype,skyuc_com_lookcount,skyuc_com_userpoints from [skyuc_com_seelog] where skyuc_com_userid='"&userid&"' and skyuc_com_url="&skyuc_com_url_id&""
   rs3.open sql3,conn,1,3
   if rs3.eof and rs3.bof then
   rs3.addnew
   rs3(0)=skyuc_com_name
   rs3(1)=ip
   rs3(2)=userid
   rs3(3)=1
   rs3(4)=1
   rs3(5)=now()
   rs3(6)=mov_id
   rs3(7)=skyuc_com_url_id
   rs3(8)=skyuc_com_usertype
   rs3(9)=1
   rs3(10)=skyuc_com_points
   rs3.update
   rs3.close
   set rs3=nothing
   '新看电影,扣除点数
   conn.execute("update [skyuc_com_user_vip] set skyuc_com_userpoints=skyuc_com_userpoints-"&skyuc_com_points&" where skyuc_com_userid='"&userid&"' and skyuc_com_userpass='"&password&"'")
   response.write" <script>alert('此次点播,扣除"&skyuc_com_points&"点!\n\n[24小时]内重复点播此集不扣点。');</script>"
   '已经有过观看记录的电影加观看次数
   else
   skyuc_com_times=rs3(5)
   '如果观看时间已经超过24小时则重新计点
   if DateDiff("h",skyuc_com_times, now())>24 then
   conn.execute("update [skyuc_com_user_vip] set skyuc_com_userpoints=skyuc_com_userpoints-"&skyuc_com_points&" where skyuc_com_userid='"&userid&"' and skyuc_com_userpass='"&password&"'")
   rs3(5)=now()
   rs3.update
   response.write" <script>alert('此次点播,扣除"&skyuc_com_points&"点!\n\n[24小时]内重复点播此集不扣点。');</script>"
   else
   rs3(9)=rs3(9)+1
   rs3.update
   dim hours,minutes
   hours=hour(now())-hour(skyuc_com_times)
   hours=23-hours
   minutes=minute(now())-minute(skyuc_com_times)
   minutes=60-minutes
   response.write" <script>alert('此次点播,不扣点!\n\n在剩余的["&hours&"小时"&minutes&"分]内点播此集不扣点。');</script>"
   end if
   end if
   conn.close
   set conn=nothing
   end if
%>

<%
dim Num,movieurl
randomize
Num=Int((89999999)*Rnd +10000000)
response.cookies("tempurl")("online")=Num
%>
<center>
<TABLE cellPadding=0 cellSpacing=0 border=1 height="100%" width="100%">
<TR>
<TD>
<script language="javascript">
document.write('<OBJECT classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height="100%" id=RP1 name=RP1 width="100%">')
document.write('<PARAM NAME="AUTOSTART" VALUE="-1">')
document.write('<PARAM NAME="SHUFFLE" VALUE="0">')
document.write('<PARAM NAME="PREFETCH" VALUE="0">')
document.write('<PARAM NAME="NOLABELS" VALUE="0">')
document.write('<PARAM NAME="CONTROLS" VALUE="Imagewindow">')
document.write('<PARAM NAME="CONSOLE" VALUE="clip1">')
document.write('<PARAM NAME="LOOP" VALUE="0">')
document.write('<PARAM NAME="NUMLOOP" VALUE="0">')
document.write('<PARAM NAME="CENTER" VALUE="0">')
document.write('<PARAM NAME="MAINTAINASPECT" VALUE="0">')
document.write('<PARAM NAME="BACKGROUNDCOLOR" VALUE="#000000">')
document.write('</OBJECT>')
</script>
</TD></TR><TR><TD height=60>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width="100%">
<TR><TD align=middle bgColor=#000000>
<TABLE border=1 cellPadding=0 cellSpacing=0 width="100%">
<TR><TD width=50>
<IMG border=0 height=30 onclick=document.RP1.SetFullScreen() src="../images/full.gif" width=50></TD>
<TD>
<script language="javascript">
document.write('<OBJECT classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA  height=30 id=player name=player width="100%">')
document.write('<PARAM NAME="_ExtentX" VALUE="4657">')
document.write('<PARAM NAME="_ExtentY" VALUE="794">')
document.write('<PARAM NAME="AUTOSTART" VALUE="-1">')
document.write('<PARAM NAME="SRC" VALUE="<%=servertype%>?num=<%=Num%>&skyuc_com_url_id=<%=skyuc_com_url_id%>&skyuc_com_server_id=<%=skyuc_com_server_id%>">')
document.write('<PARAM NAME="SHUFFLE" VALUE="0">')
document.write('<PARAM NAME="PREFETCH" VALUE="0">')
document.write('<PARAM NAME="NOLABELS" VALUE="-1">')
document.write('<PARAM NAME="CONTROLS" VALUE="ControlPanel">')
document.write('<PARAM NAME="CONSOLE" VALUE="clip1">')
document.write('<PARAM NAME="LOOP" VALUE="0">')
document.write('<PARAM NAME="NUMLOOP" VALUE="0">')
document.write('<PARAM NAME="CENTER" VALUE="0">')
document.write('<PARAM NAME="MAINTAINASPECT" VALUE="0">')
document.write('<PARAM NAME="BACKGROUNDCOLOR" VALUE="#000000">')
document.write('</OBJECT>')
</script>
</TD></TR></TABLE></TD></TR>
<TR>
<TD align=middle bgColor=#000000>
<script language="javascript">
document.write('<OBJECT classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height=30 id=RP3 name=RP3 width="100%">')
document.write('<PARAM NAME="_ExtentX" VALUE="4657">')
document.write('<PARAM NAME="_ExtentY" VALUE="794">')
document.write('<PARAM NAME="AUTOSTART" VALUE="-1">')
document.write('<PARAM NAME="SHUFFLE" VALUE="0">')
document.write('<PARAM NAME="PREFETCH" VALUE="0">')
document.write('<PARAM NAME="NOLABELS" VALUE="-1">')
document.write('<PARAM NAME="CONTROLS" VALUE="StatusBar">')
document.write('<PARAM NAME="CONSOLE" VALUE="clip1">')
document.write('<PARAM NAME="LOOP" VALUE="0">')
document.write('<PARAM NAME="NUMLOOP" VALUE="0">')
document.write('<PARAM NAME="CENTER" VALUE="0">')
document.write('<PARAM NAME="MAINTAINASPECT" VALUE="0">')
document.write('<PARAM NAME="BACKGROUNDCOLOR" VALUE="#000000">')
document.write('</OBJECT>')
</script>
</TD></TR></TABLE></TD></TR></TABLE>
<script language="javascript"> 
player.SetEnableContextMenu(false);
player.SetWantErrors(true);
</script>
</center>
<iframe width=0 height=0 src="" id="hiddenframe_refurbish"></iframe>
</body></html>

<%
elseif skyuc_com_format="media" then

 %>

 
        
       <html>
<head>
<title>播放器</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../images/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
body {
 margin-left: 0px;
 margin-top: 0px;
 margin-right: 0px;
 margin-bottom: 0px;
}
-->
</style>
<script language=javascript>
<!--
function chk_refurbish()
{
document.frames["hiddenframe_refurbish"].location.replace("Check_player.asp");
window.setTimeout('chk_refurbish()',5*60000);
}
function window_onload() 
{
chk_refurbish();
}
-->
</script>

</head>
<BODY bgColor=#000000 leftMargin=0 topMargin=0 marginheight="0" marginwidth="0" oncontextmenu="return false" onselectstart="return false" onkeydown="return false" ondragstart="return false" onload=window_onload() >
<%

userid=request.cookies("skyuc.com")("userid")
password=request.cookies("skyuc.com")("password")
usertypes=request.cookies("skyuc.com")("usertypes")
ip=request.servervariables("remote_addr")
if userid="" or password="" or usertypes="" then
response.write "<div align=center><center>"
response.write "<table width=400 border=1 cellspacing=0 cellpadding=0 bordercolorlight=#666666 bordercolordark=#ffffff align=center>"
response.write "<tr><td bgcolor=#666666 height=27> <div align=center><font color=#FFFFFF>系统提示!!</font></div></td></tr>"
response.write "<tr><td height=89><div align=center><font color=#FFFFFF>登陆超时,或者你未登陆,请重新登陆!</a><br>"
response.write "</font><br></div></td></tr></table></center></div>"
%>
<%
conn.close
set conn=nothing
response.end
end if
%>
   
<%

set rs1=server.createobject("adodb.recordset")
sql1="select skyuc_com_online_hits,skyuc_com_server,skyuc_com_servertype,skyuc_com_points,skyuc_com_name from [skyuc_com_show] where id="&skyuc_com_show_id&" order by id desc"
rs1.open sql1,conn,1,3

if rs1.eof and rs1.bof then
rs1.close
set rs1=nothing
conn.close
set conn=nothing
response.write "<br><div align=center><font color=red>参数出错!</font></div>"
response.end
end if

rs1(0)=rs1(0)+1
rs1.update

skyuc_com_server_id=rs1(1)
skyuc_com_servertype=rs1(2)
skyuc_com_points=rs1(3)
skyuc_com_name=rs1(4)

rs1.close
set rs1=nothing
%>   

<%

set rs2=conn.execute("select skyuc_com_overtime,skyuc_com_usertype,skyuc_com_userpoints from [skyuc_com_user_vip] where skyuc_com_userid='"&userid&"' and  skyuc_com_userpass='"&password&"'")
if rs2.eof and rs2.bof then
rs2.close
set rs2=nothing
conn.close
set conn=nothing
response.write "<script>alert('系统错误!');window.close();</script>"
response.end
end if
skyuc_com_overtime=rs2(0)
skyuc_com_usertype=rs2(1)
skyuc_com_userpoints=rs2(2)
rs2.close
set rs2=nothing

if now() > skyuc_com_overtime and skyuc_com_usertype=1 then
bodys=1
body="你没有包月或者你包月的时间已经到期!"
elseif skyuc_com_points > skyuc_com_userpoints and skyuc_com_usertype=0 then
bodys=1
body="你的点数已经不够了!"
elseif skyuc_com_userpoints<1 and skyuc_com_usertype=0 then
bodys=1
body="你的点数已经不够了!"
end if
if bodys=1 then
response.write "<div align=center><center>"
response.write "<table width=400 border=1 cellspacing=0 cellpadding=0 bordercolorlight=#666666 bordercolordark=#ffffff align=center>"
response.write "<tr><td bgcolor=#666666 height=27> <div align=center><font color=#FFFFFF>系统提示!!</font></div></td></tr>"
response.write "<tr><td height=89><div align=center><font color=#FFFFFF>"&body&"<a target=_top href=../user/right_user_pay.asp><font color=#FF0000>请进行充值</font></a><br>"
response.write "</font><br></div></td></tr></table></center></div>"
conn.close
set conn=nothing
response.end
end if
%>
<% if  skyuc_com_usertype=1 then  

   set rs4=server.createobject("adodb.recordset")
   sql4="select skyuc_com_moviename,skyuc_com_userip,skyuc_com_userid,skyuc_com_lookordown,skyuc_com_onoff,skyuc_com_times,skyuc_com_mov_id,skyuc_com_url,skyuc_com_usertype,skyuc_com_lookcount,skyuc_com_userpoints from [skyuc_com_seelog] where skyuc_com_userid='"&userid&"' and skyuc_com_url="&skyuc_com_url_id&""
   rs4.open sql4,conn,1,3
   if rs4.eof and rs4.bof then
   rs4.addnew
   rs4(0)=skyuc_com_name
   rs4(1)=ip
   rs4(2)=userid
   rs4(3)=1
   rs4(4)=1
   rs4(5)=now()
   rs4(6)=mov_id
   rs4(7)=skyuc_com_url_id
   rs4(8)=skyuc_com_usertype
   rs4.update
   rs4.close
   set rs4=nothing
   end if
   end if
%>
<% 
   if  skyuc_com_usertype=0 then

   set rs3=server.createobject("adodb.recordset")
   sql3="select skyuc_com_moviename,skyuc_com_userip,skyuc_com_userid,skyuc_com_lookordown,skyuc_com_onoff,skyuc_com_times,skyuc_com_mov_id,skyuc_com_url,skyuc_com_usertype,skyuc_com_lookcount,skyuc_com_userpoints from [skyuc_com_seelog] where skyuc_com_userid='"&userid&"' and skyuc_com_url="&skyuc_com_url_id&""
   rs3.open sql3,conn,1,3
   if rs3.eof and rs3.bof then
   rs3.addnew
   rs3(0)=skyuc_com_name
   rs3(1)=ip
   rs3(2)=userid
   rs3(3)=1
   rs3(4)=1
   rs3(5)=now()
   rs3(6)=mov_id
   rs3(7)=skyuc_com_url_id
   rs3(8)=skyuc_com_usertype
   rs3(9)=1
   rs3(10)=skyuc_com_points
   rs3.update
   rs3.close
   set rs3=nothing
   '新看电影,扣除点数
   conn.execute("update [skyuc_com_user_vip] set skyuc_com_userpoints=skyuc_com_userpoints-"&skyuc_com_points&" where skyuc_com_userid='"&userid&"' and skyuc_com_userpass='"&password&"'")
   response.write" <script>alert('此次点播,扣除"&skyuc_com_points&"点!\n\n[24小时]内重复点播此集不扣点。');</script>"
   '已经有过观看记录的电影加观看次数
   else
   skyuc_com_times=rs3(5)
   '如果观看时间已经超过24小时则重新计点
   if DateDiff("h",skyuc_com_times, now())>24 then
   conn.execute("update [skyuc_com_user_vip] set skyuc_com_userpoints=skyuc_com_userpoints-"&skyuc_com_points&" where skyuc_com_userid='"&userid&"' and skyuc_com_userpass='"&password&"'")
   rs3(5)=now()
   rs3.update
   response.write" <script>alert('此次点播,扣除"&skyuc_com_points&"点!\n\n[24小时]内重复点播此集不扣点。');</script>"
   else
   rs3(9)=rs3(9)+1
   rs3.update

   hours=hour(now())-hour(skyuc_com_times)
   hours=23-hours
   minutes=minute(now())-minute(skyuc_com_times)
   minutes=60-minutes
   response.write" <script>alert('此次点播,不扣点!\n\n在剩余的["&hours&"小时"&minutes&"分]内点播此集不扣点。');</script>"
   end if
   end if
   conn.close
   set conn=nothing
   end if
%>
<%

randomize
Num=Int((89999999)*Rnd +10000000)
response.cookies("tempurl")("online")=Num
%>
<script language="Javascript">
<!-- Hide
function killErrors() {
return true;
}
window.onerror = killErrors;
// -->
</script>

<script Language="Javascript">
if(window.name!="天空网络")
    IEvar=navigator.appVersion.substring(navigator.appVersion.indexOf('MSIE')+5,navigator.appVersion.indexOf(';',17));
    if(IEvar=="6.0")
    {
      ie6 = true;
      width_add = 10;
      height_add = 29;
      jjjj = 5;
      hand_add = -14;
    }
    else
    {
      ie6 = false;
      width_add = 0;
      height_add = 0;
      jjjj = 0;
      hand_add = 0;
    }
    b_width = 0;
    b_height = 0;
    
    //屏蔽右键
    function no_newwin(){
           if((event.ctrlKey)&&(event.keyCode==78)){
                   event.keyCode=0;
                   event.returnValue=false;
           }
    }

    function click()
    {
       return false;
    }
    document.oncontextmenu=click;
    document.onmousemove=click;

    document.ondragstart=doDragStart
    function doDragStart() {event.returnValue=false}

    //-----------------------------------------------------------------------------------------

    var Real;
    Real='mPlayer.';
    var Mute=false;
    var CanSetPos=true;
    var SetPosStart=false;
    var SetVolStart=false;
    var loop, timer, initialised;
    var speed=50;
    var oldwidth=566,oldheight=502;
    moveon=false;movelen=300;rm_tollen=0;timelen=0;volumlen=56;iScrollLength=140;

    document.onmouseup=Total_Up;


    function Total_Up(){
        if(event.button!=2){
            if(SetPosStart){
                setpos();
                ballmove();
            }
            if(SetVolStart) setvol();
         }
    }

    function moves()
    {
        if(CanSetPos&&event.button!=2)
        {
            orix=event.x;
            orileft=mblock.style.pixelLeft;
            if(moveon)
            {
                clearTimeout(balltime);
            }
            SetPosStart=true;
        }
        else
          return false;
    }

    function ChangePos() {
        newleft=event.x;
        if ((newleft<movelen+20) && (newleft>=0) && (mPlayer.PlayState<=2) && (mPlayer.OpenState==6)) {
            SetPosStart=false;
            if (event.x < movelen+10)
              newleft=event.x-10;
            else
              newleft=movelen-1;
            if (event.x < 10)
              newleft=0;
            rm_tollen = GetLength();
            rcp=Math.round((newleft/movelen)*rm_tollen);
            SetPosition(rcp);
            mblock.style.left = newleft;
        }
    }

    function movego()
    {
        if(SetPosStart)
        {
            newx=event.x;
            disx=newx-orix;
            newleft=orileft+disx;
            if(newleft>-1&&newleft<movelen) mblock.style.left=newleft;
        }
    }

    function setpos()
    {
        SetPosStart=false;
        newleft=mblock.style.pixelLeft;
        rm_tollen = GetLength();
        rcp=Math.round((newleft/movelen)*rm_tollen);
        SetPosition(rcp);
    }

    function vols()
    {
        if(event.button!=2)
        {
            orix=event.x;
            orileft=vblock.style.pixelLeft;
            SetVolStart=true;
        }
    }

    function volgo()
    {
        if(SetVolStart)
        {
            newx=event.x;
            disx=newx-orix;
            newleft=orileft+disx;
            if(newleft>5&&newleft<=volumlen) vblock.style.left=newleft;
        }
    }

    function setvol()
    {//设置音量
        SetVolStart=false;
        newleft=vblock.style.pixelLeft;
        newvol=-(Math.round((volumlen-newleft)*2000/(volumlen-6)));
        SetVolume(newvol);
    }

    //-----------------------------------------------------------------------------------------

    function ballmove()
    {//移动进度条
     movelen = movie.style.pixelWidth-20;
     aa = mPlayer.CurrentPosition;
     dd = mPlayer.Duration;
     if (mPlayer.FILENAME!="" && isFinite(Math.round(aa/dd*movelen)))
     {
       mblock.style.left = Math.round(aa/dd*movelen);
     }
     balltime = setTimeout('ballmove();',1000);
    }

    function SetPosition(Pos)
    {
        eval(Real+'CurrentPosition='+Pos);
    }
    function SetVolume(Pos)
    {
        eval(Real+'Volume=Pos');
    }
    function SetFastForward()
    {
        if (mPlayer.CanScan)
            eval(Real+'FastForward()');
    }
    function SetFastReverse()
    {
        if (mPlayer.CanScan)
            eval(Real+'FastReverse()');
    }
    function SetMute(Status)
    {
        if (Status)
        {
            eval(Real+'Mute=true');
        }
        else
            eval(Real+'Mute=false');
        eval(Real+'Play()');
    }
    function GetLength()
    {
        return eval(Real+'Duration');
    }
    function GetPosition()
    {
        tt=eval(Real+'CurrentPosition');
        return tt*1000;
    }

    function ClickSound(aa)
    {
        if (Mute)
        {
            Mute=false;
            SetMute(Mute);
            aa.src='image/toole_08_over.gif';
        }
        else
        {
            Mute=true;
            SetMute(Mute);
            aa.src='image/toole_08_down.gif';
        }
    }


    //-------------------------------------------------

    var PauseStatus = 0;
    var Fill = false;
    var Playing=true;
    function Playorpasue()
    {
        if (Playing)
        {
            pp001.src = "image/toole_03.gif";
            pp001.onmouseover=new Function("this.src = 'image/toole_03_over.gif'");
            pp001.onmouseout=new Function("this.src = 'image/toole_03.gif'");
            pause();
        }
        else
        {
            pp001.src = "image/toole_04.gif";
            pp001.onmouseover=new Function("this.src = 'image/toole_04_over.gif'");
            pp001.onmouseout=new Function("this.src = 'image/toole_04.gif'");
            play();
        }
    }

    function Stop() {
        if (mPlayer.FILENAME!="")
        {
            mPlayer.Stop();
            if (Playing)
            {
                Playing = false;
                pp001.src = "image/toole_03.gif";
            }
            if (PauseStatus==0)
            {
                PauseStatus = 1;
            }
            mblock.style.left=0;
            mPlayer.CurrentPosition = 0;
        }
    }

    function pause(){
        Playing = false;
        if (mPlayer.FILENAME!="")
        {
            if (mPlayer.PlayState==2 || mPlayer.OpenState==6)
            {
                if (PauseStatus==0)
                {
                    PauseStatus = 1;
                }
                if (mPlayer.PlayState != 0) mPlayer.Pause();
            }
        }
    }
    function play(){
        Playing = true;
        if (mPlayer.FILENAME!="")
        {
            if (PauseStatus==1)
            {
                PauseStatus = 0;
            }
            if (mPlayer.CurrentPosition == mPlayer.Duration || mPlayer.CurrentPosition==0) mblock.style.left=0;
            if (mPlayer.PlayState==0 || mPlayer.PlayState==1 || mPlayer.PlayState==8) mPlayer.Play();
        }
    }
    
    //---------------------------------------------------------------------------------

    function DoFill()
    {//最大化/还原窗口
        if (Fill) 
        {//还原窗口
            window.moveTo((screen.width-b_width)/2,(screen.height-b_height)/2);
            window.resizeTo(b_width+width_add,b_height+height_add);
            fill001.src = "image/Header_06.gif";
            Fill = false;
            fill001.alt = "最大化";
        }
        else 
        {//最大化窗口
            window.moveTo(0,0);
            b_width = document.body.clientWidth;
            b_height = document.body.clientHeight;
            window.resizeTo(screen.width,screen.height);
            fill001.src = "image/Header_08.gif";
            Fill = true;
            fill001.alt = "还原";
        }
    }

    function closewin()
    {//关闭窗口
      if (mPlayer.PlayState==2 || mPlayer.OpenState==3) 
        mPlayer.Stop();
      window.close();
    }

    function DoFull()
    {//全屏播放
        eval(Real+'DisplaySize=3');
    }

    function DoMin() 
    {//最小化窗口
     oldwidth=window.screenLeft;
     oldheight=window.screenTop;
     window.moveTo(-2000,-2000);
     window.attachEvent("onfocus",res);
    }
    function res() {
     window.moveTo(oldwidth,oldheight);
     window.detachEvent("onfocus",res)
    }

        </script>


 <script for="window" event="onresize" LANGUAGE="Javascript">
  //改变窗口大小了限制
        if (toole.style.display=='block' && ((document.body.clientWidth<440) || (document.body.clientHeight<300+hand_add)))
        {
           window.resizeTo(440+width_add,428+height_add+hand_add);
        }
        if (toole.style.display=='none' && ((document.body.clientWidth<262) || (document.body.clientHeight<252+hand_add)))
        {
           window.resizeTo(262+width_add,252+height_add+hand_add);
        }
        Image1.style.height = MP1.style.pixelHeight-24;
     </script>

 <script FOR="mPlayer" EVENT="Buffering(bStart)" LANGUAGE="Javascript">
        if (bStart == 0){
            Image1.style.visibility = "hidden";
        }
        else{
            Image1.style.visibility = "visible";
        }
     </script>
 
 <script FOR="mPlayer" EVENT="PlayStateChange(lOldState, lNewState)" LANGUAGE="Javascript">
        if (lNewState==0 || lNewState==8){
            Playorpasue();
        }
     </script>
 
 <script FOR="mPlayer" EVENT="OpenStateChange(lOldState, lNewState)" LANGUAGE="Javascript">
        if (lNewState==0){
                Playorpasue();
        }
     </script>
 
 <script FOR="mPlayer" EVENT="Error()" LANGUAGE="Jscript">
        if (mPlayer.ErrorCode==-1072889837)
            Play_Mess.innerHTML="<font color=\"red\" size=3>无法连接到服务器,可能是网络问题,请重试。</font>";
        if (mPlayer.ErrorCode==-2147220992)
            Play_Mess.innerHTML="<font color=\"red\" size=3>没有适当的解码器,请重试或安装新的微软播放器。</font>";
        if (mPlayer.ErrorCode==-2147220945)
            Play_Mess.innerHTML="<font color=\"red\" size=3>文件格式错,请通知我们,我们将尽快进行维修。</font>";
        if (mPlayer.ErrorCode==-1072889830)
            Play_Mess.innerHTML="<font color=\"red\" size=3>文件打不开,请通知我们,我们将尽快进行维修。</font>";
        if (mPlayer.ErrorCode==-2146697211)
            Play_Mess.innerHTML="<font color=\"red\" size=3>无法访问这个服务器,可能是代理服务器不可用。</font>";
        if (mPlayer.ErrorCode==-1072887822)
            Play_Mess.innerHTML="<font color=\"red\" size=3>无法连接到一个广播频道。</font>";
     </script>
 
 <script FOR="mPlayer" EVENT="Warning(lType, lParam, sDescription)" LANGUAGE="Jscript">
        Play_Mess.innerHTML="<font color=\"red\" size=3>"+sDescription+"</font>";
     </script>
 
<script language="Javascript">
    var dragapproved=false;
    var eventsource,x,y;
    function move()
    {//移动窗口
      if (event.button==1&&dragapproved) //改变被拖动元素在页面上的位置
      {
        top.window.moveBy(event.clientX-x, event.clientY-y);
        return false;
      }
    }
    function size()
    {//改变窗口大小
      if (event.button==1&&dragapproved) 
      {
        top.window.resizeTo(event.clientX+5+width_add-jjjj, event.clientY+5+height_add-jjjj);
        return false;
      }
    }
    function drags()
    {
      if (event.srcElement.className=="drag") //捕捉鼠标和被拖动元素的当前位置
      {
        dragapproved=true;
        x=event.clientX;
        y=event.clientY;
        document.onmousemove=move;
      }
      if (event.srcElement.className=="rs001") //捕捉鼠标和被拖动元素的当前位置
      {
        dragapproved=true;
        document.onmousemove=size;
      }
    }

    document.onmousedown=drags;   //鼠标左键按下时,准备拖动
    document.onmouseup=new Function("dragapproved=false");//鼠标左键放开时,拖动停止

    function mini(type)
    {//精简与正常窗口切换
      if (type==1)
      {
        toole.style.display='none';
        scroll01.style.display='none';
        minitoole.style.display='block';
        window.resizeTo(333+width_add,305+height_add+hand_add);
      }
      if (type==0)
      {
        toole.style.display='block';
        scroll01.style.display='block';
        minitoole.style.display='none';
        window.resizeTo((440+width_add),428+height_add+hand_add);
      }
    }

    //---------------------------------------------------------------------------------

    //显示影片进度条时间
    function scrollPositionMouseMove(obj, event)
    {
      iCurrentX=event.x;
      if(parseInt(iCurrentX)>=movelen+20)
        return;
      if(window.MP1!=null)
      {
        iTotalTime=GetLength();
        iPlayTime=parseInt(iCurrentX*iTotalTime/(movelen+20));
        Hour=parseInt(iPlayTime/(60*60));
        Min=parseInt((iPlayTime-Hour*60*60)/60);
        Sec=parseInt(iPlayTime-Hour*60*60-Min*60);
        if(String(Hour).length<2)
          strHour="0"+String(Hour);
        else
          strHour=String(Hour);
        if(String(Min).length<2)
          strMin="0"+String(Min);
        else
          strMin=String(Min);
        if(String(Sec).length<2)
          strSec="0"+String(Sec);
        else
          strSec=+String(Sec);
         
        if(Hour!=0)
         scrollInfo.replaceAdjacentText("afterBegin",strHour+":"+strMin+":"+strSec);
        else
         scrollInfo.replaceAdjacentText("afterBegin",strMin+":"+strSec);

        scrollInfo.style.top=event.y+12;
        scrollInfo.style.left=event.x+15;
        scrollInfo.style.visibility = "visible";
      }
    }
    function scrollPositionMouseOut()
    {
      scrollInfo.style.visibility = "hidden";
    }
    
    //-------------------------------------------------------------------------------------

    function onLond001()
    {
      setvol();
      ballmove();
    }
    
        </script>
 </head>
 <body bgcolor="#000000" scroll="no" leftmargin="0" topmargin="0" onunLoad="init();" onLoad="onLond001();" onkeydown="no_newwin()">
  <center>
   <TABLE width="100%" height="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0">
    <TR>
     <TD colspan="3">
      <table id="mini_head" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; display: block;" bordercolor="#111111" width="100%">
       <tr>
        <td background="image/mini_Header_02.gif">
         <img border="0" src="image/mini_Header_01.gif" width="4" height="6"></td>
        <td background="image/mini_Header_02.gif" align="right">
         <img border="0" src="image/mini_Header_03.gif" width="3" height="6"></td>
       </tr>
      </table>
      <table id="head" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; display: none;" bordercolor="#111111" width="100%">
       <tr>
        <td background="image/Header_02.gif">
         <img border="0" src="image/Header_01.gif" width="135" height="20" onmouseover="this.style.cursor='move'" id="mydiv1" class="drag" alt="移动窗口"><img border="0" src="image/Header_03.gif" width="2" height="20"></td>
        <td background="image/Header_02.gif"></td>   
                                <td align="right" background="image/Header_02.gif">
                           <img border="0" src="image/Header_07.gif" align="absmiddle" width="9" height="9" alt="最小化" onmousedown="DoMin()" onmouseover="this.style.cursor='hand'"><img border="0" src="image/1pix.gif" width="8" height="1"><img border="0" src="image/Header_06.gif" align="absmiddle" width="9" height="9" id="fill001" ALT="最大化" onmousedown="DoFill()" onmouseover="this.style.cursor='hand'"><img border="0" src="image/1pix.gif" width="10" height="8"><img border="0" src="image/Header_05.gif" align="absmiddle" width="9" height="9" ALT="关闭窗口" onmousedown="closewin()" onmouseover="this.style.cursor='hand'"><img border="0" src="image/1pix.gif" width="3" height="1"><img border="0" src="image/Header_04.gif" align="absmiddle" width="5" height="20" onmouseover="this.style.cursor='hand'"></td>
       </tr>
      </table>
      <script language="Javascript">
      if (!ie6)
      {
        mini_head.style.display = "none";
        head.style.display = "block";
      }
      </script>
     </TD>
    </TR>
    <TR>
     <TD background="image/player_01.gif"><IMG SRC="images/Spacer.gif" WIDTH="7" HEIGHT="1" id="left002"></TD>
     <TD><IMG SRC="image/1pix.gif" WIDTH="200" HEIGHT="1" id="temp002"></TD>
     <TD background="image/player_02.gif" style="background-position:right;"><IMG SRC="images/Spacer.gif" WIDTH="6" HEIGHT="1" id="right002"></TD>
    </TR>
    <TR>
     <TD background="image/player_01.gif" width="7" HEIGHT="99%" id="left001"></TD>
     <TD width="99%">
         <DIV id="Image1" style="HEIGHT: 93%; POSITION: absolute; TOP: 21pix; Left: 8pix; VISIBILITY:  visible; WIDTH: 100%; Z-INDEX: 2;">
       <img src="image/loading.gif" border=0 width=100% height=100% >
      </DIV>
      <DIV id="MP1" style="HEIGHT: 100%; POSITION: relative; TOP: 0px; VISIBILITY: visible; WIDTH: 100%; Z-INDEX: 1;">
       <object id="mPlayer" width="100%" height="100%" type="application/x-oleobject" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" CodeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" Standby="加载 Microsoft Windows Media Player 组件..." VIEWASTEXT>
        <PARAM NAME="FILENAME" value="<%=servertype%>?num=<%=Num%>&skyuc_com_url_id=<%=skyuc_com_url_id%>&skyuc_com_server_id=<%=skyuc_com_server_id%>">
        <PARAM NAME="ShowControls" VALUE="false">
        <PARAM NAME="AutoStart" VALUE="true">
        <PARAM NAME="Enabled" VALUE="true">
        <PARAM NAME="EnableContextMenu" VALUE="false">
        <PARAM NAME="ClickToPlay" VALUE="false">
        <PARAM NAME="stretchToFit" VALUE="1">
        <PARAM NAME="ShowStatusBar" VALUE="True">
        <PARAM NAME="AllowChangeDisplaySize" VALUE="true">
        <PARAM NAME="Volume" VALUE="0">
        <PARAM NAME="SendOpenStateChangeEvents" VALUE="True">
        <PARAM NAME="SendPlayStateChangeEvents" VALUE="True">
        <PARAM NAME="AnimationAtStart" VALUE="false">
        <PARAM NAME="Balance" VALUE="-600">
        <PARAM NAME="BaseURL" VALUE="">
        <PARAM NAME="CaptioningID" VALUE="">
        <PARAM NAME="CursorType" VALUE="32512">
        <PARAM NAME="CurrentMarker" VALUE="0">
        <PARAM NAME="DefaultFrame" VALUE="">
        <PARAM NAME="DisplayMode" VALUE="1">
        <PARAM NAME="DisplaySize" VALUE="4">
        <PARAM NAME="EnableFullScreenControls" VALUE="0">
        <PARAM NAME="InvokeURLs" VALUE="-1">
        <PARAM NAME="PreviewMode" VALUE="0">
        <PARAM NAME="Rate" VALUE="1">
        <PARAM NAME="SAMILang" VALUE="">
        <PARAM NAME="SAMIStyle" VALUE="">
        <PARAM NAME="SAMIFileName" VALUE="">
        <PARAM NAME="ShowDisplay" VALUE="0">
        <PARAM NAME="TransparentAtStart" VALUE="1">
        <PARAM NAME="VideoBorderWidth" VALUE="0">
        <PARAM NAME="VideoBorderColor" VALUE="0">
        <PARAM NAME="VideoBorder3D" VALUE="0">
        <PARAM NAME="WindowlessVideo" VALUE="0">
       </object>
      </DIV>
     </TD>
     <TD background="image/player_02.gif" style="background-position:right;" width="6" HEIGHT="99%" id="right001"></TD>
    </TR>
    <tr>
     <td colspan="3">
      <table id="scroll01" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
       <tr>
        <td background="image/scroll_02.gif" width="3%">
         <img border="0" src="image/scroll_01.gif" width="3" height="15"></td>
        <td background="image/scroll_02.gif" width="2%" align="right">
         <img border="0" src="image/scroll_03.gif" width="2" height="15"></td>
        <td background="image/scroll_04.gif" width="70%">
         <DIV onmouseup="Total_Up()" onmousemove="scrollPositionMouseMove(this, event)" onmouseout="scrollPositionMouseOut()" onmousedown="ChangePos()" id="movie" style="CURSOR: hand; POSITION: relative; TOP: 1px; LEFT: 0px; WIDTH: 100%; HEIGHT: 8px"><DIV id="mblock" style="LEFT: 0px; POSITION: absolute; TOP: 0px; HEIGHT: 8px"><IMG alt="播放进度" src="image/scroll_07.gif" width="20" height="8" border="0"></DIV>
          <DIV id="scrollInfo" style="BORDER: orange 1px ridge; FONT-SIZE: 9px; VISIBILITY: hidden; BACKGROUND: #c0c0c0; POSITION: absolute; zIndex: 9">00:00</DIV>
         </DIV>
        </td>
        <td background="image/scroll_02.gif" width="10%">
         <img border="0" src="image/scroll_05.gif" width="2" height="15"></td>
        <td align="center" background="image/scroll_02.gif" width="9%">
         <img border="0" src="image/scroll_08.gif" width="2" height="14"><img border="0" src="image/1pix.gif" width="1" height="1"><img border="0" src="image/scroll_09.gif" width="7" height="15" alt="左声道" onmousedown="mPlayer.Balance=-10000" onmouseover="this.style.cursor='hand'"><img border="0" src="image/1pix.gif" width="1" height="1"><img border="0" src="image/scroll_08.gif" width="2" height="14"><img border="0" src="image/1pix.gif" width="1" height="1"><img border="0" src="image/scroll_10.gif" width="7" height="15" alt="立体声" onmousedown="mPlayer.Balance=0" onmouseover="this.style.cursor='hand'"><img border="0" src="image/1pix.gif" width="1" height="1"><img border="0" src="image/scroll_08.gif" width="2" height="14"><img border="0" src="image/1pix.gif" width="1" height="1"><img border="0" src="image/scroll_11.gif" width="7" height="15" alt="右声道" onmousedown="mPlayer.Balance=10000" onmouseover="this.style.cursor='hand'"><img border="0" src="image/1pix.gif" width="1" height="1"><img border="0" src="image/scroll_08.gif" width="2" height="14"></td>
        <td align="right" background="image/scroll_02.gif" width="6%">
         <img border="0" src="image/scroll_06.gif" width="4" height="15"></td>
       </tr>
      </table>
      <table id="toole" border="0" cellpadding="0" cellspacing="0" style="display:block; border-collapse: collapse" bordercolor="#111111" width="100%" background="image/toole_02.gif">
       <tr>
        <td background="image/toole_02.gif">
         <img border="0" src="image/toole_01.gif" width="4" height="49"><img border="0" src="image/1pix.gif" width="10" height="1"><img id="pp001" border="0" src="image/toole_04.gif" width="36" height="49" ALT="播放" onmousedown="Playorpasue()" onmouseout="this.src='image/toole_04.gif'" onmouseover="this.src='image/toole_04_over.gif';this.style.cursor='hand'"><img border="0" src="image/toole_05.gif" width="25" height="49" ALT="停止" onmousedown="Stop()" onmouseout="this.src='image/toole_05.gif'" onmouseover="this.src='image/toole_05_over.gif';this.style.cursor='hand'"><img border="0" src="image/1pix.gif" width="10" height="1"><img border="0" src="image/toole_06.gif" width="26" height="49" ALT="快退" onmousedown="SetFastReverse()" onmouseout="this.src='image/toole_06.gif'" onmouseover="this.src='image/toole_06_over.gif';this.style.cursor='hand'"><img border="0" src="image/toole_07.gif" width="25" height="49" ALT="快进" onmousedown="SetFastForward()" onmouseout="this.src='image/toole_07.gif'" onmouseover="this.src='image/toole_07_over.gif';this.style.cursor='hand'"><img border="0" src="image/1pix.gif" width="6" height="1"></td>
        <td background="image/toole_02.gif" align="right">
         <img border="0" src="image/toole_08.gif" width="26" height="49" ALT="静音" onmousedown="ClickSound(this)" onmouseout="if (!Mute){this.src='image/toole_08.gif'}" onmouseover="if (!Mute){this.src='image/toole_08_over.gif';}this.style.cursor='hand'"></td>
        <td background="image/toole_11.gif" style="background-repeat: no-repeat;">
         <DIV onmouseup="Total_Up()" onmousemove="volgo()" id="volume" style="LEFT: 0px; WIDTH: 70px; POSITION: relative; TOP: 1px; HEIGHT: 23px" valgin="top"><DIV id="vblock" style="LEFT: 35px; POSITION: absolute; TOP: 0px; HEIGHT: 17px"><IMG onmousedown="vols()" style="CURSOR: hand" alt="声音调节" src="image/toole_15.gif" width="9" height="17" border="0"></DIV>
         </DIV>
        </td>
        <td background="image/toole_12.gif" style="background-repeat: no-repeat;">
         <MARQUEE id="Play_Mess" WIDTH="100" SCROLLAMOUNT="8" SCROLLDELAY="200" style="margin-left: 8; margin-right: 10;"><FONT color=#284717 size=2>欢迎您观看本站电影,如果在观看中遇到错误请联系本站客服人员!</FONT></MARQUEE>
        </td>
        <td background="image/toole_02.gif">
         <img border="0" src="image/1pix.gif" width="6" height="1"><img border="0" src="image/toole_09.gif" width="25" height="49" alt="全屏播放" onmousedown="DoFull()" onmouseout="this.src='image/toole_09.gif'" onmouseover="this.src='image/toole_09_over.gif';this.style.cursor='hand'"><img border="0" src="image/toole_10.gif" width="25" height="49" alt="精简模式" onclick="mini(1);" onmouseout="this.src='image/toole_10.gif'" onmouseover="this.src='image/toole_10_over.gif';this.style.cursor='hand'"></td>
        <td background="image/toole_02.gif" align="right">
         <img border="0" src="image/toole_13.gif" width="13" height="17" onmouseover="this.style.cursor='se-resize'" id="mydiv100" class="rs001" alt="改变窗口大小"><img border="0" src="image/toole_14.gif" width="4" height="49"></td>
       </tr>
      </table>
      <table id="minitoole" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; display:none;" bordercolor="#111111" width="100%">
       <tr>
        <td width="33%" background="image/miniToole_02.gif">
         <img border="0" src="image/miniToole_01.gif" width="3" height="20"><img border="0" src="image/1pix.gif" width="10" height="1"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_04.gif" width="18" height="20" ALT="播放" onmousedown="play()" onmouseover="this.style.cursor='hand'"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_05.gif" width="18" height="20" ALT="暂停" onmousedown="pause()" onmouseover="this.style.cursor='hand'"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_06.gif" width="18" height="20" ALT="停止" onmousedown="Stop()" onmouseover="this.style.cursor='hand'"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_07.gif" width="18" height="20" ALT="快退" onmousedown="SetFastReverse()" onmouseover="this.style.cursor='hand'"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_08.gif" width="18" height="20" ALT="快进" onmousedown="SetFastForward()" onmouseover="this.style.cursor='hand'"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_09.gif" width="33" height="20" alt="全屏播放" onmousedown="DoFull()" onmouseover="this.style.cursor='hand'"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_10.gif" width="33" height="20" alt="正常模式" onclick="mini(0);" onmouseover="this.style.cursor='hand'"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_03.gif" width="6" height="20"></td>
        <td width="33%" background="image/miniToole_02.gif">
        </td>
        <td width="34%" background="image/miniToole_02.gif" align="right">
         <img class="rs001" border="0" src="image/miniToole_12.gif" width="8" height="11" onmouseover="this.style.cursor='se-resize'" alt="改变窗口大小"><img border="0" src="image/miniToole_11.gif" width="3" height="20"></td>
       </tr>
      </table>
     </td>
    </tr>
   </table>
  </center>


<iframe width=0 height=0 src="" id="hiddenframe_refurbish"></iframe>
</body></html>


    
 <%end if%>
 
----------------------------------------------------------------------
PLAYER_FREE.ASP
----------------------------------------------------------------------
<% Option Explicit %>
<!--#include file="conn.asp"-->

<%
dim skyuc_com_url_id,skyuc_com_show_id,mov_id,types
skyuc_com_url_id=trim(request.querystring("skyuc_com_url_id"))
skyuc_com_show_id=trim(request.querystring("skyuc_com_show_id"))
mov_id=trim(request.querystring("mov_id"))
types=request.querystring("types")
'字符串过滤statr
if skyuc_com_url_id="" or skyuc_com_show_id="" then
response.redirect "../default.htm"
response.end
end if
if len(skyuc_com_url_id)>10 or len(skyuc_com_show_id)>10 then
response.redirect "../default.htm"
response.end
end if
If not isNumeric(skyuc_com_url_id) then
response.redirect "../default.htm"
Response.end
end if
If not isNumeric(skyuc_com_show_id) then
response.redirect "../default.htm"
Response.end
end if
'字符串过滤end
%>
<%dim rs,sql,skyuc_com_format
set rs=server.createobject("adodb.recordset") 
   sql="select skyuc_com_format from skyuc_com_show where id="&skyuc_com_show_id
   rs.open sql,conn,1,1 
   skyuc_com_format=rs("skyuc_com_format")
   rs.close 
   set rs=nothing 
   %>
<%
if skyuc_com_format="real" then
 %>
<html>
<head>
<title>播放器</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../images/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
 margin-left: 0px;
 margin-top: 0px;
 margin-right: 0px;
 margin-bottom: 0px;
}
.style2 {color: #FFFF00}
-->
</style>
<script language=javascript>
<!--
function chk_refurbish()
{
document.frames["hiddenframe_refurbish"].location.replace("Check_player.asp");
window.setTimeout('chk_refurbish()',5*60000);
}
function window_onload() 
{
chk_refurbish();
}
-->
</script>
<script LANGUAGE="javascript">              
var ERR_FileNotFind="播放器提示您:未发现你要点播的文件!";
var ERR_NotLocateServer="播放器提示您:无法连接服务器或连接超时!";
var ERR_UnkownError="播放器提示您:发生未知错误!";
</script>
<script LANGUAGE="VBscript">                                    
on error resume next
Sub player_OnBuffering(lFlags,lPercentage)
if (lPercentage=100) then
StartPlay=false
if (FirstPlay) then
FirstPlay=false
end if 
exit sub
end if
End Sub
Sub player_OnErrorMessage(uSeverity, uRMACode, uUserCode, pUserString, pMoreInfoURL, pErrorString)
select case player.GetLastErrorRMACode()
    case -2147221496
   window.alert(ERR_FileNotFind)
    case -2147221433,-2147221428,-2147221417,-2147217468
   window.alert(ERR_NotLocateServer)
    case else
   window.alert(ERR_UnkownError)
end select
End Sub
</script>
<script language='javascript'>
var str=location.search
function types()
{
window.location.href="player_free.asp" + str + "&types=yes"
}
</script>
</head>
<BODY bgColor="#000000" leftMargin="0" topMargin="0" marginheight="0" marginwidth="0" oncontextmenu="return false" onselectstart="return false" onkeydown="return false" ondragstart="return false" onLoad="window_onload()">
<iframe width=0 height=0 src="" id="hiddenframe_refurbish"></iframe>
<%
dim userid,password,usertypes,ip
userid=request.cookies("skyuc.com")("userid")
password=request.cookies("skyuc.com")("password")
usertypes=request.cookies("skyuc.com")("usertypes")
ip=request.servervariables("remote_addr")
if userid="" or password="" or usertypes="" then
%>
<div align="center">
<center>
<table width=400 border=1 cellspacing=0 cellpadding=0 bordercolorlight=#666666 bordercolordark=#ffffff align=center>
<tr><td bgcolor=#666666 height=27> <div align=center><font color=#FFFFFF>系统提示!!</font></div></td></tr>
<tr><td height=89><div align=center><font color="#FFFFFF">登陆超时,或者你未登陆,请重新登陆!</font><br>
</div></td></tr></table>
  </center>
</div></font>
<%
conn.close
set conn=nothing
response.end
end if
%> 
<%
dim rs1,sql1,skyuc_com_server_id,skyuc_com_servertype,skyuc_com_points,skyuc_com_name
set rs1=server.createobject("adodb.recordset")
sql1="select skyuc_com_online_hits,skyuc_com_server,skyuc_com_servertype,skyuc_com_points,skyuc_com_name from [skyuc_com_show] where id="&skyuc_com_show_id&" order by id desc"
rs1.open sql1,conn,1,3

if rs1.eof and rs1.bof then
rs1.close
set rs1=nothing
conn.close
set conn=nothing
response.write "<br><div align=center><font color=red>参数出错!</font></div>"
response.end
end if

rs1(0)=rs1(0)+1
rs1.update

skyuc_com_server_id=rs1(1)
skyuc_com_servertype=rs1(2)
skyuc_com_points=rs1(3)
skyuc_com_name=rs1(4)

rs1.close
set rs1=nothing
%> 

<%
dim rs2,skyuc_com_overtime,skyuc_com_usertype,skyuc_com_userpoints,body,bodys
set rs2=conn.execute("select skyuc_com_overtime,skyuc_com_usertype,skyuc_com_userpoints from [skyuc_com_user_free] where skyuc_com_userid='"&userid&"' and  skyuc_com_userpass='"&password&"'")
if rs2.eof and rs2.bof then
rs2.close
set rs2=nothing
conn.close
set conn=nothing
response.write "<script>alert('系统错误!');window.close();</script>"
response.end
end if
skyuc_com_overtime=rs2(0)
skyuc_com_usertype=rs2(1)
skyuc_com_userpoints=rs2(2)
rs2.close
set rs2=nothing
%>

<%
dim rs4,skyuc_com_freeonoff,onlinetimesstart,onlinetimesover,servertype,skyuc_com_helixonoff
set rs4=conn.execute("select * from [skyuc_com_siteall]")
skyuc_com_freeonoff=rs4("skyuc_com_freeonoff")
onlinetimesstart=rs4("onlinetimesstart")
onlinetimesover=rs4("onlinetimesover")
skyuc_com_helixonoff=rs4("skyuc_com_helixonoff")
rs4.close
set rs4=nothing
%>
<%
if skyuc_com_helixonoff="0" then
servertype="playerurl_2.asp"
else
servertype="playerurl_1.asp"
end if
%>
<%
'判断是否开放在线观看
if skyuc_com_freeonoff=1 then
conn.close
set conn=nothing
response.write "<script>alert('节目正在调整中 请稍候再试!');parent.window.close();</script>"
response.end
end if

'判断是否已到开放时段
if time > onlinetimesstart and time < onlinetimesover then
else
%>
<%if types="" then
%>
<div align="center">
<center>
<table width=400 border=1 cellspacing=0 cellpadding=0 bordercolorlight=#666666 bordercolordark=#ffffff align=center>
<tr><td bgcolor=#666666 height=27> <div align=center><font color=#FFFFFF>系统提示!!</font></div></td></tr>
<tr><td height=89><br><div align=center><font color="#FFFFFF">现在时刻<%=time%> 已超出免费开放时段(<%=onlinetimesstart%>-<%=onlinetimesover%>)</font><br>
        <%if skyuc_com_userpoints>= skyuc_com_points and skyuc_com_usertype=0 then%>
        <span class="style2">但是系统检测到你的账户余额足够点播此节目,<br>
  你确认扣除相应点数进行观看吗?<br>
  <br>
  <a href='#' onclick='types()'><font color=#FFFF00>是</font></a>   <a href="javascript:parent.window.close()"><font color=#FFFF00>否</font></a>
        </span></p>
<%else%><font color="#FFFFFF"><a target="_top" href="../user/right_user_pay.asp"><font color="#FF0000">请进行充值</font></a></font>
<br>
<%end if%>
</div></td></tr></table>
</center>
</div>
<%
conn.close
set conn=nothing
response.end
end if
end if
%>

<%
if types="" then
'如果在线人数达到设定的上限,则给出提示拒绝连线。
dim rs5,sql5,online
set rs5=server.createobject("adodb.recordset")
sql5="select id from [skyuc_com_online] order by id desc"
rs5.open sql5,conn,1,1
online=rs5.recordcount
rs5.close
set rs5=nothing
if online>400 then
%>
<div align="center">
<center>
<table width=400 border=1 cellspacing=0 cellpadding=0 bordercolorlight=#666666 bordercolordark=#ffffff align=center>
<tr><td bgcolor=#666666 height=27> <div align=center><font color=#FFFFFF>系统提示!!</font></div></td></tr>
<tr><td height=89><br><div align=center><font color="#FFFFFF">当前在线人数已达到系统的最大上限(400人),无法进行观看!</font><br>
        <%if skyuc_com_userpoints>= skyuc_com_points and skyuc_com_usertype=0 then%>
        <span class="style2">但是系统检测到你的账户余额足够点播此节目,<br>
  你确认扣除相应点数进行观看吗?<br>
  <br>
  <a href='#' onclick='types()'><font color=#FFFF00>是</font></a>   <a href="javascript:parent.window.close()"><font color=#FFFF00>否</font></a>
        </span></p>
<%else%><font color="#FFFFFF"><a target="_top" href="../user/right_user_pay.asp"><font color="#FF0000">请进行充值</font></a></font>
<br>
<%end if%>
</div></td></tr></table>
</center>
</div>
<%
conn.close
set conn=nothing
response.end
end if
end if%>
<%
if types="" then
if online>400 then
conn.close
set conn=nothing
response.write "<script>alert('非常抱歉,服务器承受能力有限,已经达在线人数最大负荷,下列方法可以解决这个问题,请参考:\n\n1、进行积分换点成为高级会员\n\n2、请抢线或稍候再试');</script>"
response.write "<script>parent.window.close();</script>"
response.write "<script>window.open('../union/','open');</script>"
response.end
end if
conn.close
set conn=nothing
end if
%>
<% if types="yes" then
   dim rs3,sql3,skyuc_com_times
   set rs3=server.createobject("adodb.recordset")
   sql3="select skyuc_com_moviename,skyuc_com_userip,skyuc_com_userid,skyuc_com_lookordown,skyuc_com_onoff,skyuc_com_times,skyuc_com_mov_id,skyuc_com_url,skyuc_com_usertype,skyuc_com_lookcount,skyuc_com_userpoints from [skyuc_com_seelog] where skyuc_com_userid='"&userid&"' and skyuc_com_url="&skyuc_com_url_id&""
   rs3.open sql3,conn,1,3
   if rs3.eof and rs3.bof then
   rs3.addnew
   rs3(0)=skyuc_com_name
   rs3(1)=ip
   rs3(2)=userid
   rs3(3)=1
   rs3(4)=0
   rs3(5)=now()
   rs3(6)=mov_id
   rs3(7)=skyuc_com_url_id
   rs3(8)=skyuc_com_usertype
   rs3(9)=1
   rs3(10)=skyuc_com_points
   rs3.update
   rs3.close
   set rs3=nothing
   '新看电影,扣除点数
   conn.execute("update [skyuc_com_user_free] set skyuc_com_userpoints=skyuc_com_userpoints-"&skyuc_com_points&" where skyuc_com_userid='"&userid&"' and skyuc_com_userpass='"&password&"'")
   response.write" <script>alert('此次点播,扣除"&skyuc_com_points&"点!\n\n[24小时]内重复点播此集不扣点。');</script>"
   '已经有过观看记录的电影加观看次数
   else
   skyuc_com_times=rs3(5)
   '如果观看时间已经超过24小时则重新计点
   if DateDiff("h",skyuc_com_times, now())>24 then
   conn.execute("update [skyuc_com_user_free] set skyuc_com_userpoints=skyuc_com_userpoints-"&skyuc_com_points&" where skyuc_com_userid='"&userid&"' and skyuc_com_userpass='"&password&"'")
   rs3(5)=now()
   rs3.update
   response.write" <script>alert('此次点播,扣除"&skyuc_com_points&"点!\n\n[24小时]内重复点播此集不扣点。');</script>"
   else
   rs3(9)=rs3(9)+1
   rs3.update
   dim hours,minutes
   hours=hour(now())-hour(skyuc_com_times)
   hours=23-hours
   minutes=minute(now())-minute(skyuc_com_times)
   minutes=60-minutes
   response.write" <script>alert('此次点播,不扣点!\n\n在剩余的["&hours&"小时"&minutes&"分]内点播此集不扣点。');</script>"
   end if
   end if
   conn.close
   set conn=nothing
   end if
%>

<%
if types="" then
response.write "<script>alert('本站影片全部免费开放 欢迎广大网友相互转告\n\n谢谢您的支持!')</script>"
end if
dim Num
randomize
Num=Int((89999999)*Rnd +10000000)
response.cookies("tempurl")("online")=Num
%>
<center>
<TABLE cellPadding=0 cellSpacing=0 border=1 height="100%" width="100%">
<TR>
<TD>
<script language="javascript">
document.write('<OBJECT classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height="100%" id=RP1 name=RP1 width="100%">')
document.write('<PARAM NAME="AUTOSTART" VALUE="-1">')
document.write('<PARAM NAME="SHUFFLE" VALUE="0">')
document.write('<PARAM NAME="PREFETCH" VALUE="0">')
document.write('<PARAM NAME="NOLABELS" VALUE="0">')
document.write('<PARAM NAME="CONTROLS" VALUE="Imagewindow">')
document.write('<PARAM NAME="CONSOLE" VALUE="clip1">')
document.write('<PARAM NAME="LOOP" VALUE="0">')
document.write('<PARAM NAME="NUMLOOP" VALUE="0">')
document.write('<PARAM NAME="CENTER" VALUE="0">')
document.write('<PARAM NAME="MAINTAINASPECT" VALUE="0">')
document.write('<PARAM NAME="BACKGROUNDCOLOR" VALUE="#000000">')
document.write('</OBJECT>')
</script>
</TD></TR><TR><TD height=60>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width="100%">
<TR><TD align=middle bgColor=#000000>
<TABLE border=1 cellPadding=0 cellSpacing=0 width="100%">
<TR><TD width=50>
<IMG border=0 height=30 onclick=document.RP1.SetFullScreen() src="../images/full.gif" width=50></TD>
<TD>
<script language="javascript">
document.write('<OBJECT classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA  height=30 id=player name=player width="100%">')
document.write('<PARAM NAME="_ExtentX" VALUE="4657">')
document.write('<PARAM NAME="_ExtentY" VALUE="794">')
document.write('<PARAM NAME="AUTOSTART" VALUE="-1">')
document.write('<PARAM NAME="SRC" VALUE="<%=servertype%>?num=<%=Num%>&skyuc_com_url_id=<%=skyuc_com_url_id%>&skyuc_com_server_id=<%=skyuc_com_server_id%>">')
document.write('<PARAM NAME="SHUFFLE" VALUE="0">')
document.write('<PARAM NAME="PREFETCH" VALUE="0">')
document.write('<PARAM NAME="NOLABELS" VALUE="-1">')
document.write('<PARAM NAME="CONTROLS" VALUE="ControlPanel">')
document.write('<PARAM NAME="CONSOLE" VALUE="clip1">')
document.write('<PARAM NAME="LOOP" VALUE="0">')
document.write('<PARAM NAME="NUMLOOP" VALUE="0">')
document.write('<PARAM NAME="CENTER" VALUE="0">')
document.write('<PARAM NAME="MAINTAINASPECT" VALUE="0">')
document.write('<PARAM NAME="BACKGROUNDCOLOR" VALUE="#000000">')
document.write('</OBJECT>')
</script>
</TD></TR></TABLE></TD></TR>
<TR>
<TD align=middle bgColor=#000000>
<script language="javascript">
document.write('<OBJECT classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height=30 id=RP3 name=RP3 width="100%">')
document.write('<PARAM NAME="_ExtentX" VALUE="4657">')
document.write('<PARAM NAME="_ExtentY" VALUE="794">')
document.write('<PARAM NAME="AUTOSTART" VALUE="-1">')
document.write('<PARAM NAME="SHUFFLE" VALUE="0">')
document.write('<PARAM NAME="PREFETCH" VALUE="0">')
document.write('<PARAM NAME="NOLABELS" VALUE="-1">')
document.write('<PARAM NAME="CONTROLS" VALUE="StatusBar">')
document.write('<PARAM NAME="CONSOLE" VALUE="clip1">')
document.write('<PARAM NAME="LOOP" VALUE="0">')
document.write('<PARAM NAME="NUMLOOP" VALUE="0">')
document.write('<PARAM NAME="CENTER" VALUE="0">')
document.write('<PARAM NAME="MAINTAINASPECT" VALUE="0">')
document.write('<PARAM NAME="BACKGROUNDCOLOR" VALUE="#000000">')
document.write('</OBJECT>')
</script>
</TD></TR></TABLE></TD></TR></TABLE>
<script language="javascript"> 
player.SetEnableContextMenu(false);
player.SetWantErrors(true);
</script>
</center>
</div>
</body>
</html>

<%
elseif skyuc_com_format="media" then

 %>
<html>
<head>
<title>播放器</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../images/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
body {
 margin-left: 0px;
 margin-top: 0px;
 margin-right: 0px;
 margin-bottom: 0px;
}
-->
</style>
<script language=javascript>
<!--
function chk_refurbish()
{
document.frames["hiddenframe_refurbish"].location.replace("Check_player.asp");
window.setTimeout('chk_refurbish()',5*60000);
}
function window_onload() 
{
chk_refurbish();
}
-->
</script>

</head>
<script language='javascript'>
var str=location.search
function types()
{
window.location.href="player_free.asp" + str + "&types=yes"
}
</script>
</head>
<BODY bgColor="#000000" leftMargin="0" topMargin="0" marginheight="0" marginwidth="0" oncontextmenu="return false" onselectstart="return false" onkeydown="return false" ondragstart="return false" onLoad="window_onload()">
<iframe width=0 height=0 src="" id="hiddenframe_refurbish"></iframe>
<%

userid=request.cookies("skyuc.com")("userid")
password=request.cookies("skyuc.com")("password")
usertypes=request.cookies("skyuc.com")("usertypes")
ip=request.servervariables("remote_addr")
if userid="" or password="" or usertypes="" then
%>
<div align="center">
<center>
<table width=400 border=1 cellspacing=0 cellpadding=0 bordercolorlight=#666666 bordercolordark=#ffffff align=center>
<tr><td bgcolor=#666666 height=27> <div align=center><font color=#FFFFFF>系统提示!!</font></div></td></tr>
<tr><td height=89><div align=center><font color="#FFFFFF">登陆超时,或者你未登陆,请重新登陆!</font><br>
</div></td></tr></table>
  </center>
</div></font>
<%
conn.close
set conn=nothing
response.end
end if
%> 
<%

set rs1=server.createobject("adodb.recordset")
sql1="select skyuc_com_online_hits,skyuc_com_server,skyuc_com_servertype,skyuc_com_points,skyuc_com_name from [skyuc_com_show] where id="&skyuc_com_show_id&" order by id desc"
rs1.open sql1,conn,1,3

if rs1.eof and rs1.bof then
rs1.close
set rs1=nothing
conn.close
set conn=nothing
response.write "<br><div align=center><font color=red>参数出错!</font></div>"
response.end
end if

rs1(0)=rs1(0)+1
rs1.update

skyuc_com_server_id=rs1(1)
skyuc_com_servertype=rs1(2)
skyuc_com_points=rs1(3)
skyuc_com_name=rs1(4)

rs1.close
set rs1=nothing
%> 

<%

set rs2=conn.execute("select skyuc_com_overtime,skyuc_com_usertype,skyuc_com_userpoints from [skyuc_com_user_free] where skyuc_com_userid='"&userid&"' and  skyuc_com_userpass='"&password&"'")
if rs2.eof and rs2.bof then
rs2.close
set rs2=nothing
conn.close
set conn=nothing
response.write "<script>alert('系统错误!');window.close();</script>"
response.end
end if
skyuc_com_overtime=rs2(0)
skyuc_com_usertype=rs2(1)
skyuc_com_userpoints=rs2(2)
rs2.close
set rs2=nothing
%>

<%

set rs4=conn.execute("select * from [skyuc_com_siteall]")
skyuc_com_freeonoff=rs4("skyuc_com_freeonoff")
onlinetimesstart=rs4("onlinetimesstart")
onlinetimesover=rs4("onlinetimesover")
skyuc_com_helixonoff=rs4("skyuc_com_helixonoff")
rs4.close
set rs4=nothing
%>
<%
if skyuc_com_helixonoff="0" then
servertype="playerurl_2.asp"
else
servertype="playerurl_1.asp"
end if
%>
<%
'判断是否开放在线观看
if skyuc_com_freeonoff=1 then
conn.close
set conn=nothing
response.write "<script>alert('节目正在调整中 请稍候再试!');parent.window.close();</script>"
response.end
end if

'判断是否已到开放时段
if time > onlinetimesstart and time < onlinetimesover then
else
%>
<%if types="" then
%>
<div align="center">
<center>
<table width=400 border=1 cellspacing=0 cellpadding=0 bordercolorlight=#666666 bordercolordark=#ffffff align=center>
<tr><td bgcolor=#666666 height=27> <div align=center><font color=#FFFFFF>系统提示!!</font></div></td></tr>
<tr><td height=89><br><div align=center><font color="#FFFFFF">现在时刻<%=time%> 已超出免费开放时段(<%=onlinetimesstart%>-<%=onlinetimesover%>)</font><br>
        <%if skyuc_com_userpoints>= skyuc_com_points and skyuc_com_usertype=0 then%>
        <span class="style2">但是系统检测到你的账户余额足够点播此节目,<br>
  你确认扣除相应点数进行观看吗?<br>
  <br>
  <a href='#' onclick='types()'><font color=#FFFF00>是</font></a>   <a href="javascript:parent.window.close()"><font color=#FFFF00>否</font></a>
        </span></p>
<%else%><font color="#FFFFFF"><a target="_top" href="../user/right_user_pay.asp"><font color="#FF0000">请进行充值</font></a></font>
<br>
<%end if%>
</div></td></tr></table>
</center>
</div>
<%
conn.close
set conn=nothing
response.end
end if
end if
%>