当前位置: 首页>>代码示例>>PHP>>正文


PHP filesystem::get_settings方法代码示例

本文整理汇总了PHP中filesystem::get_settings方法的典型用法代码示例。如果您正苦于以下问题:PHP filesystem::get_settings方法的具体用法?PHP filesystem::get_settings怎么用?PHP filesystem::get_settings使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在filesystem的用法示例。


在下文中一共展示了filesystem::get_settings方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: die

//set path to browse
$home_path = '/users/' . $_SESSION['GO_SESSION']['username'];
if (!isset($_SESSION['GO_FILESYSTEM_PATH'])) {
    if ($fs->chroot_file_exists($home_path) || ($fs->chroot_file_exists('/users/') || $fs->chroot_mkdir('/users/', $GO_CONFIG->create_mode)) && $fs->chroot_mkdir($home_path, $GO_CONFIG->create_mode)) {
        $_SESSION['GO_FILESYSTEM_PATH'] = $home_path;
    } else {
        die('Failed creating home directory. Check server configuration. See if "' . $GO_CONFIG->file_storage_path . '" exists and is writable for the webserver.');
    }
}
$path = isset($_REQUEST['path']) ? smartstrip($_REQUEST['path']) : $_SESSION['GO_FILESYSTEM_PATH'];
$urlencoded_path = urlencode($path);
$return_to_path = isset($_REQUEST['return_to_path']) ? smartstrip($_REQUEST['return_to_path']) : $path;
//create filesystem and filetypes object
require_once $GO_CONFIG->class_path . 'filetypes.class.inc';
$filetypes = new filetypes();
$fs_settings = $fs->get_settings($GO_SECURITY->user_id);
//define task to peform
$task = isset($_REQUEST['task']) ? $_REQUEST['task'] : '';
$_SESSION['cut_files'] = isset($_SESSION['cut_files']) ? $_SESSION['cut_files'] : array();
$_SESSION['cut_folders'] = isset($_SESSION['cut_folders']) ? $_SESSION['cut_folders'] : array();
$_SESSION['copy_folders'] = isset($_SESSION['copy_folders']) ? $_SESSION['copy_folders'] : array();
$_SESSION['copy_files'] = isset($_SESSION['copy_files']) ? $_SESSION['copy_files'] : array();
//vars used to remember files that are to be overwritten or not
$overwrite_destination_path = isset($_POST['overwrite_destination_path']) ? smartstrip($_POST['overwrite_destination_path']) : '';
$overwrite_source_path = isset($_POST['overwrite_source_path']) ? smartstrip($_POST['overwrite_source_path']) : '';
$overwrite_all = isset($_POST['overwrite_all']) && $_POST['overwrite_all'] == 'true' ? 'true' : 'false';
$overwrite = isset($_POST['overwrite']) ? $_POST['overwrite'] : $overwrite_all;
require_once 'group_folders.inc';
$group_folders = get_group_folders($GO_SECURITY->user_id, 0);
$read_permission = $write_permission = true;
if (!is_group_folder($group_folders, $path)) {
开发者ID:BackupTheBerlios,项目名称:hpt-obm-svn,代码行数:31,代码来源:index.php


注:本文中的filesystem::get_settings方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。