From 2714815bb312308e881ccce72c289371e8053178 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Tue, 3 Mar 2020 13:27:18 +0800 Subject: [PATCH] Update common.php --- function/common.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/function/common.php b/function/common.php index a753d46..7381c7d 100644 --- a/function/common.php +++ b/function/common.php @@ -348,12 +348,15 @@ function get_timezone($timezone = '8') function message($message, $title = 'Message', $statusCode = 200) { return output(' +
+ ' . $message . ' +
', $statusCode); @@ -482,6 +485,7 @@ function main($path) $constStr['language'] = $_COOKIE['language']; if ($constStr['language']=='') $constStr['language'] = getConfig('language'); if ($constStr['language']=='') $constStr['language'] = 'en-us'; + $_SERVER['language'] = $constStr['language']; $_SERVER['PHP_SELF'] = path_format($_SERVER['base_path'] . $path); $_SERVER['base_disk_path'] = $_SERVER['base_path']; $disktags = explode("|",getConfig('disktag')); @@ -789,7 +793,7 @@ function adminoperate($path) return output($result['body'], $result['stat']); } if ($_GET['RefreshCache']) { - //savecache('path_' . $path1, json_decode('{}',true), 1); + savecache('path_' . $path1 . '/?password', '', 1); savecache('path_' . $path . '/?password', '', 1); return message('', getconstStr('RefreshCache'), 302); }