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

35 lines
987B

  1. <?php
  2. /**
  3. * 标签测试操作
  4. *
  5. * @version $Id: tag_test_action.php 1 23:07 2010年7月20日Z tianya $
  6. * @package DedeBIZ.Administrator
  7. * @copyright Copyright (c) 2020, DedeBIZ.COM
  8. * @license https://www.dedebiz.com/license
  9. * @link https://www.dedebiz.com
  10. */
  11. require_once(dirname(__FILE__) . "/config.php");
  12. CheckPurview('temp_Test');
  13. require_once(DEDEINC . "/arc.partview.class.php");
  14. CheckCSRF();
  15. if (empty($partcode)) {
  16. ShowMsg('错误请求', 'javascript:;');
  17. exit;
  18. }
  19. $partcode = stripslashes($partcode);
  20. if (empty($typeid)) $typeid = 0;
  21. if (empty($showsource)) $showsource = "";
  22. if ($typeid > 0) $pv = new PartView($typeid);
  23. else $pv = new PartView();
  24. $pv->SetTemplet($partcode, "string");
  25. if ($showsource == "" || $showsource == "yes") {
  26. echo "模板代码:";
  27. echo "<span style='color:red;'><pre>" . dede_htmlspecialchars($partcode) . "</pre></span>";
  28. echo "结果:<hr size='1' width='100%'>";
  29. }
  30. $pv->Display();