parent
31db7c5e05
commit
a94b87e762
11
ChangeLog.md
11
ChangeLog.md
|
@ -1,4 +1,4 @@
|
|||
### ver3.44 `2017/4/9`
|
||||
### ver3.45 `2017/4/9`
|
||||
-----
|
||||
#### update:
|
||||
- 安全防护;全面防护csrf攻击;安全性提升。
|
||||
|
@ -6,7 +6,7 @@
|
|||
- 上传优化: 文件权限设置644->755;大文件分片上传优化;ie浏览器兼容处理;上传失败自动重传机制加入
|
||||
- 文件编辑:换行切换为\r\n;兼容windows记事本;标签右键菜单图标样式问题
|
||||
- 工具栏——更多菜单加入:浏览器打开;图标优化;右键菜单二级菜单偶尔失去焦点情况处理
|
||||
- 远程下载优化: 优化多级301跳转文件下载;下载加入同域名referer; 断点续传优化;下载0Kb优化
|
||||
- 远程下载优化:windows下载失败处理,优化多级301跳转文件下载;下载加入同域名referer; 断点续传优化;下载0Kb优化;不支持curl服务器优化;
|
||||
- 对话框icon点击菜单,双击icon关闭
|
||||
- 分配了权限组添加用户权限:但提示没有权限。
|
||||
- 关闭了下载权限:允许文件预览、pdf、office预览等;屏蔽pdfjs上的下载按钮;
|
||||
|
@ -17,11 +17,11 @@
|
|||
- 壁纸自动下载文件夹放置在桌面下;桌面支持自定义中文文件夹
|
||||
- IE浏览器样式兼容性调整。
|
||||
- 文件右键——浏览器打开所有用户开启。
|
||||
- markdown预览优化:h1 下划线;预览最大化——禁用左右分栏;
|
||||
- markdown预览优化:h1 下划线;预览最大化——禁用左右分栏;加入html转义
|
||||
- 服务端强制设置了cookie为httpOnly导致csrf-token获取失败问题兼容性调整;语言切换失败问题
|
||||
- 收藏夹树目录:文件夹右键菜单加入文件夹对应功能,不存在则红色显示;可以拖拽文件到收藏夹的文件夹
|
||||
- 其他细节优化:样式优化,win7主题播放器样式优化;
|
||||
- php7 兼容性优化.
|
||||
- php7 兼容性优化.部分版本php报错;token error问题
|
||||
- 设置加入:
|
||||
- 自定义全局css|全局js[统计代码]
|
||||
- 公共目录展示用户开关配置,默认展示所有用户;
|
||||
|
@ -34,8 +34,9 @@
|
|||
- 分享文件夹搜索问题解决
|
||||
- 左侧目录目录列表和pc端一级目录统一
|
||||
- 分享页面文件打开未知文件,点击下载跳转到登陆页问题
|
||||
- android音视频播放优化
|
||||
- android音视频播放优化,直接打开文件;
|
||||
- android文件下载;文件名去除*filename
|
||||
- 前进后端;后退到最后undefined检测。
|
||||
- 在线解压缩全面支持
|
||||
- 支持压缩为zip,tar,gz,tar.gz格式文件
|
||||
- 单选,多选右键菜单自动压缩指定内容
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
<?php
|
||||
define('KOD_VERSION','3.44');
|
||||
define('KOD_VERSION','3.45');
|
||||
|
|
|
@ -12,6 +12,10 @@ class user extends Controller{
|
|||
private $notCheck;
|
||||
function __construct(){
|
||||
parent::__construct();
|
||||
|
||||
//php5.4 bug;需要重新读取一次
|
||||
@session_start();
|
||||
@session_write_close();
|
||||
$this->tpl = TEMPLATE . 'user/';
|
||||
if(!isset($_SESSION)){//避免session不可写导致循环跳转
|
||||
$this->login(DATA_PATH."<br/>".$GLOBALS['L']['path_can_not_write_data']);
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -98,10 +98,11 @@ class downloader {
|
|||
fclose($download_fp);
|
||||
fclose($fp);
|
||||
if(!@rename($file_temp,$file_name)){
|
||||
usleep(round(rand(0,1000)*50));//0.01~10ms
|
||||
@unlink($file_name);
|
||||
$res = @rename($file_temp,$file_name);
|
||||
if(!$res){
|
||||
return array('code'=>false,'data'=>'file rename error!');
|
||||
return array('code'=>false,'data'=>'rename error![open]');
|
||||
}
|
||||
}
|
||||
return array('code'=>true,'data'=>'success');
|
||||
|
@ -117,7 +118,6 @@ class downloader {
|
|||
@set_time_limit(0);
|
||||
if ($fp = @fopen ($file_temp, "a")){
|
||||
$ch = curl_init($url);
|
||||
|
||||
//断点续传
|
||||
if($support_range){
|
||||
curl_setopt($ch, CURLOPT_RANGE, $exists_length."-");
|
||||
|
@ -126,12 +126,13 @@ class downloader {
|
|||
curl_setopt($ch, CURLOPT_REFERER,get_url_link($url));
|
||||
$res = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
fclose($fp);
|
||||
if($res && filesize($file_temp) != 0){
|
||||
if(!@rename($file_temp,$file_name)){
|
||||
@unlink($file_name);
|
||||
$res = @rename($file_temp,$file_name);
|
||||
if(!$res){
|
||||
return array('code'=>false,'data'=>'file rename error!');
|
||||
return array('code'=>false,'data'=>'rename error![curl]');
|
||||
}
|
||||
}
|
||||
return array('code'=>true,'data'=>'success');
|
||||
|
|
|
@ -93,6 +93,9 @@ function is_wap(){
|
|||
}
|
||||
|
||||
function get_headers_curl($url,$timeout=30,$depth=0,&$headers=array()){
|
||||
if(!function_exists('curl_init')){
|
||||
return false;
|
||||
}
|
||||
if ($depth >= 10) return false;
|
||||
$ch = curl_init();
|
||||
curl_setopt($ch, CURLOPT_URL,$url);
|
||||
|
@ -211,6 +214,9 @@ function url_header($url){
|
|||
'name' => $name,
|
||||
'support_range' =>$support_range && ($length!=0)
|
||||
);
|
||||
if(!function_exists('curl_init')){
|
||||
$result['support_range'] = false;
|
||||
}
|
||||
//debug_out($url,$header,$result);
|
||||
return $result;
|
||||
}
|
||||
|
|
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
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
Loading…
Reference in New Issue