时间:2021-07-01 10:21:17 帮助过:8人阅读
header("Content-type: text/html; charset=UTF-8");
define("ROOT",str_ireplace('/waityou/'.basename(__FILE__),'',str_ireplace("","/",__FILE__)));
define("UploadFolder","/uploadfile/");//上传根目录
define("_d",$_SERVER['DOCUMENT_ROOT']);
define("AllowUploadType","gif|jpg|png|txt|doc|xls|ppt|pdf|rar|zip|7z|chm|mp3|mp4|mpg|mpeg|flv|swf");//允许上传的类型
define("MaxUploadSize",@ini_get('upload_max_filesize'));
$act = empty($_GET['act'])?'':$_GET['act'];if($act == ""){
html_header();
}elseif($act == 'left'){
left();
}elseif($act == 'right'){
if(!empty($_POST['upfolder'])) {
upload_file();exit;
}$dir = empty($_GET['folder'])?'':$_GET['folder'];
if($dir == ''){
right(UploadFolder);
}else{
$del_file = empty($_GET['del_file'])?'':$_GET['del_file'];
if($del_file == '') {
open_folder($dir);
}else{
delete_file($del_file);
}
}
}
1 2 3 4 5 6
http://www.bkjia.com/PHPjc/444917.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/444917.htmlTechArticlephp教程防dedecms附件式文件在线管理系统 使用方法: 1。先在根目录建立uploadfile目录 2。值与图:这是用于将此图片传到父窗口的。值,传的...