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

33 lines
976B

  1. <?php
  2. /**
  3. * 文件管理器
  4. *
  5. * @version $Id: file_manage_main.php 1 8:48 2010年7月13日Z tianya $
  6. * @package DedeCMS.Administrator
  7. * @copyright Copyright (c) 2007 - 2018, DesDev, Inc.
  8. * @copyright Copyright (c) 2020, DedeBIZ.COM
  9. * @license https://www.dedebiz.com/license/v6
  10. * @link https://www.dedebiz.com
  11. */
  12. require(dirname(__FILE__)."/config.php");
  13. CheckPurview('plus_文件管理器');
  14. if(!isset($activepath)) $activepath=$cfg_cmspath;
  15. $inpath = "";
  16. $activepath = str_replace("..", "", $activepath);
  17. $activepath = preg_replace("#^\/{1,}#", "/", $activepath);
  18. if($activepath == "/") $activepath = "";
  19. if($activepath == "") $inpath = $cfg_basedir;
  20. else $inpath = $cfg_basedir.$activepath;
  21. $activeurl = $activepath;
  22. if(preg_match("#".$cfg_templets_dir."#i", $activepath))
  23. {
  24. $istemplets = TRUE;
  25. }
  26. else
  27. {
  28. $istemplets = FALSE;
  29. }
  30. include DedeInclude('templets/file_manage_main.htm');