version 4.35 release, 兼容老版本自动升级
parent
71b68f3862
commit
f184f3e31e
|
@ -1,9 +1,10 @@
|
|||
### ver4.34 `2018/09/5`
|
||||
### ver4.35 `2018/09/5`
|
||||
-----
|
||||
#### update:
|
||||
- 新建文件,不同排序字段及排序方式,新建文件插入位置优化。
|
||||
- 子目录集成副部们权限优化
|
||||
- 细节样式等优化
|
||||
- 兼容老版本(4.0一下)升级
|
||||
|
||||
#### fix bug
|
||||
- 压缩文件夹预览,没有写权限也允许查看(个人可查看部门压缩文件内容)
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -163,7 +163,7 @@ class FileCache{
|
|||
public static function load($file){//10000次需要4s 数据量差异不大。
|
||||
if (!$file) return false;
|
||||
$file = iconv_system($file);
|
||||
if ( !file_exists($file) || filesize($file) == 0 ){
|
||||
if ( !file_exists($file) ){
|
||||
@file_put_contents($file,CONFIG_EXIT.'[]');
|
||||
chmod_path($file,0777);
|
||||
return array();
|
||||
|
|
|
@ -34,7 +34,7 @@ function updateCheck(){
|
|||
//from <=3.23 to 3.30
|
||||
if( file_exists(THE_DATA_PATH.'system/member.php') &&
|
||||
!file_exists(THE_DATA_PATH.'system/system_member.php')){
|
||||
new UpdateToV330();
|
||||
new updateToV330();
|
||||
}
|
||||
|
||||
//from [3.30~3.36] //还原用户目录
|
||||
|
@ -230,6 +230,17 @@ class Update3To400{
|
|||
}
|
||||
}
|
||||
function initUser($userPath){
|
||||
$checkFile = array(
|
||||
$userPath.'config.php',
|
||||
$userPath.'fav.php',
|
||||
$userPath.'share.php'
|
||||
);
|
||||
foreach ($checkFile as $item) {
|
||||
if(file_exists($item) && filesize($item) == 0 ){
|
||||
@unlink($item);
|
||||
}
|
||||
}
|
||||
|
||||
$this->parseFile($userPath.'config.php');
|
||||
$this->parseFile($userPath.'editor_config.php');
|
||||
$this->parseFile($userPath.'share.php',true);
|
||||
|
@ -459,6 +470,18 @@ class updateToV330{
|
|||
mk_dir($user_path.'home/document');
|
||||
mk_dir($user_path.'home/pictures');
|
||||
}
|
||||
|
||||
$userPath = $user_path.'data/';
|
||||
$checkFile = array(
|
||||
$userPath.'config.php',
|
||||
$userPath.'fav.php',
|
||||
$userPath.'share.php'
|
||||
);
|
||||
foreach ($checkFile as $item) {
|
||||
if(file_exists($item) && filesize($item) == 0 ){
|
||||
@unlink($item);
|
||||
}
|
||||
}
|
||||
mk_dir($user_path.'recycle');
|
||||
if(!is_array($data) || count($data)<4){
|
||||
$data = $GLOBALS['config']['settingSystemDefault'];
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
<?php
|
||||
define('KOD_VERSION','4.34');
|
||||
define('KOD_VERSION','4.35');
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
/* power by kodexplorer ver 4.34(2018-09-04) [build 1536066208.5747] */
|
||||
/* power by kodexplorer ver 4.35(2018-09-05) [build 1536127628.1198] */
|
||||
@import url('./fileIcon.css');
|
||||
@import url('./common.css');
|
||||
.frame-main{position:absolute;top:40px;width:100%;bottom:0px;}.frame-main .tools-left{background:#f8f8f8 url("../../../images/common/bg.gif") 0 0px;position:fixed;line-height:30px;padding-left:20px;height:28px;border-bottom:1px solid #ddd;left:0;width:100%;}.frame-main .tools-left a{font-size:1.25em;font-weight:800;text-decoration:none;color:#999;text-shadow:0 0 3px;display:inline-block;padding:2px 6px;margin-top:0;height:20px;line-height:20px;}.frame-main .tools-left a:hover{background:url("../../../images/common/buttons_40.png") 0 0px repeat-x;-webkit-box-shadow:0 2px 8px rgba(0,0,0,0.8);-moz-box-shadow:0 2px 8px rgba(0,0,0,0.8);box-shadow:0 2px 8px rgba(0,0,0,0.8);-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;}.frame-main .frame-left{position:absolute;left:0;top:30px;bottom:0;width:200px;background:#fff;background-attachment:fixed;overflow:auto;}.frame-main .frame-left .ztree{margin-top:0;}.frame-main .frame-left .ztree li.level0{margin-bottom:5px;}.frame-main .frame-resize{width:10px;cursor:col-resize;z-index:100;position:absolute;left:195px;top:0;bottom:0;overflow:hidden;background:url("../../../images/common/resize.png") 0px 50% no-repeat;}.frame-main .frame-resize.active{background:#000;opacity:0.2;filter:alpha(opacity=20);}.frame-main .frame-right{left:200px;right:0;position:absolute;top:0;bottom:0;overflow:auto;}.frame-main .frame-right .frame-right-main .resize-mask{z-index:999;position:absolute;left:0;top:0;bottom:0;right:0;display:none;}.frame-main .frame-right .frame-right-main .frame{height:100%;border-left:1px solid #ddd;overflow:hidden;}
|
||||
/* ver 4.34(2018-09-04) [build 1536066208.5747] */
|
||||
/* ver 4.35(2018-09-05) [build 1536127628.1198] */
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue