개발 Q&A

제목 elfinder 적용 시 도움을 청합니다.
글쓴이 우찬아빠 작성시각 2016/07/21 09:29:44
댓글 : 0 추천 : 0 스크랩 : 1 조회수 : 14144   RSS

http://studio-42.github.io/elFinder/#elf_l1_Lw <- elFinder 2.1.x - file manager for web

https://github.com/Studio-42/elFinder/wiki/Integration-with-CodeIgniter

이곳을 참조로 하여 elfinder를 적용 시켜 봤습니다.

일반적인 기능은 잘 되는데

/** * Simple function to demonstrate how to control file access using "accessControl" callback. * This method will disable accessing files/folders starting from '.' (dot) * * @param  string  $attr  attribute name (read|write|locked|hidden) * @param  string  $path  file path relative to volume root directory started with directory separator * @return bool|null **/

function access($attr, $path, $data, $volume) {  

 return strpos(basename($path), '.') === 0       // if file/folder begins with '.' (dot)        

 ? !($attr == 'read' || $attr == 'write')    // set read+write to false, other (locked+hidden) set to true        

:  null;                                    // else elFinder decide it itself

}

이 함수를 적용시키려는 부분에서 막혀서 (.)dot 폴더가 숨겨지지 않네요.

혹시 이 부분을 해결하신 분 있으시면 도움을 청하고 싶습니다.

아래 첨부파일은 codeIgniter용 elfinder 입니다.

 

관련링크 http://studio-42.github.io/elFinder/#elf_l1_Lw
https://github.com/Studio-42/elFinder/wiki/Integration-with-CodeIgniter
첨부파일 elfinder.zip (700.8 KB)
 다음글 파일 인코딩 방식이 utf-8인데도 깨지는 이유가;; (8)
 이전글 WP SES라는 플러그인을 찾았는데 질문드립니다.

댓글

없음