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

27 lines
948B

  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. * @license http://help.dedecms.com/usersguide/license.html
  9. * @link http://www.dedecms.com
  10. */
  11. require_once(dirname(__FILE__)."/config.php");
  12. CheckPurview('sys_MakeHtml');
  13. require_once(DEDEINC."/arc.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. {
  19. echo "完成所有文件更新!";
  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. }