本文整理汇总了PHP中filesystem::get_files方法的典型用法代码示例。如果您正苦于以下问题:PHP filesystem::get_files方法的具体用法?PHP filesystem::get_files怎么用?PHP filesystem::get_files使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类filesystem
的用法示例。
在下文中一共展示了filesystem::get_files方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: filesystem
Version: 1.0 Release date: 08 July 2003
This program is part of the Group-Office Professional license
*/
//load Group-Office
require "../../../Group-Office.php";
//authenticate the user
$GO_SECURITY->authenticate();
//see if the user has access to this module
//for this to work there must be a module named 'example'
$GO_MODULES->authenticate('cms');
require $GO_THEME->theme_path . "header.inc";
require $GO_CONFIG->class_path . 'filesystem.class.inc';
$fs = new filesystem(true);
$plugin = $GO_MODULES->get_plugin('components');
$files = $fs->get_files($plugin['path']);
echo '<table border="0">';
echo '<tr><td width="16"></td>';
echo '<td><h3>' . $strName . '</h3></td>';
echo '<td colspan="2"></td></tr>';
while ($file = array_shift($files)) {
if ($file['name'] != 'select.php') {
echo '<tr><td width="16" height="16"><img src="' . $GO_THEME->images['site'] . '" border="0" widht="16" height="16" /></td>';
echo '<td><a class="normal" href="javascript:insert_file(\'' . urlencode($plugin['url'] . $file['name'] . '?site_id=' . $_REQUEST['site_id']) . '\');">' . strip_extension($file['name']) . '</a></td>';
}
}
echo '</table><br />';
$button = new button($cmdClose, "javascript:window.close();");
?>
<script type="text/javascript">