diff --git a/ChangeLog.md b/ChangeLog.md index c10ac29..b0db943 100755 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,14 +1,17 @@ -###ver3.03 `2015/3/26` +###ver3.1 `2015/3/26` ####update: - 分享可以修改路径;避免文件移动后原始分享路径失效问题 - 分享后自动刷新当前目录;跟新配置数据 - 文件管理 当前文件夹不可写,对应右键菜单功能屏蔽 + ####fix bug - cookie自动登录失败,导致页面css丢失问题 + - cookie路径导致语言设置失败问题 + - 应用中心css丢失问题 - 解压不了、权限验证过于严格问题 - 左侧树目录被底部盖住问题 - - 分享office不了预览问题 + - 分享office不能预览问题 - 用户组;用户组列表选择错误 - 菜单编辑中文部分乱码 - 图片预览优化 diff --git a/config/version.php b/config/version.php index 0406da4..093f6f0 100755 --- a/config/version.php +++ b/config/version.php @@ -1,2 +1,2 @@ <?php -define('KOD_VERSION','3.03'); \ No newline at end of file +define('KOD_VERSION','3.1'); \ No newline at end of file diff --git a/controller/user.class.php b/controller/user.class.php index d676ef5..d57c8f9 100755 --- a/controller/user.class.php +++ b/controller/user.class.php @@ -96,7 +96,7 @@ class user extends Controller } public function common_js(){ $basic_path = BASIC_PATH; - if ($GLOBALS['is_root']) { + if (!$GLOBALS['is_root']) { $basic_path = '/';//对非root用户隐藏所有地址 } $the_config = array( diff --git a/static/js/lib/util.js b/static/js/lib/util.js index dd7a42e..9c8ad27 100755 --- a/static/js/lib/util.js +++ b/static/js/lib/util.js @@ -136,7 +136,7 @@ var Cookie = (function(){ } var expDate=new Date(); expDate.setTime(expDate.getTime() + timeout*3600*24*1000); - str += "; path=/; expires="+expDate.toGMTString(); + str += "; expires="+expDate.toGMTString(); document.cookie = str; }; var del = function(key){ diff --git a/template/app/index.php b/template/app/index.php index 711a552..56bf975 100755 --- a/template/app/index.php +++ b/template/app/index.php @@ -11,7 +11,7 @@ http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <![endif]--> - <link href="<?php echo STATIC_PATH;?>static/style/skin/<?php echo $config['user']['theme'];?>app_setting.css?ver=<?php echo KOD_VERSION;?>" rel="stylesheet" id='link_css_list'/> + <link href="<?php echo STATIC_PATH;?>style/skin/<?php echo $config['user']['theme'];?>app_setting.css?ver=<?php echo KOD_VERSION;?>" rel="stylesheet" id='link_css_list'/> </head> <body>