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