Exemplo n.º 1
0
 function _getImageUrl($url, $ifthumb)
 {
     $pic = geturl($url, 'show');
     $miniUrl = attachShow::getMiniUrl($url, $ifthumb, $pic[1], false);
     return $miniUrl;
 }
Exemplo n.º 2
0
 function _getImageUrl($url, $ifthumb)
 {
     $pic = geturl($url, 'show');
     $ifdelete = 0;
     if (!is_array($pic)) {
         $ifdelete = 1;
     }
     $miniUrl = attachShow::getMiniUrl($url, $ifthumb, $pic[1], false);
     return array($miniUrl, $ifdelete);
 }
Exemplo n.º 3
0
 function analyse(&$attach)
 {
     global $db_windpost, $db_sellset, $db_hash;
     $atype = '';
     if ($attach['type'] == 'img' && $attach['needrvrc'] == 0 && $this->isImgShow) {
         $a_url = geturl($attach['attachurl'], 'show');
         if (is_array($a_url)) {
             $atype = 'pic';
             $attach += array('url' => $a_url[0], 'img' => cvpic($a_url[0] . '?' . $attach['size'], 1, $db_windpost['picwidth'], $db_windpost['picheight'], $attach['ifthumb'] & 1, $attach['descrip']), 'miniUrl' => attachShow::getMiniUrl($attach['attachurl'], $attach['ifthumb'], $a_url[1]));
         } elseif ($a_url == 'imgurl') {
             $atype = 'picurl';
             $attach += array('verify' => md5("showimg{$attach[tid]}{$attach[pid]}{$attach[fid]}{$attach[aid]}{$db_hash}"));
         }
     } else {
         $atype = 'downattach';
         if ($attach['needrvrc'] > 0) {
             !$attach['ctype'] && ($attach['ctype'] = $attach['special'] == 2 ? 'money' : 'rvrc');
             if ($attach['type'] == 'img') {
                 $a_url = geturl($attach['attachurl'], 'show');
                 $attach['img'] = cvpic($a_url[0] . '?' . $attach['size'], 1, $db_windpost['picwidth'], $db_windpost['picheight'], $attach['ifthumb'] & 1, $attach['descrip']);
             }
             if ($attach['special'] == 2) {
                 $db_sellset['price'] > 0 && ($attach['needrvrc'] = min($attach['needrvrc'], $db_sellset['price']));
             }
         }
         $attach += array('cname' => pwCreditNames($attach['ctype']), 'ext' => strtolower(substr(strrchr($attach['name'], '.'), 1)));
     }
     return $atype;
 }