php小白求技术支持
是不是只需要修改phpcms 中的下面的这段代码就可以实现?个人QQ是166 188 1005,求大侠有偿帮忙啊!谢谢了谢谢了!
$upload_func = $this->upload_func;
if(@$upload_func($file['tmp_name'], $savefile)) {
$this->uploadeds ;
@chmod($savefile, 0644);
@unlink($file['tmp_name']);
$file['name'] = iconv('utf-8',CHARSET,$file['name']);
$uploadedfile = array('filename'=>$file['name'], 'filepath'=>$filepath, 'filesize'=>$file['size'], 'fileext'=>$fileext, 'fn'=>$file['fn']);
$thumb_enable = is_array($thumb_setting) && ($thumb_setting[0] > 0 || $thumb_setting[1] > 0 ) ? 1 : 0;
$image = new image($thumb_enable,$this->siteid);
if($thumb_enable) {
$image->thumb($savefile,'',$thumb_setting[0],$thumb_setting[1]);
}
if($watermark_enable) {
$image->watermark($savefile, $savefile);
}
$aids[] = $this->add($uploadedfile);
赞0
踩0