GetOne("SELECT arc.title,arc.senddate,arc.arcrank,arc.ismake,arc.money,arc.typeid,tp.topid,tp.typedir,tp.namerule, tp.moresite,tp.siteurl,tp.sitepath FROM `#@__archives` arc LEFT JOIN `#@__arctype` tp ON tp.id=arc.typeid WHERE arc.id='$aid'"); if(is_array($arcRow)) { $arctitle = $arcRow['title']; $topid = $arcRow['topid']; $arcurl = @GetFileUrl($aid,$arcRow['typeid'],$arcRow['senddate'],$arctitle,$arcRow['ismake'],$arcRow['arcrank'], $arcRow['namerule'],$arcRow['typedir'],$arcRow['money'],$arcRow['filename'],$arcRow['moresite'],$arcRow['siteurl'],$arcRow['sitepath']); } else { ShowMsg('無法瀏覽未知文檔!','-1'); exit(); } if(empty($mx)) $mx = $cfg_album_width; $pageGuide = ""; //獲取上下幅圖片鏈接 $row = $dsql->GetOne("SELECT imgurls FROM `#@__addonimages` WHERE aid='{$aid}'"); $i = 0; $nextSrc = ''; $preSrc = ''; $dtp = new DedeTagParse(); $dtp->LoadSource($row['imgurls']); foreach($dtp->CTags as $ctag) { if($ctag->GetName()=="img") { if($i==($npos-1)) $preSrc = trim($ctag->GetInnerText()); if($i==($npos+1)) $nextSrc = trim($ctag->GetInnerText()); $i++; } } unset($dtp); if($cfg_multi_site == 'Y'){ if(!preg_match("/^http:/i",$preSrc) && !empty( $preSrc)) $preSrc = $cfg_basehost.$preSrc; if(!preg_match("/^http:/i",$nextSrc) && !empty($nextSrc)) $nextSrc = $cfg_basehost.$nextSrc; } if($preSrc!='') { $pageGuide .= "<<上一幅圖片 "; } else { $pageGuide .= "這是開始"; } $nextlink = 'javascript:;'; if($nextSrc!='') { $nextlink = "showphoto.php?aid={$aid}&src=".urlencode($nextSrc)."&npos=".($npos+1); if($pageGuide!="") $pageGuide .= " | "; $pageGuide .= "下一幅圖片>>"; } else { $pageGuide .= " | 沒有了"; } require_once(DEDETEMPLATE.'/plus/showphoto.htm'); exit();免费av电影,日本av免费,免费av欧美国产在钱,国产av国片免费,免费av片在线观看蜜芽tv,精品熟女少妇av免费久久,岛国av无码免费无禁网站,国产av免费观看,韩国av片永久免费,国产免费av在线观看,手机国产av国片免费,动漫av网站免费观看,日韩av在线观看一区免费