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

31 lines
1.1KB

  1. <?php
  2. /**
  3. * 文件管理器
  4. *
  5. * @version $Id: file_manage_main.php 1 8:48 2010年7月13日Z tianya $
  6. * @package DedeBIZ.Administrator
  7. * @copyright Copyright (c) 2022, DedeBIZ.COM
  8. * @license https://www.dedebiz.com/license
  9. * @link https://www.dedebiz.com
  10. */
  11. require(dirname(__FILE__)."/config.php");
  12. CheckPurview('plus_文件管理器');
  13. if (!isset($activepath)) $activepath = DEDEBIZ_SAFE_MODE? $cfg_medias_dir : $cfg_cmspath;
  14. $inpath = "";
  15. $activepath = str_replace("..", "", $activepath);
  16. $activepath = preg_replace("#^\/{1,}#", "/", $activepath);
  17. if (DEDEBIZ_SAFE_MODE && !preg_match("#^/static#",$activepath)) {
  18. ShowMsg("安全模式下仅允许查看编辑static目录内容", -1);
  19. exit;
  20. }
  21. if ($activepath == "/") $activepath = "";
  22. if ($activepath == "") $inpath = $cfg_basedir;
  23. else $inpath = $cfg_basedir.$activepath;
  24. $activeurl = $activepath;
  25. if (preg_match("#".$cfg_templets_dir."#i", $activepath)) {
  26. $istemplets = TRUE;
  27. } else {
  28. $istemplets = FALSE;
  29. }
  30. include DedeInclude('templets/file_manage_main.htm');
  31. ?>