[php]代码库
<?php
/*
--------------本页面复制根目录即可使用-------------
*/
require './include/common.inc.php';
include template('header');
if(!$discuz_uid) {
//如果你是论坛,需要别人注册才能观看的号,去掉前面的#号
# showmessage('请先登陆才能免费观看电影','/logging.php?action=login'); //如果你是论坛,需要别人注册才能观看的号,去掉前面的#号
}
$action == $_POST["action"];
$txt = $_POST["txt"];
$server = $_POST["server"];
if($_POST["userid"] =="") {
$userid = "3528";
} else {
$userid = $_POST["userid"];
}
$con = explode(":",$server);
if (count($con)>1) {
$server=$server;
} else {
$server=$server.":80";
}
if($_REQUEST["action"] == "") { ?>
<script language=javascript>
function cj(obj)
{
if (parseInt(window.event.keyCode)<48 || parseInt(window.event.keyCode)>57 || (obj.value==""&&parseInt(window.event.keyCode)==48))
{
return false
}
}
</script>
<div id="foruminfo">
<div id="nav"><a href="<?= $indexname ?>"><?=$bbname?></a> »
论坛免费电影专用播放器</div>
<br>
</div>
<div class="mainbox viewthread">
<div class="header">
<h1>论坛免费电影专用播放器</h1>
</div>
<table width="95%" border="0" cellspacing="0" cellpadding="5">
<form name="form1" method="post" action="" target="_blank">
<tr>
<td width="50%" rowspan="2">
<p><b>播放前请确认已安装专用播放器: <a
href="http://pub.hydvd.com/download/hydvdplayer.exe" target="_blank"><font
color="#0000FF">下载地址①</font></a> <a
href="http://ssdvd.com/download/WebPlayer.exe" target="_blank"><font
color="#0000FF">下载地址②</font></a><br>
<br>
观看方法:</b></p>
<p>到百度搜索<font color="#FF0000">平均码流 XXX</font> (<font color="#FF0000">XXX</font>是你希望看的电影名字)<br>
搜索出来的结果注意留意<br>
比如我们搜索 “平均码流 变形金刚”随意可以看见搜索出来的URL地址<br>
例:http://<font color="#FF0000">60.190.140.34:60</font>/oemui/vod/progshow.asp?id=<font
color="#FF0000">3489</font><br>
平均码流 : 608 Kbps 节目长度 : 00:43:22 节目类别 : 热门电影 文件类型 : rmvb 节目简介
几百万年以前,在...在星球居住着有思维有感情的智慧机械体-变形金刚。变形金刚分为汽车人和霸天虎。残忍的霸天虎们唯一的目标就是彻底统治...
</p>
<p>那么大家注意了,前面的<font color="#FF0000">60.190.140.34:60</font>就是我们要找的电影服务器地址,后面的<font
color="#FF0000">3489</font>就是我们需要输入的ID编号,都输入到指定地址,然后点播放即可放映。</p>
</td>
<td width="50%" bgcolor="#66FFCC">查询电影电视等编号请至:百度(关键字: 平均码流)<br>
<br>
<b>装了卡巴斯基的请自行退出卡巴斯基反病毒程序</b></td>
</tr>
<tr>
<td width="50%" bgcolor="#FFFFCC">ID编号: <input name="txt" type="text"
value="<?php echo $_COOKIE["MovieID"]; ?>"
onKeyPress="return cj(this)"> <input name="action" type="hidden"
id="action" value="play"> (该框内ID号为您上次播放的ID编号)<br>
<br>
服务器: <input name="server" type="text" id="server"
value="<?php echo $_COOKIE["MovieServer"]; ?>">
(请自行百度填入其域名或IP,不需HTTP://)<br>
<br>
用户ID: <input name="userid" type="text" id="userid"
onKeyPress="return cj(this)"
value="<?php echo $_COOKIE["MovieUserId"]; ?>"> (不指定请留空)<br>
<br>
<input name="submit" type="submit" class="submit" value="在 线 播 放"></td>
</tr>
</form>
</table>
<div align="right"><a href="Http://Bbs.231500.Net" target="_blank"><img
src="Http://Bbs.231500.Net/images/logo.gif" width="88" height="31"
border="0"></a><br>
<a href="Http://Bbs.231500.Net" target="_blank">插件提供:古门神钥</a></div>
</div>
</div>
<?
} elseif($_REQUEST["action"] == "play") {
setcookie("MovieID",$txt,time()+94608000,"/"); /* 三年后 cookie 才会失效 */
setcookie("MovieServer",$server,time()+94608000,"/"); /* 三年后 cookie 才会失效 */
setcookie("MovieUserId",$userid,time()+94608000,"/"); /* 三年后 cookie 才会失效 */
?>
<body onContextMenu="window.event.returnValue=false;" bgcolor="#000000"
topMargin="0" leftMargin="0" style="border-color: #000000;">
<table align="center" cellspacing="0" cellpadding="0" width="100%"
border="0">
<tr>
<td width="29%" align="center" valign="middle">
<form name="form1" method="post" action="" target="_blank"><input
name="txt" type="hidden" value="<?php echo $txt-1 ?>"><input
name="action" type="hidden" id="action" value="play"><input
name="server" type="hidden" value="<?php echo $server ?>"> <input
name="userid" type="hidden" value="<?php echo $userid ?>"> <input
type="submit" value="上一集" class="submit"></form>
</td>
<td width="45%" align="center" valign="middle"><a href=#
onClick="javascript:window.close(); return false;">关闭窗口</a> (双击播放器全屏)
</td>
<td width="26%" align="center" valign="middle">
<form name="form1" method="post" action="" target="_blank"><input
name="txt" type="hidden" value="<?php echo $txt+1 ?>"><input
name="action" type="hidden" id="action" value="play"><input
name="server" type="hidden" value="<?php echo $server ?>"> <input
name="userid" type="hidden" value="<?php echo $userid ?>"> <input
type="submit" value="下一集" class="submit"></form>
</td>
</tr>
</table>
<table align="center" cellspacing="0" cellpadding="0" width="100%"
border="0">
<tr>
<td align="center" valign="middle"><object id="WebPlayer" width="1024"
height="768" classid="CLSID:AA899B43-24BD-4B6B-BBD0-45557D8D11E0"
viewastext>
<param name="_Version" value="65536">
<param name="_ExtentX" value="10583">
<param name="_ExtentY" value="10583">
<param name="_StockProps" value="0">
</object></td>
</tr>
</table>
<script language="JScript">
x = CheckPlayer();
function PlayerInit(szServerHost)
{
WebPlayer.ServerMode = "2";
WebPlayer.UserName = "jgsu";
WebPlayer.UserID = "<?php echo $userid ?>"; //userid
WebPlayer.PlayMode = "1"; //SendType
WebPlayer.PlayModeValue = "<?php echo "$txt" ?>"; //movieid
WebPlayer.ChannelID = "<?php echo "$txt" ?>"; //movieid too
WebPlayer.AuthenHost = "<?php echo "$server" ?>"; //server addr
WebPlayer.ServerHost = "1.1.1.1"; //IpAddr
WebPlayer.Session = ""; //"";
WebPlayer.ProtocolType = "1";
WebPlayer.EmbedMode = "1";
WebPlayer.ProgName = "潜川热线论坛在线播放器Beta3版";
WebPlayer.ContorlWidth = 322;
WebPlayer.ContorlHeight = 320;
WebPlayer.Start();
}
function GetHostName(szUrl)
{
iNameSize = szUrl.indexOf("/", 7) - 7;
szUrl = szUrl.substr(7, iNameSize);
if(szUrl.indexOf(":") > 0)iNameSize = szUrl.indexOf(":");
szHostName = szUrl.substr(0, iNameSize);
return szHostName;
}
function GetHostPort(szUrl)
{
var szHostPort, iPortPos, iPortSize;
if(szUrl.indexOf(":", 5) > 0)
{
iPortPos = szUrl.indexOf(":", 5) + 1;
if(szUrl.indexOf("/", iPortPos) > 0)iPortSize = szUrl.indexOf("/", iPortPos) - iPortPos;
szHostPort = szUrl.substr(iPortPos, iPortSize);
}
else
{
szHostPort = 80;
}
return szHostPort;
}
function CheckPlayer()
{
try
{
var oTest = new ActiveXObject("VGPlayer.WebVGPlayer.1");
}
catch(e)
{
if(window.opener == undefined)
{
window.alert("首次点播将安装播放器插件...\n\n系统会开始引导您安装软件....");
window.open('http://ssdvd.com/download/WebPlayer.exe', 'newwindow', 'height=300, width=450, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no');
history.back(-1);
}
else
{
window.opener.alert("首次点播将安装播放器插件...\n\n系统会开始引导您安装软件....");
window.opener.open('http://ssdvd.com/download/WebPlayer.exe', 'newwindow', 'height=300, width=450, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no');
self.close();
}
return false;
}
delete oTest;
PlayerInit("1.1.1.1");
return true;
}
</script>
<? }
include template('footer');
?>
[源代码打包下载]