国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.1KB

  1. <?php
  2. /**
  3. * 采集指定节点
  4. *
  5. * @version $Id: co_gather_start.php$
  6. * @package DedeBIZ.Administrator
  7. * @copyright Copyright (c) 2020, DedeBIZ.COM
  8. * @license https://www.dedebiz.com/license
  9. * @link https://www.dedebiz.com
  10. */
  11. require_once(dirname(__FILE__) . "/config.php");
  12. require_once(DEDEINC . "/dedecollection.class.php");
  13. if (!empty($nid)) {
  14. $ntitle = '采集指定节点:';
  15. $nid = intval($nid);
  16. $co = new DedeCollection();
  17. $co->LoadNote($nid);
  18. $row = $dsql->GetOne("SELECT COUNT(aid) AS dd FROM `#@__co_htmls` WHERE nid='$nid'; ");
  19. if ($row['dd'] == 0) {
  20. $unum = "没有记录或从来没有采集过这个节点!";
  21. } else {
  22. $unum = "共有 {$row['dd']} 个历史种子网址!<a href='javascript:SubmitNew();'>[<u>更新种子网址,并采集</u>]</a>";
  23. }
  24. } else {
  25. $nid = "";
  26. $row['dd'] = "";
  27. $ntitle = '监控式采集:';
  28. $unum = "没指定采集节点,将使用检测新内容采集模式!";
  29. }
  30. include DedeInclude('templets/co_gather_start.htm');