<?php
//error_reporting(0);  //关闭错误报告
include ('./inc/aik.config.php');
include ('./inc/aik.adsconfig.php');

$link = include './conf/config.php';
$conn = mysql_connect($link['DB_HOST'],$link['DB_USER'],$link['DB_PWD']);
mysql_query('use '.$link['DB_NAME'],$conn);
mysql_query('set names utf8',$conn);
$s_id = $_GET['id'];
$sql = "select * from d_shooting where s_id=$s_id";
$rs = mysql_query($sql);
$rs = mysql_fetch_array($rs);
?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta http-equiv="cache-control" content="no-siteapp">
<link rel='stylesheet' id='main-css'  href='css/style.css' type='text/css' media='all' />
<link rel='stylesheet' id='main-css'  href='css/play.css' type='text/css' media='all' />

<meta name="keywords" content="<?php echo $rs["s_name"];?>-播放页">
<title>正在播放-<?php echo $rs["s_name"];?>-<?php echo $aik['sitename'];?></title>
</head>
<style>
	.w-newfigure{
		list-style:none; 
		float:left;
	}
	.list{ 
		margin-left:-40px;
	}
</style>
<body class="page-template page-template-pages page-template-posts-play page-template-pagesposts-play-php page page-id-16">
<?php 
include 'header.php';
if($aik["allopen"] == 1 ) $auth=0; //zjpro 
?>
<div class="single-post">
	<section class="container">
		<div class="content-wrap">
			<div class="content">
				<div class="asst asst-post_header">
					<?php echo $adaik['play_up']?>
				</div>
				<div class="sptitle">
					<h1><?php echo $rs["s_name"];?></h1>
				</div>
				<div id="bof"></div>
				<div class="am-cf"></div>
				<div class="am-panel am-panel-default">
					<div class="am-panel-bd">
							<?php if($auth==1){?>
								<img src="/images/1280jiazai.png" style="border:2px solid #ff6651;" />
								<a style="color:red;display:block;background:#DDDDDD;/*width:860px;*/height:50px;font-size:16px;line-height:50px;/*padding-left:280px;*/" href='login.php'>你还没有登录，请登录后进行播放!
									<span style="color:white;font-size:12px;border:1px solid #51C83D;border-radius:15px;background:#51C83D;padding:4px 20px 4px 20px;">立马登录</span>
								</a>
							<?php// }elseif($auth==2){?>
								<!--<img src="/images/1280jiazai.png" style="border:2px solid #ff6651;" />
								<a href='/user/payvip.php' style="color:red;display:block;background:#DDDDDD;/*width:860px;*/height:50px;font-size:16px;line-height:50px;/*padding-left:280px;*/">开通VIP会员，无限畅享本站影视!
									<span style="color:white;font-size:12px;border:1px solid #51C83D;border-radius:15px;background:#51C83D;padding:4px 20px 4px 20px;">立即开通</span>
								</a>-->
							<?php }else{?>
								<div class="bofangdiv" id="ckplayer">	
								</div>
							<?php }?>
						<input type="hidden" id="shipin" value="<?php echo $rs['s_url']?>">
						<div style="clear: both;"></div>
						<p class="jianjie"><h3 class="single-strong">简介</h3>
						<p class="item-desc js-close-wrap" >
						<?php echo $rs['s_content'];?>
					</div>
				</div>
				<!--<div class="article-actions clearfix">
					<div class="shares">
						<strong>分享到：</strong>
						<a href="javascript:;" data-url="<?php echo $aik['pcdomain'];?>" class="share-weixin" title="分享到微信">
							<i class="fa"></i>
						</a>
						<a etap="share" data-share="qzone" class="share-qzone" title="分享到QQ空间">
							<i class="fa"></i>
						</a>
						<a etap="share" data-share="weibo" class="share-tsina" title="分享到新浪微博">
							<i class="fa"></i>
						</a>
						<a etap="share" data-share="tqq" class="share-tqq" title="分享到腾讯微博">
							<i class="fa"></i>
						</a>
						<a etap="share" data-share="qq" class="share-sqq" title="分享到QQ好友">
							<i class="fa"></i>
						</a>
						<a etap="share" data-share="renren" class="share-renren" title="分享到人人网">
							<i class="fa"></i>
						</a>
						<a etap="share" data-share="douban" class="share-douban" title="分享到豆瓣网">
							<i class="fa"></i>
						</a>
					</div>   
				</div> -->
			</div>
		</div>
	<?php include 'sidebar.php';?>
	</section>
</div>
<?php include 'footer.php';?>
</body>
</html>
<script src="/ckplayer/ckplayer/ckplayer.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
	var url = document.getElementById('shipin').value;
	if (url.indexOf(".mp4")>0){
		var flashvars={
			f:url,
			a:'',
			s:'0',
			c:0,
			p:1,
			lv:0 
		}
		var ckt = url+'->video/mp4';
	}else if (url.indexOf(".m3u8")>0){
		var flashvars={
			f:'/ckplayer/ckplayer/m3u8.swf',
			a:url,
			s:'4',
			c:0,
			p:1,
			lv:0 
		}
		var ckt = url+'->video/m3u8';
	}
	var video=[ckt];
	CKobject.embed(
		"/ckplayer/ckplayer/ckplayer.swf",
		"ckplayer",
		"ckplayer1",
		"850",
		"450",
		false,
		flashvars,
		video  
	);
</script>