FTP
parent
b4ec93208d
commit
30e18118e1
|
@ -193,6 +193,8 @@ if ($handle->uploaded) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 后续处理 */
|
/** 后续处理 */
|
||||||
|
// 上传至其他位置
|
||||||
|
// @any_upload($pathIMG, APP_ROOT . $pathIMG, 'upload');
|
||||||
// 使用fastcgi_finish_request操作
|
// 使用fastcgi_finish_request操作
|
||||||
if (function_exists('fastcgi_finish_request')) fastcgi_finish_request();
|
if (function_exists('fastcgi_finish_request')) fastcgi_finish_request();
|
||||||
// 同IP上传日志
|
// 同IP上传日志
|
||||||
|
@ -205,8 +207,6 @@ if ($handle->uploaded) {
|
||||||
@water($handle->file_dst_pathname);
|
@water($handle->file_dst_pathname);
|
||||||
// 压缩
|
// 压缩
|
||||||
@process_compress($handle->file_dst_pathname);
|
@process_compress($handle->file_dst_pathname);
|
||||||
// 上传至其他位置
|
|
||||||
// @any_upload($pathIMG, APP_ROOT . $pathIMG, 'upload');
|
|
||||||
|
|
||||||
unset($handle);
|
unset($handle);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1829,8 +1829,8 @@ function any_upload($remoteFile = null, $localFile = null, $way = 'upload')
|
||||||
// 关闭FTP
|
// 关闭FTP
|
||||||
$ftp->close();
|
$ftp->close();
|
||||||
|
|
||||||
// 是否删除本地文件
|
// FTP上传后是否删除本地文件
|
||||||
if ($config['ftped_del_local']) {
|
if ($config['ftp_del_local']) {
|
||||||
@unlink($localFile);
|
@unlink($localFile);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -216,6 +216,8 @@ if ($handle->uploaded) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 后续处理 */
|
/** 后续处理 */
|
||||||
|
// 上传至其他位置
|
||||||
|
// @any_upload($pathIMG, APP_ROOT . $pathIMG, 'upload');
|
||||||
// 使用fastcgi_finish_request操作
|
// 使用fastcgi_finish_request操作
|
||||||
if (function_exists('fastcgi_finish_request')) fastcgi_finish_request();
|
if (function_exists('fastcgi_finish_request')) fastcgi_finish_request();
|
||||||
// 同IP上传日志
|
// 同IP上传日志
|
||||||
|
@ -228,8 +230,6 @@ if ($handle->uploaded) {
|
||||||
@water($handle->file_dst_pathname);
|
@water($handle->file_dst_pathname);
|
||||||
// 压缩
|
// 压缩
|
||||||
@process_compress($handle->file_dst_pathname);
|
@process_compress($handle->file_dst_pathname);
|
||||||
// 上传至其他位置
|
|
||||||
// @any_upload($pathIMG, APP_ROOT . $pathIMG, 'upload');
|
|
||||||
|
|
||||||
unset($handle);
|
unset($handle);
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ $config=Array
|
||||||
'ftp_pasv'=>1,
|
'ftp_pasv'=>1,
|
||||||
'ftp_ssl'=>0,
|
'ftp_ssl'=>0,
|
||||||
'ftp_time'=>30,
|
'ftp_time'=>30,
|
||||||
'ftped_del_local'=>0,
|
'ftp_del_local'=>0,
|
||||||
'captcha'=>0,
|
'captcha'=>0,
|
||||||
'mustLogin'=>0,
|
'mustLogin'=>0,
|
||||||
'apiStatus'=>0,
|
'apiStatus'=>0,
|
||||||
|
|
Loading…
Reference in New Issue