Skip to content

Commit

Permalink
v1.50
Browse files Browse the repository at this point in the history
  • Loading branch information
helloxz committed May 30, 2020
1 parent 0f0e903 commit b510439
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 138 deletions.
3 changes: 2 additions & 1 deletion config.simple.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".",
".git",
".user.ini",
".htaccess",
"favicon.ico",
"functions",
"config.php",
Expand All @@ -34,6 +35,6 @@
),
"username" => "zdir", //用户名
"password" => "xiaoz.me", //密码
"auth" => FALSE
"auth" => FALSE //是否开启访问验证
);
?>
7 changes: 5 additions & 2 deletions functions/home.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ function updir($dir){
<th class = "layui-hide-xs"></th>
<th class = "layui-hide-xs">修改时间</th>
<th>文件大小</th>
<th class = "layui-hide-xs">操作</th>
<th class = "layui-hide-xs layui-hide-sm layui-show-md-block">操作</th>
</tr>
</thead>
<tbody>
Expand Down Expand Up @@ -299,6 +299,7 @@ function updir($dir){
<a class = "fname1" href="<?php echo $url ?>" id = "url<?php echo $i; ?>"><i class="<?php echo $ico; ?>"></i> <?php echo $showdir; ?></a>
<?php } ?>
</td>
<!-- 查看HASH例 -->
<td id = "info" class = "layui-hide-xs">
<!--如果是文件-->
<?php if($type == 'file'){ ?>
Expand All @@ -308,7 +309,8 @@ function updir($dir){
</td>
<td class = "layui-hide-xs"><?php echo $ctime; ?></td>
<td><?php echo $fsize; ?></td>
<td class = "layui-hide-xs">
<!-- 操作例 -->
<td class = "layui-hide-xs layui-hide-sm layui-show-md-block">
<!--复制链接-->
<?php if($fsize != '-'){ ?>
<a href="javascript:;" class = "layui-btn layui-btn-xs layui-btn-normal" title = "复制链接" onclick = "copy('<?php echo $url ?>')"><i class="fa fa-copy"></i></a>
Expand All @@ -333,6 +335,7 @@ function updir($dir){
<a class = "layui-btn layui-btn-xs layui-btn-normal" href="javascript:;" title = "点此查看" onclick = "office('<?php echo $url ?>')"><i class="fa fa-eye"></i></a>
<?php } ?>
</td>
<!-- 操作例END -->
</tr>
<?php } ?>

Expand Down
10 changes: 6 additions & 4 deletions functions/music.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
//获取视频播放地址
@$url = $_GET['url'];
$url = con_coding($url,FALSE);
$url = str_replace("./","../",$url);
if( $config['thedir'] != '' ){
$url = str_replace("./","../",$url);
}

//判断文件是否存在
if(!file_exists($url)){
Expand All @@ -21,7 +23,7 @@
<meta name="author" content="" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<link rel="stylesheet" href="../static/aplayer/APlayer.min.css" type="" media=""/>
<link rel="stylesheet" href="./static/aplayer/APlayer.min.css" type="" media=""/>
</head>
<body>
<!--音频播放容器-->
Expand All @@ -38,15 +40,15 @@
}
?>
</video>-->
<script src = "../static/aplayer/APlayer.min.js"></script>
<script src = "./static/aplayer/APlayer.min.js"></script>
<script type="text/javascript">
const ap = new APlayer({
container: document.getElementById('aplayer'),
audio: [{
name: '<?php echo $url; ?>',
url: '<?php echo $url; ?>',
artist: 'none',
cover: '../static/music.png'
cover: './static/music.png'
}]
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion functions/readme.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel='stylesheet' href='https://libs.xiaoz.top/highlight.js/9.12.0/styles/github.min.css'>
<link rel="stylesheet" href="https://libs.xiaoz.top/layui-v2.2.5/layui/css/layui.css">
<link rel="stylesheet" href="../static/md.css">
<link rel="stylesheet" href="./static/md.css">
</head>
<body style = "background-color:#FFFFFF;">
<div class="md-html" style = "margin-right:1em;margin-top:-1em;box-shadow:none;">
Expand Down
2 changes: 1 addition & 1 deletion functions/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.40-2020524
1.50-2020530
10 changes: 6 additions & 4 deletions functions/video.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
//获取视频播放地址
@$url = $_GET['url'];
$url = con_coding($url,FALSE);
$url = str_replace("./","../",$url);
if( $config['thedir'] != '' ){
$url = str_replace("./","../",$url);
}

//判断文件是否存在
if(!file_exists($url)){
Expand All @@ -20,7 +22,7 @@
<meta name="author" content="" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<link rel="stylesheet" href="../static/dplayer/DPlayer.min.css" type="" media=""/>
<link rel="stylesheet" href="./static/dplayer/DPlayer.min.css" type="" media=""/>
</head>
<body>
<!--视频播放容器-->
Expand All @@ -37,8 +39,8 @@
}
?>
</video>-->
<script src="../static/hls.min.js"></script>
<script src = "../static/dplayer/DPlayer.min.js"></script>
<script src="./static/hls.min.js"></script>
<script src = "./static/dplayer/DPlayer.min.js"></script>
<script type="text/javascript">
const dp = new DPlayer({
container: document.getElementById('dplayer'),
Expand Down
2 changes: 1 addition & 1 deletion functions/viewmd.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.bootcss.com/highlight.js/9.12.0/styles/github.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://libs.xiaoz.top/layui-v2.2.5/layui/css/layui.css">
<link rel="stylesheet" href="../static/md.css">
<link rel="stylesheet" href="./static/md.css">
</head>
<body>
<div id="container" class = "layui-bg-gray">
Expand Down
4 changes: 2 additions & 2 deletions template/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<div class = "layui-container">
<div class = "layui-row">
<div class = "layui-col-lg12">
<div class="logo layui-hide-xs">
<div class="logo layui-hide-xs layui-hide-sm layui-show-md-block">
<h1 style="font-size:1.7em;font-weight:bold;"><a href="./">
<?php
if( @$siteinfo['site_name'] ){
Expand Down Expand Up @@ -70,7 +70,7 @@
<li class="layui-nav-item"><a href="https://www.xiaoz.me/archives/10465" target = "_blank"><i class="layui-icon">&#xe60b;</i> 关于</a></li>
</ul>
</div>
<div class = "layui-hide-xs" style = "width:260px;float:right;margin-top:10px;">
<div class = "layui-hide-xs layui-hide-sm layui-show-md-block" style = "width:260px;float:right;margin-top:10px;">
<form class="layui-form" action="./" method = "get">
<input type="text" name="c" required lay-verify="required" autocomplete="off" class="layui-input" value = "search" style = "display: none;">
<input style = "width:70%;float:left;border-right:0;border-radius:0;" type="text" name="s" required lay-verify="required" placeholder="请输入关键词" autocomplete="off" class="layui-input">
Expand Down
122 changes: 0 additions & 122 deletions zdir-install.sh

This file was deleted.

0 comments on commit b510439

Please sign in to comment.