require/common.php
geturl函数
里面
- if ($isThumb) {
- if (file_exists($attachdir . '/thumb/' . $relativePath)) {
- return array($attachpath . '/thumb/' . $relativePath, 'Local');
- } elseif (file_exists($attachdir . '/' . $relativePath)) {
- return array($attachpath . '/' . $relativePath, 'Local');
- } elseif ($db_ftpweb) {
- $relativePath = 'thumb/' . $relativePath;
- }
- }
- if ($isThumb) {
- if ($isThumb==2) {
- return array($attachpath . '/thumb/mini/' . $relativePath, 'Local');
- }
- if (file_exists($attachdir . '/thumb/' . $relativePath)) {
- return array($attachpath . '/thumb/' . $relativePath, 'Local');
- } elseif (file_exists($attachdir . '/' . $relativePath)) {
- return array($attachpath . '/' . $relativePath, 'Local');
- } elseif ($db_ftpweb) {
- $relativePath = 'thumb/' . $relativePath;
- }
- }
$isThumb==2这段要加,貌似是控制mini缩略图的。