Skip to content

Commit afdc711

Browse files
committed
1.56.02 release
1 parent 2d016e2 commit afdc711

File tree

13 files changed

+36
-29
lines changed

13 files changed

+36
-29
lines changed

app/controller/admin/log.class.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ public function typeList(){
4242
array('id' => 'explorer.index.fileDownload', 'text' => LNG('admin.log.downFile')),
4343
array('id' => 'explorer.fav.add', 'text' => LNG('explorer.addFav')),
4444
array('id' => 'explorer.fav.del', 'text' => LNG('explorer.delFav')),
45-
array('id' => 'explorer.history.remove', 'text' => '删除历史版本'),
46-
array('id' => 'explorer.history.rollback', 'text' => '回滚历史版本'),
47-
array('id' => 'explorer.history.clear', 'text' => '清空历史版本'), // 合并为历史版本操作,无需单独显示
45+
array('id' => 'explorer.history.remove', 'text' => ''), // 删除历史版本
46+
array('id' => 'explorer.history.rollback', 'text' => ''), // 回滚历史版本
47+
array('id' => 'explorer.history.clear', 'text' => ''), // 清空历史版本——合并为历史版本操作,无需单独显示
4848
);
4949
if(!is_array($list['file']['children'])){$list['file']['children'] = array();}
5050
$list['file']['children'] = array_merge($list['file']['children'], $fileList);
@@ -173,9 +173,11 @@ public function add($data=false, $info=null){
173173
if (in_array(ACT, array('fileOut', 'fileDownload'))) { // 多线程下载,或某些浏览器会请求多次
174174
if (!$this->checkHttpRange()) return;
175175
} else if (ACT == 'zipDownload') {
176-
if (isset($this->in['zipClient']) && $this->in['zipClient'] == '1') {
177-
$data = false; // 前端压缩下载会返回列表,故下方以$this->in赋值
178-
}
176+
// 前端压缩下载返回文件列表,列表文件分别请求下载(并记录日志),故此处不记录
177+
if (_get($this->in, 'zipClient') == '1' && _get($this->in, 'zipDownloadDisable') == '1') return;
178+
// if (isset($this->in['zipClient']) && $this->in['zipClient'] == '1') {
179+
// $data = false; // 前端压缩下载会返回列表,故下方以$this->in赋值
180+
// }
179181
}
180182
}
181183
if(!is_array($data)) $data = $this->filterIn();

app/controller/admin/server.class.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,14 +259,15 @@ public function _dbType($database){
259259
* 缓存配置切换检测、保存
260260
*/
261261
public function cacheSave(){
262-
if($this->in['check'] == '1'){
262+
$check = Input::get('check', null, 0);
263+
if($check){
263264
$type = Input::get('type','in',null,array('file','redis','memcached'));
264265
}else{
265266
$type = Input::get('cacheType','in',null,array('file','redis','memcached'));
266267
}
267268
if(in_array($type, array('redis','memcached'))) {
268269
$data = $this->_cacheCheck($type);
269-
if(Input::get('check', null, 0)) {
270+
if($check) {
270271
show_json(LNG('admin.setting.checkPassed'));
271272
}
272273
}
@@ -490,7 +491,7 @@ private function settingSave($dbType, $option, $type){
490491
}
491492

492493
// 生成全新的数据库
493-
public function dbChangeSave($dbType, $pdo, $database){
494+
private function dbChangeSave($dbType, $pdo, $database){
494495
// 1. 获取数据库配置信息
495496
$dbList = $this->validDbList();
496497
if($dbType == 'sqlite') {
@@ -551,7 +552,7 @@ private function taskToCache($task, $id = ''){
551552
* @param [type] $type 新增db类型
552553
* @return void
553554
*/
554-
public function dbChangeAct($database, $option, $type){
555+
private function dbChangeAct($database, $option, $type){
555556
// 1.初始化db
556557
$manageOld = new DbManage($database);
557558
$manageNew = new DbManage($option);

app/controller/admin/setting.class.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,16 @@ private function removeFolder($folder,$children=false){
179179
*/
180180
public function server(){
181181
$data = Input::getArray(array(
182-
'tab' => array('default'=>'', 'aliasKey'=>'type'),
182+
'tab' => array('default'=>'', 'aliasKey'=>'type'), // array('cache','db','recovery')
183183
'action' => array('check'=>'in', 'param'=>array('get', 'pinfo', 'save', 'task', 'clear'))
184184
));
185+
// srvGet/srvPinfo/cacheSave/dbSave/recoverySave
185186
$function = ($data['type'] ? $data['type'] : 'srv') . ucfirst($data['action']);
186-
// srvGet/cacheSave/dbSave/recoverySave
187-
Action('admin.server')->$function();
187+
$svcAct = Action('admin.server');
188+
if (!method_exists($svcAct, $function)) {
189+
show_json(LNG('common.illegalRequest'), false);
190+
}
191+
$svcAct->$function();
188192
}
189193

190194
// 将mysql表转为mb4编码; >= 5.53支持mb4;

app/sdks/archiveLib/bin/data.bin

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

config/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22
define('KOD_VERSION','1.56');
3-
define('KOD_VERSION_BUILD','01');
3+
define('KOD_VERSION_BUILD','02');

static/app/dist/api.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)