Esempio n. 1
0
             $outgoing[$refcohash[$hash]]["VIATARGETS"][$viacnt]["NAME"] = $oref[$i]["TGTOID"];
         } elseif ($oref[$i]["TGTTYPE"] == REFTYPE_EXTERNAL) {
             $outgoing[$refcohash[$hash]]["VIATARGETS"][$viacnt]["NAME"] = $oref[$i]["TGTOID"];
         }
         if (!$skippage) {
             $outgoing[$refcohash[$hash]]["VIATARGETS"][$viacnt]["TARGETTYPE"] = $oref[$i]["TGTTYPE"];
             $outgoing[$refcohash[$hash]]["VIATARGETS"][$viacnt]["ID"] = $oref[$i]["TGTOID"];
             $outgoing[$refcohash[$hash]]["VIATARGETS"][$viacnt]["AID"] = $oref[$i]["TGTAID"];
             $reftargethash[$oref[$i]["CBID"] . $oref[$i]["TGTOID"] . $oref[$i]["TGTAID"]] = true;
         } else {
             $skippage = false;
         }
         $oc++;
     }
 }
 $oref = $reftracker->getIncomingForPage($siteID, $pageID);
 $sites = $siteMgr->getList();
 $incoming = array();
 $refcohash = array();
 $reftargethash = array();
 $ic = 0;
 $viacnt = 0;
 for ($i = 0; $i < count($oref); $i++) {
     if (!isset($reftargethash[$oref[$i]["SRCOID"]])) {
         $links = sCblockMgr()->getCblockLinkByEntrymaskLinkId($oref[$i]["SRCOID"]);
         $linkedto = array();
         for ($c = 0; $c < count($links); $c++) {
             if ($oref[$i]["SRCVER"] > 0) {
                 $lcb = sCblockMgr()->getCblock($links[$c]["CBLOCKID"]);
                 if ($lcb) {
                     $lcv = $lcb->getPublishedVersion(true);