-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfile.php
157 lines (135 loc) · 3.78 KB
/
file.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<?php
/**
* Fuel is a fast, lightweight, community driven PHP 5.4+ framework.
*
* @package Fuel
* @version 1.9-dev
* @author Fuel Development Team
* @license MIT License
* @copyright 2010 - 2019 Fuel Development Team
* @link https://fuelphp.com
*/
/**
* -----------------------------------------------------------------------------
* [!] NOTICE
* -----------------------------------------------------------------------------
*
* If you need to make modifications to the default configuration,
* copy this file to your 'app/config' folder, and make them in there.
*
* This will allow you to upgrade FuelPHP without losing your custom config.
*
*/
return array(
/**
* -------------------------------------------------------------------------
* Base Configurations
* -------------------------------------------------------------------------
*
* The default 'File_Area' configurations.
*
*/
'base_config' => array(
/**
* ---------------------------------------------------------------------
* Basedir
* ---------------------------------------------------------------------
*
* Path to 'basedir' restriction. Set to null for no restriction.
*
*/
'basedir' => null,
/**
* ---------------------------------------------------------------------
* Extensions
* ---------------------------------------------------------------------
*
* Allowed extensions. Set to null for allow all extensions.
*
*/
'extensions' => null,
/**
* ---------------------------------------------------------------------
* URL
* ---------------------------------------------------------------------
*
* Base URL for files. Set to null to make it unavailable.
*
*/
'url' => null,
/**
* ---------------------------------------------------------------------
* File Lock
* ---------------------------------------------------------------------
*
* Whether or not to use file locks when doing file operations.
*
*/
'use_locks' => null,
/**
* ---------------------------------------------------------------------
* File Handler
* ---------------------------------------------------------------------
*
* File driver per file extension.
*
*/
'file_handlers' => array(),
),
/**
* -------------------------------------------------------------------------
* Areas
* -------------------------------------------------------------------------
*
* Pre-configure some areas.
*
* Use these examples to enable:
*
* 'area_name' => array(
* 'basedir' => null,
* 'extensions' => null,
* 'url' => null,
* 'use_locks' => null,
* 'file_handlers' => array(),
* )
*
*/
'areas' => array(),
/**
* -------------------------------------------------------------------------
* Magic File
* -------------------------------------------------------------------------
*
* The 'fileinfo()' magic filename.
*
*/
'magic_file' => null,
/**
* -------------------------------------------------------------------------
* Permissions
* -------------------------------------------------------------------------
*
* Default file and directory permissions.
*
*/
'chmod' => array(
/**
* ---------------------------------------------------------------------
* Files
* ---------------------------------------------------------------------
*
* Permissions for newly created files.
*
*/
'files' => 0666,
/**
* ---------------------------------------------------------------------
* Folders
* ---------------------------------------------------------------------
*
* Permissions for newly created folders.
*
*/
'folders' => 0777,
),
);