From 2b2ea121cee7b0f1cd3c44bae979dc7951d4b577 Mon Sep 17 00:00:00 2001 From: zsx Date: Tue, 25 Aug 2015 18:17:59 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9F=90=E4=BA=9B?= =?UTF-8?q?=E6=83=85=E5=86=B5=E4=B8=8Bfilesize=E4=BC=9A=E5=87=BA=E9=94=99?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/function/file.function.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/function/file.function.php b/lib/function/file.function.php index 75ab376..ba3c6fe 100755 --- a/lib/function/file.function.php +++ b/lib/function/file.function.php @@ -50,8 +50,9 @@ function iconv_system($str){ } function get_filesize($path){ - return abs(sprintf("%u",filesize($path))); -} + // 某些情况下filesize会出错 + @$ret = abs(sprintf("%u",filesize($path))); + return (int)$ret;} /** * 获取文件详细信息 * 文件名从程序编码转换成系统编码,传入utf8,系统函数需要为gbk From f08bb89474cba0da950eb699ee2e14974bd4706e Mon Sep 17 00:00:00 2001 From: zsx Date: Tue, 25 Aug 2015 18:18:28 +0800 Subject: [PATCH 2/9] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=96=87=E4=BB=B6$info=5Flist=E6=9C=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/explorer.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/explorer.class.php b/controller/explorer.class.php index c7ad34d..aa667d0 100755 --- a/controller/explorer.class.php +++ b/controller/explorer.class.php @@ -254,7 +254,7 @@ class explorer extends Controller{ } $state = $error==0?true:false; $info = $success.' success,'.$error.' error'; - if (count($info_list) == 1 && $error==0) { + if ($error==0) { $info = $this->L['remove_success']; } show_json($info,$state); From adc2ff6030e60404d0cca54f2a37ab07dc075608 Mon Sep 17 00:00:00 2001 From: zsx Date: Tue, 25 Aug 2015 18:30:55 +0800 Subject: [PATCH 3/9] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=89=B9=E5=AE=9A?= =?UTF-8?q?=E6=83=85=E5=86=B5=E4=B8=8B=E8=BE=B9=E6=A0=8F=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/explorer.class.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/controller/explorer.class.php b/controller/explorer.class.php index aa667d0..1617069 100755 --- a/controller/explorer.class.php +++ b/controller/explorer.class.php @@ -101,9 +101,12 @@ class explorer extends Controller{ } //回收站不记录前进后退 - if($this->in['path'] != '*recycle*/' && $this->in['type'] !=='desktop'){ - $_SESSION['this_path']=$user_path; + if (isset($this->in['type'])){ + if($this->in['path'] != '*recycle*/' && $this->in['type'] !=='desktop'){ + $_SESSION['this_path']=$user_path; + } } + $list=$this->path($this->path); $list['history_status']= array('back'=>$hi->isback(),'next'=>$hi->isnext()); show_json($list); From 2f2e43578c74afe212ac5b31981ad02a24745994 Mon Sep 17 00:00:00 2001 From: zsx Date: Tue, 25 Aug 2015 18:45:22 +0800 Subject: [PATCH 4/9] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=A4=E4=B8=AA?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/editor/edit.php | 2 +- template/editor/editor.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/template/editor/edit.php b/template/editor/edit.php index 8d71646..5ea7706 100755 --- a/template/editor/edit.php +++ b/template/editor/edit.php @@ -89,7 +89,7 @@ http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">