论坛风格切换
  • 3120阅读
  • 0回复

[程序设置问题]门户ifthumb的图片获取不到 [复制链接]

上一主题 下一主题
离线太史慈
 

发帖
766
金币
626
威望
556
只看楼主 倒序阅读 使用道具 楼主  发表于: 2011-06-13
require/common.php
geturl函数
里面
  1.     if ($isThumb) {
  2.         if (file_exists($attachdir . '/thumb/' . $relativePath)) {
  3.             return array($attachpath . '/thumb/' . $relativePath, 'Local');
  4.         } elseif (file_exists($attachdir . '/' . $relativePath)) {
  5.             return array($attachpath . '/' . $relativePath, 'Local');
  6.         } elseif ($db_ftpweb) {
  7.             $relativePath = 'thumb/' . $relativePath;
  8.         }
  9.     }


  1.     if ($isThumb) {
  2.         if ($isThumb==2) {
  3.             return array($attachpath . '/thumb/mini/' . $relativePath, 'Local');
  4.         }
  5.         if (file_exists($attachdir . '/thumb/' . $relativePath)) {
  6.             return array($attachpath . '/thumb/' . $relativePath, 'Local');
  7.         } elseif (file_exists($attachdir . '/' . $relativePath)) {
  8.             return array($attachpath . '/' . $relativePath, 'Local');
  9.         } elseif ($db_ftpweb) {
  10.             $relativePath = 'thumb/' . $relativePath;
  11.         }
  12.     }


$isThumb==2这段要加,貌似是控制mini缩略图的。

[url=http://www.phpwind.com]phpwind[/url]
快速回复
限100 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 
提到某人:
选择好友
上一个 下一个