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

29 lines
1.2KB

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