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

  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 - 2020, DesDev, Inc.
  6. * @license http://help.dedecms.com/usersguide/license.html
  7. * @link http://www.dedecms.com
  8. */
  9. require_once (dirname(__FILE__) . "/include/common.inc.php");
  10. require_once (DEDEINC . "/arc.taglist.class.php");
  11. $PageNo = 1;
  12. if(isset($_SERVER['QUERY_STRING']))
  13. {
  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. }
  19. else
  20. {
  21. $tag = '';
  22. }
  23. $tag = FilterSearch(urldecode($tag));
  24. if($tag != addslashes($tag)) $tag = '';
  25. if($tag == '') $dlist = new TagList($tag, 'tag.htm');
  26. else $dlist = new TagList($tag, 'taglist.htm');
  27. $dlist->Display();
  28. exit();