DISCUZ图片及文件上传功能详解
用到的类及函数:discuz_upload{} 文件上传类image{} 图片处理类
source/function/function_home.php
- source/class/discuz/discuz_upload.php
- source/class/class_image.php
source/function/function_home.php
- pic_upload($FILES, $type='album', $thumb_width=0, $thumb_height=0, $thumb_type=2) 基本图片上传source/function/function_spacecp.phppic_save($FILE, $albumid, $title, $iswatermark = true, $catid = 0) 复杂图片上传source/function/function_core.phpgetimgthumbname($fileStr, $extend='.thumb.jpg', $holdOldExt=true) 依图片地址获取缩略图地址