diff --git a/common.php b/common.php index 38a532a3f021f133cd302a7e846d5a6cbbd88218..2979a6635981ec80cb1348a80ad8ef9f291fa397 100644 --- a/common.php +++ b/common.php @@ -2433,7 +2433,15 @@ function render_list($path = '', $files = '') $html .= $tmp[1]; while (strpos($html, '')) $html = str_replace('', $_SERVER['timezone'], $html); - $theme_arr = scandir('theme'); + // 最后清除换行 + while (strpos($html, "\r\n\r\n")) $html = str_replace("\r\n\r\n", "\r\n", $html); + //while (strpos($html, PHP_EOL.PHP_EOL)) $html = str_replace(PHP_EOL.PHP_EOL, PHP_EOL, $html); + + $exetime = round(microtime(true)-$_SERVER['php_starttime'],3); + $html = str_replace('', date("Y-m-d H:i:s")." ".getconstStr('Week')[date("w")]." ".$_SERVER['REMOTE_ADDR'].' Runtime:'.$exetime.'s Mem:'.size_format(memory_get_usage()), $html); + } + + $theme_arr = scandir('theme'); $html .= '