Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

class/image 一个强加前缀的问题

[复制链接]
nenge 发表于 2011-12-29 21:38:24 | 显示全部楼层 |阅读模式
{:soso_e108:}

  1.    if($method == 'thumb') {
  2.    $target = empty($target) ? (!$nosuffix ? getimgthumbname($source) : $source) : $_G['setting']['attachdir'].'./'.$target;
  3.   } elseif($method == 'watermask') {
  4.    $target = empty($target) ?  $source : $_G['setting']['attachdir'].'./'.$target;
  5.   }
  6.   $targetpath = dirname($target);
  7.   dmkdir($targetpath);
  8.   clearstatcache();
  9.   if(!is_readable($source) || !is_writable($targetpath)) {
  10.    return -2;
  11.   }
复制代码

{:soso_e123:}使用DX自带的图片略缩 意味着必须存放在 data/attachment/ 中。

请问 能否去掉?或者改进??
回复

使用道具 举报

fen56 发表于 2011-12-30 09:24:49 | 显示全部楼层
:(:(:(
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-8-28 10:38 , Processed in 0.098675 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表