Update common.php
parent
fcaa61b8e3
commit
2714815bb3
|
@ -348,12 +348,15 @@ function get_timezone($timezone = '8')
|
|||
function message($message, $title = 'Message', $statusCode = 200)
|
||||
{
|
||||
return output('
|
||||
<html lang="' . $_SERVER['language'] . '">
|
||||
<html>
|
||||
<meta charset=utf-8>
|
||||
<body>
|
||||
<h1>' . $title . '</h1>
|
||||
<p>
|
||||
|
||||
' . $message . '
|
||||
|
||||
</p>
|
||||
</body>
|
||||
</html>', $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('<meta http-equiv="refresh" content="2;URL=./">', getconstStr('RefreshCache'), 302);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue