📄 rm.php
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Language" content="zh-cn">
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
a:link {
color: #FFFFFF;
}
-->
</style>
<link href="img/Netbar_css.css" rel="stylesheet" type="text/css">
<?
include_once("globla.php");
require $movie_root.("/Connections/showmov.php");
$url=sql_cut($_GET['urlid']);
$movid=sql_cut($_GET['movid']);
$id=$_GET['id'];
$uid=sql_cut($_COOKIE['uid']);
$winduser=sql_cut($_COOKIE['winduser']);
if($url="" || $movid=="" || $id==""){
echo "<script>alert('参数错误!');location.href='default.php';</script>";
}
$sql="update jdzcnnet_movie set hits=hits+1 where id=".$movid."";
mysql_query($sql);
//写入观看记录
$exe="select title,movcount,serverip,looklevel from jdzcnnet_movie where hidden=0 and id=".$movid."";
$rs=mysql_fetch_array(mysql_query($exe));
if(!$rs[0]){echo "<script>alert('影片参数错误\n请勿非法提交!');location.href='default.php';</script>";}
$userip=$_SERVER['REMOTE_ADDR'];
$title=$rs[0]; //影片标题
$serverip=$rs[2]; //服务器IP
$looklevel=$rs[3]; //观看等级
$movcount=$rs[1]; //消费点数
if(wbip($userip)==true)
{
$username=$wbname;
}
elseif($looklevel=0)
{
$username="免费电影";
}
elseif ($uid=="" | $winduser="")
{
?>
<div align="center">
<p>
<br>
<br>
<table width="500" border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse">
<form id="form1" name="login" method="post" action="CheckLogin.php" onSubmit="return chksub();" target="_parent"><tr>
<td width="62">用户名:</td>
<td width="106"><label>
<input name="pwuser" type="text" class="input" id="pwuser" size="15" />
</label></td>
</tr>
<tr>
<td>密码:</td>
<td><label>
<input name="pwpwd" type="password" class="input" id="pwpwd" size="15" />
</label></td>
</tr>
<tr>
<td colspan="2" align="center">
<label>
<input name="Submit" type="submit" class="button1" value="提交" />
</label>
<label>
<input name="Submit2" type="button" class="button1" value="免费注册" onClick="window.open('User_reg.php');"/>
</label></td>
</tr>
<input type='hidden' name='cktime' value='3600' >
<input name=hideid type=hidden value='0' tabindex="4">
<input type='hidden' value='<?=$_SERVER['HTTP_REFERER']?>' name='jumpurl'>
<input type='hidden' value='2' name='step'>
</form>
</table>
</div>
<?
exit;
}
else
{
$sql="select username,userlevel,usertype from jdzcnnet_members where uid=".$uid."";
$reslut=mysql_query($sql);
$rs=mysql_fetch_array($reslut);
$userlevel=$rs[1]; //用户等级
$username=$rs[0]; //用户ID
$usertype=$rs[2]; //用户消费类型
$exe="select money,endtime,starttime from jdzcnnet_memberdata where uid=".$uid."";
$rs1=mysql_fetch_array(mysql_query($exe));
$money=$rs1[0];//用户点数
$endtime=$rs1[1]; //包月结束时间
$startime=$rs1[2]; //包月开始时间
if($userlevel<=3)
{
//开始判断消费类型
if($usertype==1) //为保月消费时
{
if ($endtime<=time())
{
echo "<script>alert('您的包月服务已经到期!请续费!');parent.location.href='buy.php';</script>";
exit;
}
elseif($userlevel<$looklevel)
{
echo "<script>alert('您的用户权限不足!不能观看这部影片!');parent.location.href='buy.php';</script>";
exit;
}
}
else
{
if($money<$movcount)
{
echo "<script>alert('您的剩余点数不足!\n帐户剩余:".$money."');window.close();</script>";
exit;
}
elseif($userlevel<$looklevel)
{
echo "<script>alert('您的用户权限不足!不能观看这部影片!');parent.location.href='buy.php';</script>";
exit;
}
mysql_query("update jdzcnnet_memberdata set money=money-$movcount where uid=".$uid."");
}
}
}
$sql="insert into jdzcnnet_looklog(username,userlevel,userip,title,lastime,endtime) values('".$username."',".$userlevel.",'".$userip."','".$title."',".time().",".time().")";
mysql_query($sql);
mysql_free_result($reslut);
mysql_close($showmov);
?>
<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>
<body bgcolor="C0C0C0" scroll="no" marginwidth="0" leftmargin="0" topmargin="0" oncontextmenu="window.event.returnValue=false" ondragstart="window.event.returnValue=false" onselectstart="event.returnValue=false">
<center>
<TABLE cellPadding=0 cellSpacing=0 border=1 height="100%" width="100%" id="table2">
<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%" id="table3">
<TR><TD align=middle bgColor=#000000>
<TABLE border=1 cellPadding=0 cellSpacing=0 width="100%" id="table4">
<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="geturl.php?ip=<?=$serverip?>&urlid=<?=sql_cut($_GET['urlid']);?>">')
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>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -