From f986460bbaa1024d2cd3c0bba13efa8b059684aa Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Fri, 15 May 2020 20:22:35 +0800 Subject: [PATCH] Update common.php --- common.php | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/common.php b/common.php index e1f1ffb..c9d7944 100644 --- a/common.php +++ b/common.php @@ -2138,6 +2138,7 @@ function render_list($path = '', $files = '') $html = str_replace('', '', $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('', $files['name'], $html); $html = str_replace('', urlencode($files[$_SERVER['DownurlStrName']]), $html); $html = str_replace('', getconstStr('ClicktoEdit'), $html); @@ -2162,13 +2163,17 @@ function render_list($path = '', $files = '') $html = str_replace('', $title, $html); $keywords = $n_path; - if ($p_path!='') $keywords .= ',' . $p_path; - $keywords .= ',' . $_SERVER['sitename'] . ',OneManager'; + if ($p_path!='') $keywords .= ', ' . $p_path; + if ($_SERVER['sitename']!='OneManager') $keywords .= ', ' . $_SERVER['sitename'] . ', OneManager'; + else $keywords .= ', OneManager'; $html = str_replace('', $keywords, $html); - if ($_GET['preview']) $description = 'Preview of '.$n_path.'. '; - elseif (isset($files['folder'])) $description = 'List of '.$n_path.'. '; - $description .= 'In '.$_SERVER['sitename']; + if ($_GET['preview']) { + $description = $n_path.', '.getconstStr('Preview');//'Preview of '. + } elseif (isset($files['folder'])) { + $description = $n_path.', '.getconstStr('List');//'List of '.$n_path.'. '; + } + //$description .= 'In '.$_SERVER['sitename']; $html = str_replace('', $description, $html); while (strpos($html, '')) $html = str_replace('', $_SERVER['base_disk_path'], $html); @@ -2258,7 +2263,7 @@ function render_list($path = '', $files = '') $html = $tmp[0]; $tmp = splitfirst($tmp[1], ''); if (!(isset($_SERVER['USER'])&&$_SERVER['USER']=='qcloud')) { - $html .= $tmp[0] . $tmp[1]; + $html .= str_replace('', getconstStr('OriginalPic'), $tmp[0]) . $tmp[1]; } else $html .= $tmp[1]; } $imgextstr = '';