国内流行的内容管理系统(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.

35 lines
1.1KB

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