后台定义伪静态规则功能

This commit is contained in:
2016-07-11 21:59:18 +08:00
parent 48e20be344
commit bd2f66f3ed
5 changed files with 28 additions and 7 deletions

View File

@@ -121,7 +121,7 @@ class Upload {
$data['m_time'] = $info->getMTime(); //获取最后修改时间
$data['owner'] = $info->getOwner(); //文件拥有者
$data['savepath'] = $info->getPath(); //不带文件名的文件路径
$data['url'] = $data['path'] = substr($info->getPathname(), 1); //全路径
$data['url'] = $data['path'] = str_replace("\\", '/', substr($info->getPathname(), 1)); //全路径
$data['size'] = $info->getSize(); //文件大小,单位字节
$data['is_file'] = $info->isFile(); //是否是文件
$data['is_execut'] = $info->isExecutable(); //是否可执行