index.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. $id=intval($_GET[id]);
  5. $w=returnjgdw($_GET[w],"",790);
  6. $h=returnjgdw($_GET[h],"",470);
  7. $bh=$_GET[bh];
  8. if(empty($id)){
  9. while1("*","yjcode_provideo where zt=0 and probh='".$bh."' order by sj desc");if($row1=mysql_fetch_array($res1)){$id=$row1[id];}
  10. }
  11. while1("*","yjcode_provideo where id=".$id);if(!$row1=mysql_fetch_array($res1)){exit;}
  12. if($row1[gs]!="mp4"){echo returnvideo($id,$w,$h);exit;}
  13. ?>
  14. <!DOCTYPE html>
  15. <html>
  16. <head>
  17. <meta charset="UTF-8">
  18. <title>ckplayer</title>
  19. <script type="text/javascript" src="ckplayer/ckplayer.js" charset="UTF-8"></script>
  20. <style type="text/css">
  21. body {
  22. margin: 0;
  23. padding: 0px;
  24. font-family: "Microsoft YaHei", YaHei, "微软雅黑", SimHei, "黑体";
  25. font-size: 14px
  26. }
  27. </style>
  28. </head>
  29. <body>
  30. <div class="video" style="width:<?=$w?>px;height:<?=$h?>px;"></div>
  31. <script type="text/javascript">
  32. var videoObject = {
  33. container: '.video',
  34. variable: 'player',
  35. poster:'pic/wdm.jpg',
  36. video:'<?=$row1[url]?>'
  37. };
  38. var player=new ckplayer(videoObject);
  39. </script>
  40. </body>
  41. </html>