Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
netcccyun committed Jul 18, 2024
1 parent d0869b2 commit 9f4bb3b
Show file tree
Hide file tree
Showing 16 changed files with 56 additions and 51 deletions.
7 changes: 6 additions & 1 deletion admin/ajax_file.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,15 @@
$sql.=" AND `ip`='{$kw}'";
}
}
if($_POST['orderby'] == 1){
$orderby = 'count desc';
}else{
$orderby = 'id desc';
}
$offset = intval($_POST['offset']);
$limit = intval($_POST['limit']);
$total = $DB->getColumn("SELECT count(*) from pre_file WHERE{$sql}");
$list = $DB->getAll("SELECT * FROM pre_file WHERE{$sql} order by id desc limit $offset,$limit");
$list = $DB->getAll("SELECT * FROM pre_file WHERE{$sql} order by {$orderby} limit $offset,$limit");
$list2 = [];
foreach($list as $row){
$row['icon'] = type_to_icon($row['type']);
Expand Down
10 changes: 5 additions & 5 deletions admin/file-view.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title><?php echo $title ?></title>
<link rel="stylesheet" href="//cdn.staticfile.net/aplayer/1.10.1/APlayer.min.css">
<link rel="stylesheet" href="https://s4.zstatic.net/ajax/libs/aplayer/1.10.1/APlayer.min.css">
<link href="../assets/css/ckplayer.css" rel="stylesheet">
<script src="//cdn.staticfile.net/jquery/2.1.4/jquery.min.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<style type="text/css">
body{margin:0;}
</style>
Expand All @@ -45,7 +45,7 @@
?>
</div>
<?php if($view_type == 'audio'){?>
<script type="text/javascript" src="//cdn.staticfile.net/aplayer/1.10.1/APlayer.min.js"></script>
<script type="text/javascript" src="https://s4.zstatic.net/ajax/libs/aplayer/1.10.1/APlayer.min.js"></script>
<script type="text/javascript">
var ap = new APlayer({
container: document.getElementById('aplayer'),
Expand All @@ -61,8 +61,8 @@
</script>
<?php }elseif($view_type == 'video'){?>
<script type="text/javascript" src="../assets/js/ckplayer.min.js"></script>
<?php if($type=='m3u8'){$plug='hls.js';?><script src="//cdn.staticfile.net/hls.js/1.2.4/hls.min.js"></script><?php }?>
<?php if($type=='flv'||$type=='f4v'){$plug='flv.js';?><script src="//cdn.staticfile.net/flv.js/1.6.2/flv.min.js"></script><?php }?>
<?php if($type=='m3u8'){$plug='hls.js';?><script src="https://s4.zstatic.net/ajax/libs/hls.js/1.2.4/hls.min.js"></script><?php }?>
<?php if($type=='flv'||$type=='f4v'){$plug='flv.js';?><script src="https://s4.zstatic.net/ajax/libs/flv.js/1.6.2/flv.min.js"></script><?php }?>
<script type="text/javascript">
$(".videoplayer").height($(window).height());
var videoObject = {
Expand Down
6 changes: 3 additions & 3 deletions admin/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ class="sr-only">Close</span></button>
</table>
</div>
</div>
<script src="//cdn.staticfile.net/layer/3.1.1/layer.min.js"></script>
<script src="//cdn.staticfile.net/bootstrap-table/1.20.2/bootstrap-table.min.js"></script>
<script src="//cdn.staticfile.net/bootstrap-table/1.20.2/extensions/page-jump-to/bootstrap-table-page-jump-to.min.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/layer/3.1.1/layer.min.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/bootstrap-table/1.21.4/bootstrap-table.min.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/bootstrap-table/1.21.4/extensions/page-jump-to/bootstrap-table-page-jump-to.min.js"></script>
<script src="../assets/js/custom.js"></script>
<script>
$(document).ready(function(){
Expand Down
12 changes: 6 additions & 6 deletions admin/head.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
<title><?php echo $title ?></title>
<link href="//cdn.staticfile.net/twitter-bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet"/>
<link href="//cdn.staticfile.net/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
<link href="https://s4.zstatic.net/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet"/>
<link href="https://s4.zstatic.net/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
<link href="../assets/css/bootstrap-table.css?v=1" rel="stylesheet"/>
<script src="//cdn.staticfile.net/jquery/2.1.4/jquery.min.js"></script>
<script src="//cdn.staticfile.net/twitter-bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js"></script>
<!--[if lt IE 9]>
<script src="//cdn.staticfile.net/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="//cdn.staticfile.net/respond.js/1.4.2/respond.min.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
Expand Down
4 changes: 2 additions & 2 deletions admin/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
<title>管理员登录</title>
<link href="//cdn.staticfile.net/twitter-bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet"/>
<link href="//cdn.staticfile.net/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
<link href="https://s4.zstatic.net/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet"/>
<link href="https://s4.zstatic.net/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
<style>
body{background:linear-gradient(to right,#49bdad,#6a67c7) fixed}
.form-horizontal{background-color:#fff;text-align:center;padding:50px 30px 30px;box-shadow:12px 12px 0 0 rgba(0,0,0,.3);margin-top:50%}
Expand Down
2 changes: 1 addition & 1 deletion admin/set.php
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@
?>
</div>
</div>
<script src="//cdn.staticfile.net/layer/2.3/layer.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/layer/2.3/layer.js"></script>
<script>
var items = $("select[default]");
for (i = 0; i < items.length; i++) {
Expand Down
2 changes: 1 addition & 1 deletion admin/set_stor.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@
</div>
</div>
</div>
<script src="//cdn.staticfile.net/layer/2.3/layer.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/layer/2.3/layer.js"></script>
<script>
var items = $("select[default]");
for (i = 0; i < items.length; i++) {
Expand Down
6 changes: 3 additions & 3 deletions admin/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ class="sr-only">Close</span></button>
</table>
</div>
</div>
<script src="//cdn.staticfile.net/layer/3.1.1/layer.min.js"></script>
<script src="//cdn.staticfile.net/bootstrap-table/1.20.2/bootstrap-table.min.js"></script>
<script src="//cdn.staticfile.net/bootstrap-table/1.20.2/extensions/page-jump-to/bootstrap-table-page-jump-to.min.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/layer/3.1.1/layer.min.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/bootstrap-table/1.21.4/bootstrap-table.min.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/bootstrap-table/1.21.4/extensions/page-jump-to/bootstrap-table-page-jump-to.min.js"></script>
<script src="../assets/js/custom.js"></script>
<script>
$(document).ready(function(){
Expand Down
2 changes: 1 addition & 1 deletion ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
if($conf['type_block']){
$type_block = explode('|',$conf['type_block']);
if(in_array($ext,$type_block)){
exit('{"code":-1,"msg":"文件上传失败","error":"block"}');
exit('{"code":-1,"msg":"文件上传失败,不支持上传该格式文件","error":"block"}');
}
}
if($conf['name_block']){
Expand Down
10 changes: 5 additions & 5 deletions file.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
</div>
<?php include SYSTEM_ROOT.'footer.php';?>
<?php if($filetype==2){?>
<script type="text/javascript" src="//cdn.staticfile.net/aplayer/1.10.1/APlayer.min.js"></script>
<script type="text/javascript" src="https://s4.zstatic.net/ajax/libs/aplayer/1.10.1/APlayer.min.js"></script>
<script type="text/javascript">
var ap = new APlayer({
container: document.getElementById('aplayer'),
Expand All @@ -251,8 +251,8 @@
</script>
<?php }elseif($filetype==3 && $row['block']==0){?>
<script type="text/javascript" src="assets/js/ckplayer.min.js"></script>
<?php if($type=='m3u8'){$plug='hls.js';?><script src="//cdn.staticfile.net/hls.js/1.2.4/hls.min.js"></script><?php }?>
<?php if($type=='flv'||$type=='f4v'){$plug='flv.js';?><script src="//cdn.staticfile.net/flv.js/1.6.2/flv.min.js"></script><?php }?>
<?php if($type=='m3u8'){$plug='hls.js';?><script src="https://s4.zstatic.net/ajax/libs/hls.js/1.2.4/hls.min.js"></script><?php }?>
<?php if($type=='flv'||$type=='f4v'){$plug='flv.js';?><script src="https://s4.zstatic.net/ajax/libs/flv.js/1.6.2/flv.min.js"></script><?php }?>
<script type="text/javascript">
var videoObject = {
container: '.videoplayer',
Expand All @@ -263,8 +263,8 @@
var player=new ckplayer(videoObject);
</script>
<?php }?>
<script src="//cdn.staticfile.net/layer/2.3/layer.js"></script>
<script src="//cdn.staticfile.net/clipboard.js/1.7.1/clipboard.min.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/layer/2.3/layer.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/clipboard.js/1.7.1/clipboard.min.js"></script>
<script>
function delete_confirm(){
var hash = $("#hash").val();
Expand Down
6 changes: 3 additions & 3 deletions includes/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<p class="text-muted">Copyright &copy; <?php echo date('Y')?> <a href="/"><?php echo $conf['title']?></a> <?php echo $conf['tongji']?> </p>
</div>
</footer>
<script src="//cdn.staticfile.net/twitter-bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script src="//cdn.staticfile.net/bootstrap-material-design/0.5.10/js/material.min.js"></script>
<script src="//cdn.staticfile.net/bootstrap-material-design/0.5.10/js/ripples.min.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/bootstrap-material-design/0.5.10/js/material.min.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/bootstrap-material-design/0.5.10/js/ripples.min.js"></script>
<script>
$.material.init();
</script>
16 changes: 8 additions & 8 deletions includes/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<!-- Bootstrap Material Design -->
<link href="//cdn.staticfile.net/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link href="//cdn.staticfile.net/twitter-bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet">
<link href="//cdn.staticfile.net/bootstrap-material-design/0.5.10/css/bootstrap-material-design.min.css" rel="stylesheet">
<link href="//cdn.staticfile.net/bootstrap-material-design/0.5.10/css/ripples.min.css" rel="stylesheet">
<?php if($is_file){?><link rel="stylesheet" href="//cdn.staticfile.net/aplayer/1.10.1/APlayer.min.css"><link href="assets/css/ckplayer.css" rel="stylesheet"><?php }?>
<link href="https://s4.zstatic.net/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link href="https://s4.zstatic.net/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet">
<link href="https://s4.zstatic.net/ajax/libs/bootstrap-material-design/0.5.10/css/bootstrap-material-design.min.css" rel="stylesheet">
<link href="https://s4.zstatic.net/ajax/libs/bootstrap-material-design/0.5.10/css/ripples.min.css" rel="stylesheet">
<?php if($is_file){?><link rel="stylesheet" href="https://s4.zstatic.net/ajax/libs/aplayer/1.10.1/APlayer.min.css"><link href="assets/css/ckplayer.css" rel="stylesheet"><?php }?>
<link href="assets/css/style.css?v=<?php echo VERSION?>" rel="stylesheet">
<!--[if lt IE 9]>
<script src="//cdn.staticfile.net/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="//cdn.staticfile.net/respond.js/1.4.2/respond.min.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script type="text/javascript" src="//cdn.staticfile.net/jquery/1.12.4/jquery.min.js"></script>
<script type="text/javascript" src="https://s4.zstatic.net/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
</head>
<body>

Expand Down
6 changes: 3 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@
</div>
<?php include SYSTEM_ROOT.'footer.php';?>
<?php if(!empty($conf['gonggao'])){?>
<link href="//cdn.staticfile.net/snackbarjs/1.1.0/snackbar.min.css" rel="stylesheet">
<script src="//cdn.staticfile.net/snackbarjs/1.1.0/snackbar.min.js"></script>
<script src="//cdn.staticfile.net/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
<link href="https://s4.zstatic.net/ajax/libs/snackbarjs/1.1.0/snackbar.min.css" rel="stylesheet">
<script src="https://s4.zstatic.net/ajax/libs/snackbarjs/1.1.0/snackbar.min.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
<script>
$(function() {
if(!$.cookie('gonggao')){
Expand Down
2 changes: 1 addition & 1 deletion login.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
</div>
</div>
<?php include SYSTEM_ROOT.'footer.php';?>
<script src="//cdn.staticfile.net/layer/2.3/layer.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/layer/2.3/layer.js"></script>
<script>
function connect(type){
var ii = layer.load(2, {shade:[0.1,'#fff']});
Expand Down
10 changes: 5 additions & 5 deletions player.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title><?php echo $title ?></title>
<link rel="stylesheet" href="//cdn.staticfile.net/aplayer/1.10.1/APlayer.min.css">
<link rel="stylesheet" href="https://s4.zstatic.net/ajax/libs/aplayer/1.10.1/APlayer.min.css">
<link href="./assets/css/ckplayer.css" rel="stylesheet">
<script src="//cdn.staticfile.net/jquery/2.1.4/jquery.min.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<style type="text/css">
body{margin:0;}
</style>
Expand All @@ -48,7 +48,7 @@
?>
</div>
<?php if($view_type == 'audio'){?>
<script type="text/javascript" src="//cdn.staticfile.net/aplayer/1.10.1/APlayer.min.js"></script>
<script type="text/javascript" src="https://s4.zstatic.net/ajax/libs/aplayer/1.10.1/APlayer.min.js"></script>
<script type="text/javascript">
var ap = new APlayer({
container: document.getElementById('aplayer'),
Expand All @@ -64,8 +64,8 @@
</script>
<?php }elseif($view_type == 'video'){?>
<script type="text/javascript" src="./assets/js/ckplayer.min.js"></script>
<?php if($type=='m3u8'){$plug='hls.js';?><script src="//cdn.staticfile.net/hls.js/1.2.4/hls.min.js"></script><?php }?>
<?php if($type=='flv'||$type=='f4v'){$plug='flv.js';?><script src="//cdn.staticfile.net/flv.js/1.6.2/flv.min.js"></script><?php }?>
<?php if($type=='m3u8'){$plug='hls.js';?><script src="https://s4.zstatic.net/ajax/libs/hls.js/1.2.4/hls.min.js"></script><?php }?>
<?php if($type=='flv'||$type=='f4v'){$plug='flv.js';?><script src="https://s4.zstatic.net/ajax/libs/flv.js/1.6.2/flv.min.js"></script><?php }?>
<script type="text/javascript">
$(".videoplayer").height($(window).height());
var videoObject = {
Expand Down
6 changes: 3 additions & 3 deletions upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@
<div class="colorful_loading"><i class="rect1"></i><i class="rect2"></i><i class="rect3"></i><i class="rect4"></i><i class="rect5"></i></div>
</div>
<?php include SYSTEM_ROOT.'footer.php';?>
<script src="//cdn.staticfile.net/vue/2.6.14/vue.min.js"></script>
<script src="//cdn.staticfile.net/layer/3.1.1/layer.js"></script>
<script src="//cdn.staticfile.net/spark-md5/3.0.2/spark-md5.min.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/vue/2.6.14/vue.min.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/layer/3.1.1/layer.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/spark-md5/3.0.2/spark-md5.min.js"></script>
<script>var upload_max_filesize = '<?php echo $conf['upload_size']?>';</script>
<script src="./assets/js/uploadnew.js?v=<?php echo VERSION?>"></script>
</body>
Expand Down

0 comments on commit 9f4bb3b

Please sign in to comment.