hhCandy 5 years ago
parent 63632882d0
commit bfcfd60063
  1. 2
      .gitignore
  2. 186
      acg.php
  3. 6584
      css/bootstrap.css
  4. 310
      css/style.css
  5. BIN
      fonts/icomoon.eot
  6. 12
      fonts/icomoon.svg
  7. BIN
      fonts/icomoon.ttf
  8. BIN
      fonts/icomoon.woff
  9. 10
      fpcheck.php
  10. 62
      index.php
  11. 7
      js/bootstrap.min.js
  12. 187
      list.php
  13. 63
      mainlist.html
  14. 128
      video.php

2
.gitignore vendored

@ -0,0 +1,2 @@
config.php
old_version

@ -0,0 +1,186 @@
<!DOCTYPE html>
<?php
include '../functions.php';
header('content-type:text/html;charset=utf-8');
$conn=db__connect();
$class=$_GET['class'];
//get row info form table blog with id
$sql = "SELECT * FROM videoIndx where class=$class";
$result = $conn->query($sql);
?>
<?php //declear function
//fnct of get table row number::(data_cnnct var,table name) ::(row number)
function sql_rowNum($conn,$tableSql)
{
$row_count = $conn->query("SELECT COUNT(*) FROM $tableSql");
list($row_num) = $row_count->fetch_row();
return ($row_num);
}
//fnct of getting row data from database::(data_cnnct var, table name,column name, column value)::(row info)
function sql_data($conn,$table,$clmnName,$value)
{
$sql = "SELECT * FROM $table where $clmnName=$value";
$result = $conn->query($sql);
///禁止非法访问
if ($result->num_rows > 0) {}else{echo "<script>alert('Illegal Visit!');setTimeout(function(){top.location='/404.php';},0)</script>";}
$row = $result->fetch_assoc();
return ($row);
}
function array_orderby()
{
$args = func_get_args();
$data = array_shift($args);
foreach ($args as $n => $field) {
if (is_string($field)) {
$tmp = array();
foreach ($data as $key => $row)
$tmp[$key] = $row[$field];
$args[$n] = $tmp;
}
}
$args[] = &$data;
call_user_func_array('array_multisort', $args);
return array_pop($args);
}
?>
<?php yimian__header("Yimian Video","video,Yimian","This is the page for listing video series.");?>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<link rel="stylesheet" href="css/style.css">
<?php yimian__headerEnd()?>
<div id="wrapper">
<div class="overlay"></div>
<!-- Sidebar -->
<nav class="navbar navbar-inverse navbar-fixed-top" id="sidebar-wrapper" role="navigation">
<ul class="nav sidebar-nav">
<li class="sidebar-brand">
<a href="./">
Yimian Video
</a>
</li>
<li> <a href="./"><i class="fa fa-fw fa-home"></i>Video Home</a>
</li>
<li>
<a href="./acg.php?class=1"><i class="fa fa-fw fa-folder"></i> ACG</a>
</li>
<li>
<a href="./acg.php?class=2"><i class="fa fa-fw fa-file-o"></i> Movies</a>
</li>
<li>
<a href="./acg.php?class=3"><i class="fa fa-fw fa-cog"></i> Documentary</a>
</li>
<li>
<a href="./acg.php?class=4"><i class="fa fa-fw fa-cog"></i> TV Play</a>
</li>
<li>
<a href="../"><i class="fa fa-fw fa-twitter"></i>Back to Yimian Page</a>
</li>
</ul>
</nav>
<!-- /#sidebar-wrapper -->
<!-- Page Content -->
<div id="page-content-wrapper">
<button type="button" class="hamburger is-closed animated fadeInLeft" data-toggle="offcanvas">
<span class="hamb-top"></span>
<span class="hamb-middle"></span>
<span class="hamb-bottom"></span>
</button>
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<h1 class="page-header"><?php
if($class==1)echo 'ACG (动漫)';
if($class==2)echo 'Movies (电影)';
if($class==3)echo 'Documentary (纪录片)';
if($class==4)echo 'TV Play (电视剧)';
?></h1>
<p class="lead">Share video with the one you love!</p>
<?php
if ($result->num_rows > 0) {
// 输出数据
while($row = $result->fetch_assoc()) {
echo '<h4><a href="./list.php?idd='.$row['idd']
.'">' . $row['series'].'</a></h4><p>'.$row['comment'].'</p><br/>';
}
} else {
echo "404 No Found!";
}?>
</br></br><p><a href="index.php">Click here to go back~</a></p>
</br>
</div>
</div>
</div>
</div>
<!-- /#page-content-wrapper -->
</div>
<!-- /#wrapper -->
<script src="js/bootstrap.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
var trigger = $('.hamburger'),
overlay = $('.overlay'),
isClosed = false;
trigger.click(function () {
hamburger_cross();
});
function hamburger_cross() {
if (isClosed == true) {
overlay.hide();
trigger.removeClass('is-open');
trigger.addClass('is-closed');
isClosed = false;
} else {
overlay.show();
trigger.removeClass('is-closed');
trigger.addClass('is-open');
isClosed = true;
}
}
$('[data-toggle="offcanvas"]').click(function () {
$('#wrapper').toggleClass('toggled');
});
});
</script>
<?php yimian__simpleFooter()?>

6584
css/bootstrap.css vendored

File diff suppressed because it is too large Load Diff

@ -0,0 +1,310 @@
@import "https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css";
/*-------------------------------*/
/* VARIABLES */
/*-------------------------------*/
body {
position: relative;
overflow-x: hidden;
}
body,
html {
height: 100%;
background-color: #583e7e;
}
.nav .open > a {
background-color: transparent;
}
.nav .open > a:hover {
background-color: transparent;
}
.nav .open > a:focus {
background-color: transparent;
}
/*-------------------------------*/
/* Wrappers */
/*-------------------------------*/
#wrapper {
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
-webkit-transition: all 0.5s ease;
padding-left: 0;
transition: all 0.5s ease;
}
#wrapper.toggled {
padding-left: 220px;
}
#wrapper.toggled #sidebar-wrapper {
width: 220px;
}
#wrapper.toggled #page-content-wrapper {
margin-right: -220px;
position: absolute;
}
#sidebar-wrapper {
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
-webkit-transition: all 0.5s ease;
background: #1a1a1a;
height: 100%;
left: 220px;
margin-left: -220px;
overflow-x: hidden;
overflow-y: auto;
transition: all 0.5s ease;
width: 0;
z-index: 1000;
}
#sidebar-wrapper::-webkit-scrollbar {
display: none;
}
#page-content-wrapper {
padding-top: 70px;
width: 100%;
}
/*-------------------------------*/
/* Sidebar nav styles */
/*-------------------------------*/
.sidebar-nav {
list-style: none;
margin: 0;
padding: 0;
position: absolute;
top: 0;
width: 220px;
}
.sidebar-nav li {
display: inline-block;
line-height: 20px;
position: relative;
width: 100%;
}
.sidebar-nav li:before {
background-color: #1c1c1c;
content: '';
height: 100%;
left: 0;
position: absolute;
top: 0;
-webkit-transition: width 0.2s ease-in;
transition: width 0.2s ease-in;
width: 3px;
z-index: -1;
}
.sidebar-nav li:first-child a {
background-color: #1a1a1a;
color: #ffffff;
}
.sidebar-nav li:nth-child(2):before {
background-color: #402d5c;
}
.sidebar-nav li:nth-child(3):before {
background-color: #4c366d;
}
.sidebar-nav li:nth-child(4):before {
background-color: #583e7e;
}
.sidebar-nav li:nth-child(5):before {
background-color: #64468f;
}
.sidebar-nav li:nth-child(6):before {
background-color: #704fa0;
}
.sidebar-nav li:nth-child(7):before {
background-color: #7c5aae;
}
.sidebar-nav li:nth-child(8):before {
background-color: #8a6cb6;
}
.sidebar-nav li:nth-child(9):before {
background-color: #987dbf;
}
.sidebar-nav li:hover:before {
-webkit-transition: width 0.2s ease-in;
transition: width 0.2s ease-in;
width: 100%;
}
.sidebar-nav li a {
color: #dddddd;
display: block;
padding: 10px 15px 10px 30px;
text-decoration: none;
}
.sidebar-nav li.open:hover before {
-webkit-transition: width 0.2s ease-in;
transition: width 0.2s ease-in;
width: 100%;
}
.sidebar-nav .dropdown-menu {
background-color: #222222;
border-radius: 0;
border: none;
box-shadow: none;
margin: 0;
padding: 0;
position: relative;
width: 100%;
}
.sidebar-nav li a:hover,
.sidebar-nav li a:active,
.sidebar-nav li a:focus,
.sidebar-nav li.open a:hover,
.sidebar-nav li.open a:active,
.sidebar-nav li.open a:focus {
background-color: transparent;
color: #ffffff;
text-decoration: none;
}
.sidebar-nav > .sidebar-brand {
font-size: 20px;
height: 65px;
line-height: 44px;
}
/*-------------------------------*/
/* Hamburger-Cross */
/*-------------------------------*/
.hamburger {
background: transparent;
border: none;
display: block;
height: 32px;
margin-left: 15px;
position: fixed;
top: 20px;
width: 32px;
z-index: 999;
}
.hamburger:hover {
outline: none;
}
.hamburger:focus {
outline: none;
}
.hamburger:active {
outline: none;
}
.hamburger.is-closed:before {
-webkit-transform: translate3d(0, 0, 0);
-webkit-transition: all 0.35s ease-in-out;
color: #ffffff;
content: '';
display: block;
font-size: 14px;
line-height: 32px;
opacity: 0;
text-align: center;
width: 100px;
}
.hamburger.is-closed:hover before {
-webkit-transform: translate3d(-100px, 0, 0);
-webkit-transition: all 0.35s ease-in-out;
display: block;
opacity: 1;
}
.hamburger.is-closed:hover .hamb-top {
-webkit-transition: all 0.35s ease-in-out;
top: 0;
}
.hamburger.is-closed:hover .hamb-bottom {
-webkit-transition: all 0.35s ease-in-out;
bottom: 0;
}
.hamburger.is-closed .hamb-top {
-webkit-transition: all 0.35s ease-in-out;
background-color: rgba(255, 255, 255, 0.7);
top: 5px;
}
.hamburger.is-closed .hamb-middle {
background-color: rgba(255, 255, 255, 0.7);
margin-top: -2px;
top: 50%;
}
.hamburger.is-closed .hamb-bottom {
-webkit-transition: all 0.35s ease-in-out;
background-color: rgba(255, 255, 255, 0.7);
bottom: 5px;
}
.hamburger.is-closed .hamb-top,
.hamburger.is-closed .hamb-middle,
.hamburger.is-closed .hamb-bottom,
.hamburger.is-open .hamb-top,
.hamburger.is-open .hamb-middle,
.hamburger.is-open .hamb-bottom {
height: 4px;
left: 0;
position: absolute;
width: 100%;
}
.hamburger.is-open .hamb-top {
-webkit-transform: rotate(45deg);
-webkit-transition: -webkit-transform 0.2s cubic-bezier(0.73, 1, 0.28, 0.08);
background-color: #ffffff;
margin-top: -2px;
top: 50%;
}
.hamburger.is-open .hamb-middle {
background-color: #ffffff;
display: none;
}
.hamburger.is-open .hamb-bottom {
-webkit-transform: rotate(-45deg);
-webkit-transition: -webkit-transform 0.2s cubic-bezier(0.73, 1, 0.28, 0.08);
background-color: #ffffff;
margin-top: -2px;
top: 50%;
}
.hamburger.is-open:before {
-webkit-transform: translate3d(0, 0, 0);
-webkit-transition: all 0.35s ease-in-out;
color: #ffffff;
content: '';
display: block;
font-size: 14px;
line-height: 32px;
opacity: 0;
text-align: center;
width: 100px;
}
.hamburger.is-open:hover before {
-webkit-transform: translate3d(-100px, 0, 0);
-webkit-transition: all 0.35s ease-in-out;
display: block;
opacity: 1;
}
/*-------------------------------*/
/* Dark Overlay */
/*-------------------------------*/
.overlay {
position: fixed;
display: none;
width: 100%;
height: 100%;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.4);
z-index: 1;
}
/* SOME DEMO STYLES - NOT REQUIRED */
body,
html {
background-color: #583e7e;
}
body h1,
body h2,
body h3,
body h4 {
color: rgba(255, 255, 255, 0.9);
}
body p,
body blockquote {
color: rgba(255, 255, 255, 0.7);
}
body a {
color: rgba(255, 255, 255, 0.8);
text-decoration: underline;
}
body a:hover {
color: #ffffff;
}

Binary file not shown.

@ -0,0 +1,12 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
<svg xmlns="http://www.w3.org/2000/svg">
<metadata>Generated by IcoMoon</metadata>
<defs>
<font id="icomoon" horiz-adv-x="1024">
<font-face units-per-em="1024" ascent="960" descent="-64" />
<missing-glyph horiz-adv-x="1024" />
<glyph unicode="&#x20;" d="" horiz-adv-x="512" />
<glyph unicode="&#xe5000;" d="M949.845 492.032c-144.64 121.771-407.296 348.629-409.899 350.933l-27.947 24.021-27.819-24.021c-2.645-2.261-265.429-229.035-412.16-351.915-18.688-16.811-29.355-40.32-29.355-64.384 0-47.104 38.229-85.333 85.333-85.333h42.667v-256c0-47.104 38.229-85.333 85.333-85.333h512c47.104 0 85.333 38.229 85.333 85.333v256h42.667c47.104 0 85.333 38.229 85.333 85.333 0 25.515-11.733 49.536-31.488 65.365zM597.333 85.334h-170.667v213.333h170.667v-213.333zM768 426.667l0.085-341.333c-0.085 0-128.085 0-128.085 0v256h-256v-256h-128v341.333h-128.043c117.973 98.645 312.107 265.685 384.043 327.68 71.936-61.995 265.984-228.992 384-327.723 0 0-128 0-128 0.043z" />
<glyph unicode="&#xe5001;" d="M170.667 85.376c-4.096 0-8.149 0.64-12.203 1.792-18.091 5.376-30.464 22.016-30.464 40.875v42.667c0 204.8 144.256 378.197 341.333 417.963v72.704c0 22.784 8.875 44.203 24.96 60.331 32.256 32.299 88.533 32.256 120.704 0.043l268.288-264.661c8.149-8.021 12.715-18.901 12.715-30.379s-4.565-22.357-12.715-30.379l-268.501-264.832c-31.829-31.829-88.192-32.043-120.448 0.213-16.128 16.128-25.003 37.547-25.003 60.331v61.312c-106.453-8.576-192.981-42.027-262.997-148.651-8.107-12.288-21.547-19.328-35.669-19.328zM512 340.907c11.179 0 42.667 0.427 42.667 0.427v-149.291l237.909 234.667-237.909 234.496v-149.205c0 0-16.384 0.171-38.016-2.219-145.749-16.128-261.333-122.197-294.059-259.413 90.496 73.728 194.176 88.149 289.408 90.539z" />
</font></defs></svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Binary file not shown.

@ -0,0 +1,10 @@
<?php
include '../functions.php';
$fp=$_REQUEST['fp'];
$res=db__getData(db__connect(),"fp","fp",$fp);
if($res[0]['video']) echo json_encode(array("code"=>1));

@ -0,0 +1,62 @@
<?php
include '../functions.php';
yimian__header("Yimian Video","video,Yimian","This is the page for showing video class.");
echo "
<link rel=\"stylesheet\" type=\"text/css\" href=\"css/bootstrap.css\">
<link rel=\"stylesheet\" href=\"css/style.css\">";
yimian__headerEnd();
echo file_get_contents("./mainlist.html");
echo"
<script src=\"js/bootstrap.min.js\"></script>
<script type=\"text/javascript\">
$(document).ready(function () {
var trigger = $('.hamburger'),
overlay = $('.overlay'),
isClosed = false;
trigger.click(function () {
hamburger_cross();
});
function hamburger_cross() {
if (isClosed == true) {
overlay.hide();
trigger.removeClass('is-open');
trigger.addClass('is-closed');
isClosed = false;
} else {
overlay.show();
trigger.removeClass('is-closed');
trigger.addClass('is-open');
isClosed = true;
}
}
$('[data-toggle=\"offcanvas\"]').click(function () {
$('#wrapper').toggleClass('toggled');
});
});
</script>";
echo "
<script>
var watching=0;
$.post(\"./fpcheck.php\",{
fp: fp
},
function(msg){
if(msg.code==1){document.getElementById(\"p1\").innerHTML='<a href=\"./video.php\">点这里继续上次播放!</a>';}
},\"json\");
</script>";
yimian__simpleFooter();

File diff suppressed because one or more lines are too long

@ -0,0 +1,187 @@
<!DOCTYPE html>
<?php
include '../functions.php';
header('content-type:text/html;charset=utf-8');
$conn=db__connect();
$idd=$_GET['idd'];
//get row info form table blog with id
$series= sql_data($conn,'videoIndx','idd',$idd);
$seriesName= $series['series'];
$class= $series['class'];
$sql = "SELECT * FROM video where idd=$idd";
$result = $conn->query($sql);
?>
<?php //declear function
//fnct of get table row number::(data_cnnct var,table name) ::(row number)
function sql_rowNum($conn,$tableSql)
{
$row_count = $conn->query("SELECT COUNT(*) FROM $tableSql");
list($row_num) = $row_count->fetch_row();
return ($row_num);
}
//fnct of getting row data from database::(data_cnnct var, table name,column name, column value)::(row info)
function sql_data($conn,$table,$clmnName,$value)
{
$sql = "SELECT * FROM $table where $clmnName=$value";
$result = $conn->query($sql);
///禁止非法访问
if ($result->num_rows > 0) {}else{echo "<script>alert('Illegal Visit!');setTimeout(function(){top.location='/404.php';},0)</script>";}
$row = $result->fetch_assoc();
return ($row);
}
function array_orderby()
{
$args = func_get_args();
$data = array_shift($args);
foreach ($args as $n => $field) {
if (is_string($field)) {
$tmp = array();
foreach ($data as $key => $row)
$tmp[$key] = $row[$field];
$args[$n] = $tmp;
}
}
$args[] = &$data;
call_user_func_array('array_multisort', $args);
return array_pop($args);
}
?>
<?php yimian__header("Yimian Video","video,Yimian","This is the page for show video detail.");?>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<link rel="stylesheet" href="css/style.css">
<?php yimian__headerEnd()?>
<div id="wrapper">
<div class="overlay"></div>
<!-- Sidebar -->
<nav class="navbar navbar-inverse navbar-fixed-top" id="sidebar-wrapper" role="navigation">
<ul class="nav sidebar-nav">
<li class="sidebar-brand">
<a href="./">
Yimian Video
</a>
</li>
<li> <a href="./"><i class="fa fa-fw fa-home"></i>Video Home</a>
</li>
<li>
<a href="./acg.php?class=1"><i class="fa fa-fw fa-folder"></i> ACG</a>
</li>
<li>
<a href="./acg.php?class=2"><i class="fa fa-fw fa-file-o"></i> Movies</a>
</li>
<li>
<a href="./acg.php?class=3"><i class="fa fa-fw fa-cog"></i> Documentary</a>
</li>
<li>
<a href="./acg.php?class=4"><i class="fa fa-fw fa-cog"></i> TV Play</a>
</li>
<li>
<a href="../"><i class="fa fa-fw fa-twitter"></i>Back to Yimian Page</a>
</li>
</ul>
</nav>
<!-- /#sidebar-wrapper -->
<!-- Page Content -->
<div id="page-content-wrapper">
<button type="button" class="hamburger is-closed animated fadeInLeft" data-toggle="offcanvas">
<span class="hamb-top"></span>
<span class="hamb-middle"></span>
<span class="hamb-bottom"></span>
</button>
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<h1 class="page-header"><?php echo $seriesName?></h1>
<p class="lead">Share video with the one you love!</p>
<?php
if ($result->num_rows > 0) {
// 输出数据
while($row = $result->fetch_assoc()) {
echo '<p><a href="./video.php?id='.$row['id']
.'">' . $row['name'].'</a></p>';
}
} else {
echo "404 No Found!";
}?>
</br></br><p><a href="acg.php?class=<?php echo $class?>">Click here to go back~</a></p>
</br>
</div>
</div>
</div>
</div>
<!-- /#page-content-wrapper -->
</div>
<!-- /#wrapper -->
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
var trigger = $('.hamburger'),
overlay = $('.overlay'),
isClosed = false;
trigger.click(function () {
hamburger_cross();
});
function hamburger_cross() {
if (isClosed == true) {
overlay.hide();
trigger.removeClass('is-open');
trigger.addClass('is-closed');
isClosed = false;
} else {
overlay.show();
trigger.removeClass('is-closed');
trigger.addClass('is-open');
isClosed = true;
}
}
$('[data-toggle="offcanvas"]').click(function () {
$('#wrapper').toggleClass('toggled');
});
});
</script>
<?php yimian__simpleFooter()?>

@ -0,0 +1,63 @@
<div id="wrapper">
<div class="overlay"></div>
<!-- Sidebar -->
<nav class="navbar navbar-inverse navbar-fixed-top" id="sidebar-wrapper" role="navigation">
<ul class="nav sidebar-nav">
<li class="sidebar-brand">
<a href="./">
Yimian Video
</a>
</li>
<li> <a href="./"><i class="fa fa-fw fa-home"></i>Video Home</a>
</li>
<li>
<a href="./acg.php?class=1"><i class="fa fa-fw fa-folder"></i> ACG</a>
</li>
<li>
<a href="./acg.php?class=2"><i class="fa fa-fw fa-file-o"></i> Movies</a>
</li>
<li>
<a href="./acg.php?class=3"><i class="fa fa-fw fa-cog"></i> Documentary</a>
</li>
<li>
<a href="./acg.php?class=4"><i class="fa fa-fw fa-cog"></i> TV Play</a>
</li>
<li>
<a href="../"><i class="fa fa-fw fa-twitter"></i>Back to Yimian Page</a>
</li>
</ul>
</nav>
<!-- /#sidebar-wrapper -->
<!-- Page Content -->
<div id="page-content-wrapper">
<button type="button" class="hamburger is-closed animated fadeInLeft" data-toggle="offcanvas">
<span class="hamb-top"></span>
<span class="hamb-middle"></span>
<span class="hamb-bottom"></span>
</button>
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<h1 class="page-header">Yimian Video</h1>
<p class="lead">Share video with the one you love!</p>
<h3><a href="./acg.php?class=1">ACG (动漫)</a></h3>
<h3><a href="./acg.php?class=2">Movies (电影)</a></h3>
<h3><a href="./acg.php?class=3">Documentary (纪录片)</a></h3>
<h3><a href="./acg.php?class=4">TV Play (电视剧)</a></h3>
<h3 id="p1"></h3>
</div>
</div>
</div>
</div>
<!-- /#page-content-wrapper -->
</div>
<!-- /#wrapper -->

@ -0,0 +1,128 @@
<?php
include '../functions.php';
if(isset($_COOKIE['fp']))
{
$fp=$_COOKIE['fp'];
$res=db__getData(db__connect(),"videolog","fp",$fp);
foreach($res as $data)
{
setcookie("vTime_".$data['video'],$data['seek']);
}
}
if(!isset($_REQUEST['id']))
{
if(isset($_COOKIE['fp']))
{
$conn=db__connect();
$fp=$_COOKIE['fp'];
$result=db__getData($conn,"fp","fp",$fp);
$r_usr=$result[0]['usr'];
if(!$r_usr) $res=$result;
else
{
$res=db__getData($conn,"fp","usr",$r_usr);
$resUser=db__getData($conn,"user","tel",$r_usr);
$_SESSION['s_usr']=$resUser[0]['name'];
}
$max=0;
for($i=1;$i<count($res);$i++)
{
if($res[$i]['videotime']>$res[$max]['videotime']) $max=$i;
}
setcookie("vTime_".$res[$max]['video'],$res[$max]['videoseek'],time()+3600*24*365*15);
$_REQUEST['id']=$res[$max]['video'];
//echo "<script>window.location.href='./video.php?id=".$res[$max]['video']."';</script>";
}
else
header("Location: https://cn.yimian.xyz/404.php");
}
yimian__header("Yimian Video","video,Yimian","This is the page for playing a video.");
js__jquery();
yimian__headerEnd();
dplayer__element();
echo "
<script>
var is_next=1;
</script>";
dplayer__setup();
dplayer__add($_REQUEST['id']);
echo "
<script>
$(\"#next\").on(\"click\",function (){nextVideo();});
</script>";
?>
<div id="pub-board">
<p id="usrName"></p>
<p id="videoSeries"></p>
<p id="videoName"></p>
<p id="videoId"></p>
<p id="videoLength"></p>
<p id="videoDownload"></p>
<p id="videoState"></p>
<p id="videoSeek"></p>
<p id="dansFrom"></p>
<p id="dansLength"></p>
<p id="back"></p>
</div>
<script>
$("#usrName").html("UserName: <?php if(isset($_SESSION['s_usr']))echo $_SESSION['s_usr'];else
{echo "没有登录?<a href='https://cn.yimian.xyz/login?from=https://cn.yimian.xyz/video/video.php'>戳我注册~</a>";}?>");
function attach()
{
$("#videoSeries").html("VideoSeries: "+g_vSeries);
$("#videoName").html("VideoName: "+g_vName);
$("#videoId").html("VideoId: "+g_vId);
$("#videoLength").html("VideoDuration: "+dp.video.duration+'s');
$("#videoDownload").html("VideoDownloadUrl: "+g_vUrl2);
$("#videoState").html("PlayState: "+!dp.video.paused);
$("#videoSeek").html("PlaySeek: "+dp.video.currentTime+'s');
(dp.danmaku.dan.length>1500)||$("#dansFrom").html("DansBilibili: Off");
(dp.danmaku.dan.length>1500)&&$("#dansFrom").html("DansBilibili: On");
$("#dansLength").html("DansAmount: "+dp.danmaku.dan.length);
$("#back").html("<a href='./list.php?idd="+g_vIdd+"'>Click here to go Back~</a>");
}
</script>
<?
yimian__footer();
Loading…
Cancel
Save