ElFinder +隐藏目录

时间:2013-08-24 09:20:25

标签: php elfinder

我目前正在使用ElFinder 2.0。

我想在主目录中隐藏一些目录。

我该怎么做?

我尝试了 connector.php 文件

但没有成功。

这是我的代码

$opts = array(
    // 'debug' => true,
    'roots' => array(
        array(
            'driver' => 'LocalFileSystem', // driver for accessing file system (REQUIRED)
            'path' => '/home/workioscProject/public_html/codensa/catalogo', // path to files (REQUIRED)
            'URL' => 'http://76.76.163.155/workioscProject/codensa/catalogo/', // URL to files (REQUIRED)
            'accessControl' => 'access'             // disable and hide dot starting files (OPTIONAL)
        ),
    ),
    'attributes' => array(
        array(// hide anything else
            'pattern' => '!^/exportForms!',
            'hidden' => true
        )
    )
);

// run elFinder
$connector = new elFinderConnector(new elFinder($opts));
$connector->run();

我做什么?

提前致谢。

1 个答案:

答案 0 :(得分:4)

$opts = array(
    // 'debug' => true,
    'roots' => array(
        array(
            'driver' => 'LocalFileSystem', // driver for accessing file system (REQUIRED)
            'path' => '/home/workioscProject/public_html/codensa/catalogo', // path to files (REQUIRED)
            'URL' => 'http://76.76.163.155/workioscProject/codensa/catalogo/', // URL to files (REQUIRED)
            'accessControl' => 'access' ,            // disable and hide dot starting files (OPTIONAL)
            'attributes' => array(
                array(// hide anything else
                    'pattern' => '!^/exportForms!',
                    'hidden' => true
                )
            )
        ),
    )
);