diff --git a/src/admin/sys_safetest.php b/src/admin/sys_safetest.php
index 17796d3e..d701bc19 100644
--- a/src/admin/sys_safetest.php
+++ b/src/admin/sys_safetest.php
@@ -47,7 +47,7 @@ function TestOneFile($f)
if ($localFilehash === $remoteFilehash) {
return 0;
}
- $message .= "
\r\n";
+ $message .= "
\r\n";
return 1;
}
return 0;
@@ -68,10 +68,10 @@ function TestSafe($tdir)
}
//检测
if ($action == 'test') {
- $message = '';
+ $message = '';
AjaxHead();
TestSafe(DEDEROOT);
- if ($message == '') $message = "没发现可疑文件";
+ if ($message == '') $message = "没发现可疑文件";
echo $message;
exit();
} else if ($action == 'viewdiff') {
@@ -108,7 +108,7 @@ else if ($action == 'clear') {
@unlink($d.'/'.$filename);
}
}
- $message = "成功清空模板缓存";
+ $message = "成功清空模板缓存";
echo $message;
exit();
}
diff --git a/src/admin/templets/sys_safetest.htm b/src/admin/templets/sys_safetest.htm
index 751cf804..db8b162c 100644
--- a/src/admin/templets/sys_safetest.htm
+++ b/src/admin/templets/sys_safetest.htm
@@ -50,12 +50,12 @@
var filetype = $Obj('filetype').value;
var info = $Obj('info').value;
$Obj('loaddiv').style.display = 'block';
- fetch('sys_safetest.php?action=test&filetype=' + filetype + "&info=" + info).then(resp=>{
+ fetch('sys_safetest.php?action=test&filetype=' + filetype + "&info=" + info).then(resp => {
if (resp.ok) {
return resp.text()
}
throw new Error('系统错误,无法获取数据');
- }).then((d)=>{
+ }).then((d) => {
$DE('messagetd').innerHTML = d;
$Obj('loaddiv').style.display = 'none';
}).catch((error) => {
@@ -64,12 +64,12 @@
}
function LoadCtClear() {
$Obj('loaddiv').style.display = 'block';
- fetch('sys_safetest.php?action=clear').then(resp=>{
+ fetch('sys_safetest.php?action=clear').then(resp => {
if (resp.ok) {
return resp.text()
}
throw new Error('系统错误,无法获取数据');
- }).then((d)=>{
+ }).then((d) => {
$DE('messagetd').innerHTML = d;
$Obj('loaddiv').style.display = 'none';
}).catch((error) => {