Пример #1
0
             $referer = $rs->get('referer');
             $useragent = $rs->get('useragent');
             $replaceRNT = $rs->get('replaceRNT');
             $postList = $NIA->MultiLinksByPOST($rs->get('posts'), $rs->get('page_start'), $rs->get('page_end'), $rs->get('page_rules'));
             $param['post'] = $postList[$key];
             $pageTotal = count($postList);
             $url = $rs->get('url');
         }
 }
 $tag['variable'] = '[变数]';
 $tag['link'] = '[连接]';
 $tag['title'] = '[标题]';
 $area['links'] = $rs->get('area_link');
 $rs->get('multi_link') == 1 ? $areaMulti = 1 : ($areaMulti = 2);
 $rs->get('enter_link') == 0 ? $areaFormat = 1 : ($areaFormat = 2);
 $linksList = $NIA->getLinks($url, $tag, $area, $areaMulti, $areaFormat, $method, $param, $rs->get('link_replace'), $referer, $useragent, $replaceRNT);
 $NBS = new NEATBulidSql(TB_LINKS);
 $existsCount = $_GET['existsCount'];
 $dataCount = $_GET['dataCount'];
 foreach ($linksList['link'] as $k => $v) {
     if (in_array(getextension($v), $configIgnoreExt)) {
         continue;
     } else {
         $link =& $v;
         $sqlSearch = 'SELECT id ';
         $sqlSearch .= 'FROM ' . TB_LINKS . ' ';
         $sqlSearch .= 'WHERE url = \'' . $link . '\' ';
         $sqlSearch .= 'Limit 1';
         $rs = $db->query($sqlSearch);
         if (!$rs->next_record()) {
             ++$dataCount;