Browse Source

调整

tags/6.2.8
叙述、别离 1 year ago
parent
commit
b3c6683251
2 changed files with 8 additions and 8 deletions
  1. +4
    -4
      src/admin/api.php
  2. +4
    -4
      src/admin/file_manage_view.php

+ 4
- 4
src/admin/api.php View File

@@ -28,7 +28,7 @@ function checkLogin()
if ($cuserLogin->getUserID() <= 0 || $cuserLogin->getUserType() != 10) {
echo json_encode(array(
"code" => -1,
"msg" => "当前操作需要登录超级管理员账号",
"msg" => "此操作需要登录超级管理员权限",
"data" => null,
));
exit;
@@ -226,7 +226,7 @@ if ($action === 'is_need_check_code') {
if (count($row) === 0) {
echo json_encode(array(
"code" => -1,
"msg" => "请获取版本更新记录",
"msg" => "请获取版本更新记录",
"data" => null,
));
exit;
@@ -272,7 +272,7 @@ if ($action === 'is_need_check_code') {
SetCache('update', 'vers', $row);
echo json_encode(array(
"code" => 0,
"msg" => "正在下载{$ver->ver}版本更新文件",
"msg" => "正在下载{$ver->ver}版本更新文件",
"data" => array(
"finish" => false,
),
@@ -319,7 +319,7 @@ if ($action === 'is_need_check_code') {
RmRecurse($backupVerPath);
echo json_encode(array(
"code" => 0,
"msg" => "正在应用{$ver->ver}的版本补丁文件",
"msg" => "正在更新{$ver->ver}版本补丁文件",
"data" => array(
"finish" => false,
),


+ 4
- 4
src/admin/file_manage_view.php View File

@@ -29,8 +29,8 @@ if ($fmdo == "rename") {
$win->AddHidden("activepath", $activepath);
$win->AddHidden("filename", $filename);
$win->AddTitle("修改文件名,当前路径:$ndirstring");
$win->AddItem("旧名称:", "<input type='input' name='oldfilename' id='oldfilename' value='$filename'>");
$win->AddItem("新名称:", "<input type='input' name='newfilename' id='newfilename'>");
$win->AddItem("旧名称:", "<input type='input' name='oldfilename' id='oldfilename' class='admin-input-md' value='$filename'>");
$win->AddItem("新名称:", "<input type='input' name='newfilename' id='newfilename' class='admin-input-md'>");
$winform = $win->GetWindow("ok");
$win->Display();
}
@@ -46,7 +46,7 @@ else if ($fmdo == "newdir") {
$win->AddHidden("activepath", $activepath);
$win->AddHidden("token", make_hash());
$win->AddTitle("当前目录 $activepathname ");
$win->AddItem("新目录:", "<input type='input' name='newpath' id='newpath'>");
$win->AddItem("新目录:", "<input type='input' name='newpath' id='newpath' class='admin-input-md'>");
$winform = $win->GetWindow("ok");
$win->Display();
}
@@ -62,7 +62,7 @@ else if ($fmdo == "move") {
$win->AddTitle("新位置前面不加'/'表示相对于当前位置,加'/'表示相对于根目录");
$win->AddItem("被移动文件:", $filename);
$win->AddItem("当前位置:", $activepath);
$win->AddItem("新位置:", "<input type='input' name='newpath' id='newpath'>");
$win->AddItem("新位置:", "<input type='input' name='newpath' id='newpath' class='admin-input-md'>");
$winform = $win->GetWindow("ok");
$win->Display();
}


Loading…
Cancel
Save