From 2f41e4f7b34d86fc41130a3e6352f8c3df7493b7 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sat, 16 May 2020 13:03:56 +0800 Subject: [PATCH 01/19] use local url link instead of MS long url in privew --- common.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common.php b/common.php index c9d7944..0d81feb 100644 --- a/common.php +++ b/common.php @@ -2137,7 +2137,8 @@ function render_list($path = '', $files = '') $html = str_replace('', '', $html); $html = str_replace('', '', $html); } - while (strpos($html, '')) $html = str_replace('', $files[$_SERVER['DownurlStrName']], $html); + //while (strpos($html, '')) $html = str_replace('', $files[$_SERVER['DownurlStrName']], $html); + while (strpos($html, '')) $html = str_replace('', path_format($_SERVER['base_disk_path'] . '/' . $path), $html); while (strpos($html, '')) $html = str_replace('', path_format($_SERVER['base_disk_path'] . '/' . $path), $html); while (strpos($html, '')) $html = str_replace('', $files['name'], $html); $html = str_replace('', urlencode($files[$_SERVER['DownurlStrName']]), $html); @@ -2295,6 +2296,7 @@ function render_list($path = '', $files = '') $tmp[1] = $tmp1; } $html .= $MultiDiskArea . $tmp[1]; + while (strpos($html, '')) $html = str_replace('', $_SERVER['disktag'], $html); $tmp = splitfirst($html, ''); $html = $tmp[0]; From 72bcd304bf4ffb495d020c2acf0bd951e451427d Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sat, 16 May 2020 13:06:02 +0800 Subject: [PATCH 02/19] add multidisk (has bug) --- theme/nexmoe.html | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/theme/nexmoe.html b/theme/nexmoe.html index 10e58aa..2051f30 100644 --- a/theme/nexmoe.html +++ b/theme/nexmoe.html @@ -146,6 +146,16 @@ position: absolute; top: 180px; } + .more-disk{ + display: inline-block; + } + .more-disk div{ + list-style:none; + position:absolute;display:none;background:#fffaaa;border:0px #f7f7f7 solid;border-radius:5px;margin:-7px 0 0 0;padding:0 7px;color:#205D67;z-index:1; + } + .more-disk:hover div{display:block} + .more-disk div li{line-height:normal;} + .more-disk div li a[now]{background:#11faaa;}