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

30 lines
918B

  1. <?php
  2. /**
  3. * @version $Id: tags.php 1 2010-06-30 11:43:09Z tianya $
  4. * @package DedeCMS.Site
  5. * @copyright Copyright (c) 2007 - 2018, DesDev, Inc.
  6. * @copyright Copyright (c) 2020, DedeBIZ.COM
  7. * @license https://www.dedebiz.com/license/v6
  8. * @link https://www.dedebiz.com
  9. */
  10. require_once(dirname(__FILE__) . "/include/common.inc.php");
  11. require_once(DEDEINC . "/arc.taglist.class.php");
  12. $PageNo = 1;
  13. if (isset($_SERVER['QUERY_STRING'])) {
  14. $tag = trim($_SERVER['QUERY_STRING']);
  15. $tags = explode('/', $tag);
  16. if (isset($tags[1])) $tag = $tags[1];
  17. if (isset($tags[2])) $PageNo = intval($tags[2]);
  18. } else {
  19. $tag = '';
  20. }
  21. $tag = FilterSearch(urldecode($tag));
  22. if ($tag != addslashes($tag)) $tag = '';
  23. if ($tag == '') $dlist = new TagList($tag, 'tag.htm');
  24. else $dlist = new TagList($tag, 'taglist.htm');
  25. $dlist->Display();
  26. exit();