From 73e952bb5cfb838bec70e3be2a298ca46cc7e3c3 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Mon, 4 May 2020 11:41:31 +0800 Subject: [PATCH] Update common.php --- common.php | 57 ++++++++++++++++++++++++++---------------------------- 1 file changed, 27 insertions(+), 30 deletions(-) diff --git a/common.php b/common.php index fcb9824..c637961 100644 --- a/common.php +++ b/common.php @@ -1757,41 +1757,38 @@ function render_list($path = '', $files = '') while (strpos($html, '')) $html = str_replace('', str_replace('%23', '#', str_replace('&','&', $path)), $html); while (strpos($html, '')) $html = str_replace('', getconstStr('Home'), $html); - $html = str_replace('', $_SERVER['timezone'], $html); + while (strpos($html, '')) $html = str_replace('', $_SERVER['timezone'], $html); $html = str_replace('', getConfig('customCss'), $html); $html = str_replace('', getConfig('customScript'), $html); - $html = str_replace('', getconstStr('Login'), $html); - $html = str_replace('', getconstStr('Close'), $html); - $html = str_replace('', getconstStr('InputPassword'), $html); - $html = str_replace('', getconstStr('InputPasswordUWant'), $html); - $html = str_replace('', getconstStr('Success'), $html); - $html = str_replace('', getconstStr('GetUploadLink'), $html); - $html = str_replace('', getconstStr('UpFileTooLarge'), $html); - $html = str_replace('', getconstStr('UploadStart'), $html); - $html = str_replace('', getconstStr('UploadStartAt'), $html); - $html = str_replace('', getconstStr('LastUpload'), $html); - $html = str_replace('', getconstStr('ThisTime'), $html); - $html = str_replace('', getconstStr('UploadStartAt'), $html); - $html = str_replace('', getconstStr('Upload'), $html); - $html = str_replace('', getconstStr('AverageSpeed'), $html); - $html = str_replace('', getconstStr('CurrentSpeed'), $html); - $html = str_replace('', getconstStr('Expect'), $html); - $html = str_replace('', getconstStr('UploadErrorUpAgain'), $html); - $html = str_replace('', getconstStr('EndAt'), $html); - $html = str_replace('', getconstStr('AverageSpeed'), $html); - $html = str_replace('', getconstStr('ThisTime'), $html); - $html = str_replace('', getconstStr('AverageSpeed'), $html); - $html = str_replace('', getconstStr('UploadComplete'), $html); - $html = str_replace('', getconstStr('CopyUrl'), $html); - $html = str_replace('', getconstStr('UploadFail23'), $html); - $html = str_replace('', getconstStr('GetFileNameFail'), $html); - $html = str_replace('', getconstStr('UploadFile'), $html); - $html = str_replace('', getconstStr('UploadFolder'), $html); - + while (strpos($html, '')) $html = str_replace('', getconstStr('Login'), $html); + while (strpos($html, '')) $html = str_replace('', getconstStr('Close'), $html); + while (strpos($html, '')) $html = str_replace('', getconstStr('InputPassword'), $html); + while (strpos($html, '')) $html = str_replace('', getconstStr('InputPasswordUWant'), $html); + while (strpos($html, '')) $html = str_replace('', getconstStr('Submit'), $html); + while (strpos($html, '')) $html = str_replace('', getconstStr('Success'), $html); + while (strpos($html, '')) $html = str_replace('', getconstStr('GetUploadLink'), $html); + while (strpos($html, '')) $html = str_replace('', getconstStr('UpFileTooLarge'), $html); + while (strpos($html, '')) $html = str_replace('', getconstStr('UploadStart'), $html); + while (strpos($html, '')) $html = str_replace('', getconstStr('UploadStartAt'), $html); + while (strpos($html, '')) $html = str_replace('', getconstStr('LastUpload'), $html); + while (strpos($html, '')) $html = str_replace('', getconstStr('ThisTime'), $html); - $html = str_replace('', (isset($_GET['preview'])?'?preview&':'?'), $html); + while (strpos($html, '')) $html = str_replace('', getconstStr('Upload'), $html); + while (strpos($html, '')) $html = str_replace('', getconstStr('AverageSpeed'), $html); + while (strpos($html, '')) $html = str_replace('', getconstStr('CurrentSpeed'), $html); + while (strpos($html, '')) $html = str_replace('', getconstStr('Expect'), $html); + while (strpos($html, '')) $html = str_replace('', getconstStr('UploadErrorUpAgain'), $html); + while (strpos($html, '')) $html = str_replace('', getconstStr('EndAt'), $html); + + while (strpos($html, '')) $html = str_replace('', getconstStr('UploadComplete'), $html); + while (strpos($html, '')) $html = str_replace('', getconstStr('CopyUrl'), $html); + while (strpos($html, '')) $html = str_replace('', getconstStr('UploadFail23'), $html); + while (strpos($html, '')) $html = str_replace('', getconstStr('GetFileNameFail'), $html); + while (strpos($html, '')) $html = str_replace('', getconstStr('UploadFile'), $html); + while (strpos($html, '')) $html = str_replace('', getconstStr('UploadFolder'), $html); + while (strpos($html, '')) $html = str_replace('', (isset($_GET['preview'])?'?preview&':'?'), $html); $html = str_replace('', date("Y-m-d H:i:s")." ".getconstStr('Week')[date("w")]." ".$_SERVER['REMOTE_ADDR'], $html);