【发布时间】:2016-03-31 03:45:02
【问题描述】:
我正在使用this filemanager,我的问题是我想限制文件夹的访问。因为在我的页面中有多个用户,每个用户都有自己的文件夹。有可能吗?
控制器部分
$data['file_explorer'] = base_url('assets/resources/filemanager/dialog.php?type=0');
查看
<a data-toggle="modal" href="javascript:;" data-target="#myModal" class="btn" type="button">Upload</a>
...
<div class="modal fade" id="myModal" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Modal title</h4>
</div>
<div class="modal-body">
<iframe width="100%" height="500" src="<?php echo $file_explorer; ?>" frameborder="0" style="overflow: scroll; overflow-x: hidden; overflow-y: scroll; "></iframe>
</div>
</div>
</div>
</div>
【问题讨论】:
标签: php codeigniter codeigniter-3 file-manager