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

пре 5 година
пре 4 година
пре 5 година
пре 5 година
пре 4 година
пре 5 година
12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * 生成网站地图
  4. *
  5. * @version $Id: makehtml_map.php 1 11:17 2010年7月19日Z tianya $
  6. * @package DedeCMS.Administrator
  7. * @copyright Copyright (c) 2020, DedeBIZ.COM
  8. * @license https://www.dedebiz.com/license/v6
  9. * @link https://www.dedebiz.com
  10. */
  11. require_once(dirname(__FILE__)."/config.php");
  12. require_once(DEDEINC."/sitemap.class.php");
  13. require_once(DEDEINC."/dedetag.class.php");
  14. if(empty($dopost))
  15. {
  16. ShowMsg("参数错误!","-1");
  17. exit();
  18. }
  19. $serviterm=empty($serviterm)? "" : $serviterm;
  20. $sm = new SiteMap();
  21. $maplist = $sm->GetSiteMap($dopost);
  22. if($dopost=="site")
  23. {
  24. $murl = $cfg_cmspath."/data/sitemap.html";
  25. $tmpfile = $cfg_basedir.$cfg_templets_dir."/plus/sitemap.htm";
  26. }
  27. else
  28. {
  29. $murl = $cfg_cmspath."/data/rssmap.html";
  30. $tmpfile = $cfg_basedir.$cfg_templets_dir."/plus/rssmap.htm";
  31. }
  32. $dtp = new DedeTagParse();
  33. $dtp->LoadTemplet($tmpfile);
  34. $dtp->SaveTo($cfg_basedir.$murl);
  35. $dtp->Clear();
  36. echo "<link rel=\"stylesheet\" href=\"{$cfg_cmsurl}/static/css/bootstrap.min.css\"><style>.modal {position: static;}</style>";
  37. echo "<div class=\"alert alert-success\" role=\"alert\">成功更新文件: $murl <a href='$murl' target='_blank' class='btn btn-secondary'>浏览...</a></div>";
  38. exit();