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

25 lines
1.1KB

  1. <?php
  2. /**
  3. * 生成Rss操作
  4. *
  5. * @version $Id: makehtml_rss.php 1 11:17 2010年7月19日Z tianya $
  6. * @package DedeBIZ.Administrator
  7. * @copyright Copyright (c) 2022, DedeBIZ.COM
  8. * @license https://www.dedebiz.com/license
  9. * @link https://www.dedebiz.com
  10. */
  11. require_once(dirname(__FILE__)."/config.php");
  12. CheckPurview('sys_MakeHtml');
  13. require_once(DEDEINC."/archive/rssview.class.php");
  14. if (empty($tid)) $tid = 0;
  15. if (empty($maxrecord)) $maxrecord = 50;
  16. $row = $dsql->GetOne("SELECT id FROM `#@__arctype` WHERE id>'$tid' AND ispart<>2 ORDER BY id ASC LIMIT 0,1;");
  17. if (!is_array($row)) {
  18. echo "<link rel=\"stylesheet\" href=\"{$cfg_cmsurl}/static/web/css/bootstrap.min.css\"><style>.modal {position: static}</style>";
  19. echo "<div class=\"alert alert-success\">完成所有文件更新</div>";
  20. } else {
  21. $rv = new RssView($row['id'], $maxrecord);
  22. $rssurl = $rv->MakeRss(0);
  23. $tid = $row['id'];
  24. ShowMsg("成功更新".$rssurl.",继续执行任务", "makehtml_rss_action.php?tid=$tid&maxrecord=$maxrecord", 0, 100);
  25. }