version 4.39 release

pull/336/head 4.39
warlee 2019-03-01 15:14:43 +08:00
parent 538bb1088b
commit d21827be1a
33 changed files with 85 additions and 52 deletions

View File

@ -1,3 +1,16 @@
### ver4.39 `2019/3/1`
-----
#### update:
- 桌面打开文件夹对话框,不同窗口文件相互剪切粘贴,自动同步窗口文件列表状态。
- 解压到选择文件夹时;自动判断当前文件夹是否可写入;不可写则不可选择当前文件夹
- 验证码固定为4位
#### fix bug
- 解决APP中文本文件预览问题
- 桌面压缩文件解压功能异常问题修复;
- 桌面文件夹中含有#*&字符的文件夹,打开路径错误问题修复;
### ver4.38 `2019/2/25`
-----
#### update:

View File

@ -999,6 +999,9 @@ class explorer extends Controller{
public function unzip(){
ignore_timeout();
$path = $this->path;
if(!file_exists($path)){
show_json(LNG("not_exists"),false);
}
$name = get_path_this($path);
$name = substr($name,0,strrpos($name,'.'));
$ext = get_path_ext($path);

View File

@ -31,15 +31,15 @@ class systemMember extends Controller{
/**
* 空间使用变更
* @param [type] $theId [userID or groupID]
* @param [type] $Sizeadd [变更的大小 sizeMax G为单位 sizeUse Byte为单位]
* @param [type] $sizeAdd [变更的大小 sizeMax G为单位 sizeUse Byte为单位]
*/
public static function spaceChange($theId,$Sizeadd=false){
public static function spaceChange($theId,$sizeAdd=false){
$sql = self::loadData();
$info = $sql->get($theId);
if(!is_array($info)){
show_json(LNG('data_not_full'),false);
}
if($Sizeadd===false){//重置用户空间;避免覆盖、解压等导致的问题
if($sizeAdd===false){//重置用户空间;避免覆盖、解压等导致的问题
$pathinfo = _path_info_more(iconv_system(USER_PATH.$info['path'].'/'));
$currentUse = $pathinfo['size'];
if(isset($info['homePath']) && file_exists(iconv_system($info['homePath']))){
@ -47,7 +47,7 @@ class systemMember extends Controller{
$currentUse += $pathinfo['size'];
}
}else{
$currentUse = floatval($info['config']['sizeUse'])+floatval($Sizeadd);
$currentUse = floatval($info['config']['sizeUse'])+floatval($sizeAdd);
}
$info['config']['sizeUse'] = $currentUse<0?0:$currentUse;
$sql->set($theId,$info);

View File

@ -593,7 +593,7 @@ class user extends Controller{
}
public function checkCode() {
session_start();//re start
$captcha = new MyCaptcha(mt_rand(3,4));
$captcha = new MyCaptcha(4);
$_SESSION['checkCode'] = $captcha->getString();
}

File diff suppressed because one or more lines are too long

View File

@ -80,7 +80,7 @@
mtime:0,
size:0
}
<?php if(ST.'.'.ACT == 'explorer.fileView'){echo "G.shareInfo.view = true;";}?>
<?php if(ST.'.'.ACT == 'explorer.fileView'){echo "G.shareInfo.view = true;G.sharePage=undefined;";}?>
G['accessToken'] = "<?php echo access_token_get();?>";
seajs.config({
base: "<?php echo STATIC_PATH;?>js/",

View File

@ -1,2 +1,2 @@
<?php
define('KOD_VERSION','4.38');
define('KOD_VERSION','4.39');

View File

@ -2,7 +2,7 @@
"id":"DPlayer",
"name":"DPlayer播放器",
"title":"DPlayer播放器",
"version":"1.05",
"version":"1.07",
"source":{
"icon":"{{pluginHost}}static/images/icon.png",
},

View File

@ -25,6 +25,11 @@ kodReady.push(function(){
});
window.DplayerSubtitle = parseInt("{{config.subtitle}}");
//临时兼容4.38及以前版本APP预览txt校验权限失败问题;
if (G.ACT + '.' + G.ST == 'view.api' && !G.user){
G.sharePage = undefined;
$.addStyle('.ace_editor{font-size:13px !important;}');
}
/**
* 临时修复文件夹右键新窗口打开异常问题<=4.32

File diff suppressed because one or more lines are too long

View File

@ -6,6 +6,18 @@ kodReady.push(function(){
}
return url;
}
//测试 替换分享链接地址;
// Hook.bind('explorer.path.share.uiInitStart',function(){
// G.appHostTemp = G.appHost;
// G.appHost = "http://test.com/";
// console.log(G.appHost);
// });
// Hook.bind('explorer.path.share.uiInit',function(){
// G.appHost = G.appHostTemp;
// });
kodApp.add({
name:"zipView",
title:"{{LNG.Plugin.default.zipView}}",

View File

@ -11,7 +11,7 @@ define(function(require, exports) {
var unZip = function(createFolder){
if(!ui.path.checkSystemPath()) return;
var oprate = ui.path.pathOperate;
ui.pathOperate.unZip(ui.path.makeParam().path,ui.f5,createFolder);
oprate.unZip(ui.path.makeParam().path,ui.f5,createFolder);
};
switch(action){
case 'zip-zip': zip();break;

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

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

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

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

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
/* power by kodexplorer ver 4.38(2019-02-25) [build 1551097123.7024] */
/* power by kodexplorer ver 4.39(2019-03-01) [build 1551424223.1101] */
@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.38(2019-02-25) [build 1551097123.7025] */
/* ver 4.39(2019-03-01) [build 1551424223.1101] */

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