parent
63632882d0
commit
bfcfd60063
14 changed files with 7551 additions and 0 deletions
@ -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()?> |
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.
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…
Reference in new issue