zhangjingyu
//ruinjoy 缩略图
global $db_ifathumb,$db_athumbsize;
if($db_ifathumb){
require_once (R_P . 'require/imgfunc.php');
$ifthumb = $db_ifathumb;
if ($this->forum->forumset['ifthumb'] == 0) {
$thumbsize =$db_athumbsize;
} elseif ($this->forum->forumset['ifthumb'] == 1) {
$thumbsize =$pwforum->forumset['thumbsize'];
} elseif ($this->forum->forumset['ifthumb'] == 2) {
$thumbsize = 0;
$ifthumb = 0;
} else {
$thumbsize = $db_athumbsize;
}
if($ifthumb){
$getThumbInfo = array(
array($filename, 'thumb/' . $savedir, $thumbsize),
array($filename, 'thumb/mini/' . $savedir, "200\t150\t$db_athumbtype")
);
PwUpload::makeThumb($source, $getThumbInfo, $this->db_ifftp, $ifthumb);
}
}
//ruinjoy
加这个下面
// 下载图片文件
if (!$this->downFile($value, $source, $ext)) {
// Showmsg('获取远程图片失败,图片可能不存在,或做了防盗链如果不是上述情况,请检查您的环境配置是否正确!');
} else {
$ifDone = TRUE;
}
if($ifDone) {