mirror of
https://github.com/DzzXH/DzzOffice.git
synced 2026-04-05 18:35:13 +08:00
33 lines
714 B
PHP
33 lines
714 B
PHP
<?php
|
|
/*
|
|
* @copyright Leyun internet Technology(Shanghai)Co.,Ltd
|
|
* @license http://www.dzzoffice.com/licenses/license.txt
|
|
* @package DzzOffice
|
|
* @link http://www.dzzoffice.com
|
|
* @author zyx(zyx@dzz.cc)
|
|
*/
|
|
|
|
|
|
if(!defined('IN_DZZ')) {
|
|
exit('Access Denied');
|
|
}
|
|
define('NOROBOT', TRUE);
|
|
$path = empty($_GET['icoid'])?trim($_GET['path']):$_GET['icoid'];
|
|
$filename = isset($_GET['filename']) ? $_GET['filename'] : '';
|
|
$checkperm = isset($_GET['checkperm']) ? 0 : 1;
|
|
$patharr=explode(',',$path);
|
|
$paths=array();
|
|
foreach($patharr as $path){
|
|
if($path=dzzdecode($path)){
|
|
$paths[]=$path;
|
|
}
|
|
}
|
|
if($paths){
|
|
IO::download($paths,$filename,$checkperm);
|
|
exit();
|
|
}else{
|
|
exit('path error!');
|
|
}
|
|
|
|
?>
|