GetOne($gquery); if(is_array($arcRow)){ $arctitle = $arcRow['title']; $arcurl = GetFileUrl($aid,$arcRow['typeid'],$arcRow['senddate'],$arctitle,$arcRow['ismake'],$arcRow['arcrank'],$arcRow['namerule'],$arcRow['typedir'],$arcRow['money']); } else{ $dsql->Close(); ShowMsg("无法获取未知文档的信息!","-1"); exit(); } $cu = new ChannelUnit($arcRow['channel'],$aid); if(!is_array($cu->ChannelFields)) { $cu->Close(); $dsql->Close(); ShowMsg("获取文档链接信息失败!","-1"); exit(); } $vname = ""; foreach($cu->ChannelFields as $k=>$v){ if($v['type']=="softlinks"){ $vname=$k; break; } } if(!is_array($cu->ChannelFields)) { $cu->Close(); $dsql->Close(); ShowMsg("获取文档链接信息失败!","-1"); exit(); } $row = $dsql->GetOne("Select $vname From ".$cu->ChannelInfos['addtable']." where aid='$aid'"); $downlinks = $cu->GetAddLinks($row[$vname]); $dsql->Close(); $cu->Close(); $dtp = new DedeTagParse(); $dtp->LoadTemplate($cfg_basedir.$cfg_templets_dir."/plus/download_links_templet.htm"); $dtp->Display(); exit(); } //提供软件给用户下载 //------------------------ else if($open==1) { $link = base64_decode($link); header("Location:$link"); } ?>