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); }