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

  1. <?php
  2. /**
  3. * 标签测试操作
  4. *
  5. * @version $Id: tag_test_action.php 1 23:07 2010年7月20日Z tianya $
  6. * @package DedeCMS.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. {
  17. ShowMsg('错误请求','javascript:;');
  18. exit;
  19. }
  20. $partcode = stripslashes($partcode);
  21. if(empty($typeid)) $typeid = 0;
  22. if(empty($showsource)) $showsource = "";
  23. if($typeid>0) $pv = new PartView($typeid);
  24. else $pv = new PartView();
  25. $pv->SetTemplet($partcode, "string");
  26. if( $showsource == "" || $showsource == "yes" )
  27. {
  28. echo "模板代码:";
  29. echo "<span style='color:red;'><pre>".dede_htmlspecialchars($partcode)."</pre></span>";
  30. echo "结果:<hr size='1' width='100%'>";
  31. }
  32. $pv->Display();