Пример #1
0
        setupBasePathsWin();
        if ($dwfck_local) {
            $Config['UserFilesPath'] = str_replace('/media', '/pages', $Config['UserFilesPath']);
            if ($isWindows) {
                $Config['UserFilesAbsolutePath'] = str_replace('\\media', '\\pages', $Config['UserFilesAbsolutePath']);
            } else {
                $Config['UserFilesAbsolutePath'] = str_replace('/media', '/pages', $Config['UserFilesAbsolutePath']);
            }
        }
        if ($DWFCK_con_dbg) {
            DWFCK_cfg_dbg('win_paths.txt');
        }
    } else {
        setupBasePathsNix();
        if ($DWFCK_con_dbg) {
            DWFCK_cfg_dbg('nix_paths.txt');
        }
    }
}
//$isWindows=false;
setUpMediaPaths();
//$isWindows=true;
// Due to security issues with Apache modules, it is recommended to leave the
// following setting enabled.
$Config['ForceSingleExtension'] = true;
// Perform additional checks for image files.
// If set to true, validate image size (using getimagesize).
$Config['SecureImageUploads'] = true;
// What the user can do with this connector.
$Config['ConfigAllowedCommands'] = array('QuickUpload', 'FileUpload', 'GetFolders', 'GetFoldersAndFiles', 'CreateFolder', 'GetDwfckNs', 'UnlinkFile');
// Allowed Resource Types.
Пример #2
0
            DWFCK_cfg_dbg('nix_paths-' . getAccessNum() . '.txt');
        }
    }
} else {
    //if both UserFilesPath and UserFilesAbsolutePath are set
    if ($isWindows || $useWinStyle) {
        if ($dwfck_local) {
            $Config['UserFilesPath'] = str_replace('/media', '/pages', $Config['UserFilesPath']);
            if ($isWindows) {
                $Config['UserFilesAbsolutePath'] = str_replace('\\media', '\\pages', $Config['UserFilesAbsolutePath']);
            } else {
                $Config['UserFilesAbsolutePath'] = str_replace('/media', '/pages', $Config['UserFilesAbsolutePath']);
            }
        }
        if ($DWFCK_con_dbg) {
            DWFCK_cfg_dbg('win_paths.txt');
        }
    }
}
setUpMediaPaths();
// Due to security issues with Apache modules, it is recommended to leave the
// following setting enabled.
$Config['ForceSingleExtension'] = true;
// Perform additional checks for image files.
// If set to true, validate image size (using getimagesize).
$Config['SecureImageUploads'] = true;
// What the user can do with this connector.
$Config['ConfigAllowedCommands'] = array('QuickUpload', 'FileUpload', 'GetFolders', 'GetFoldersAndFiles', 'CreateFolder', 'GetDwfckNs', 'UnlinkFile');
// Allowed Resource Types.
$Config['ConfigAllowedTypes'] = array('File', 'Image', 'Flash', 'Media');
// For security, HTML is allowed in the first Kb of data for files having the