diff --git a/common.php b/common.php index 2979a66..a8e8f63 100644 --- a/common.php +++ b/common.php @@ -2224,6 +2224,25 @@ function render_list($path = '', $files = '') $background = str_replace('', getConfig('background'), $tmp[0]); } $html .= $background . $tmp[1]; + + $tmp = splitfirst($html, ''); + $html = $tmp[0]; + $tmp = splitfirst($tmp[1], ''); + $PathArrayStr = $tmp[0]; + $tmp_path = str_replace('%23', '#', str_replace('&','&', $path)); + $tmp_url = $_SERVER['base_disk_path']; + while ($tmp_path!='') { + $tmp1 = splitfirst($tmp_path, '/'); + $folder1 = $tmp1[0]; + if ($folder1!='') { + $tmp_url .= $folder1 . '/'; + $PathArrayStr1 = str_replace('', $tmp_url, $PathArrayStr); + $PathArrayStr1 = str_replace('', $folder1, $PathArrayStr1); + $html .= $PathArrayStr1; + } + $tmp_path = $tmp1[1]; + } + $html .= $tmp[1]; $tmp = splitfirst($html, ''); $html = $tmp[0]; @@ -2442,15 +2461,15 @@ function render_list($path = '', $files = '') } $theme_arr = scandir('theme'); - $html .= ' + $html .= '