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

37 lines
919B

  1. <?php
  2. require(dirname(__FILE__)."/config.php");
  3. require_once(DEDEINC."/oxwindow.class.php");
  4. CheckPurview('plus_Mail');
  5. if(!isset($fmdo)) $fmdo="";
  6. if($fmdo=="del")
  7. {
  8. $filename = $cfg_basedir.$activepath."/$filename";
  9. @unlink($filename);
  10. $t="文件";
  11. ShowMsg("成功删除一个".$t."!","mail_file_manage.php");
  12. }else{
  13. if(!isset($activepath)){
  14. $activepath=$cfg_cmspath;
  15. }
  16. $inpath = "";
  17. $activepath = str_replace("..","",$activepath);
  18. $activepath = preg_replace("#^/{1,}#","/",$activepath);
  19. if($activepath == "/"){
  20. $activepath = "";
  21. }
  22. if($activepath == ""){
  23. $inpath = $cfg_basedir."/data/mail";
  24. }else{
  25. $inpath = $cfg_basedir.$activepath."/data/mail";
  26. }
  27. $activeurl = $activepath;
  28. if(preg_match("#".$cfg_templets_dir."#i", $activepath)){
  29. $istemplets = true;
  30. }else{
  31. $istemplets = false;
  32. }
  33. include DedeInclude('templets/mail_file_manage.htm');
  34. }
  35. ?>