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

34 lines
1.1KB

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