Revision 1870
Added by Dietmar almost 12 years ago
initialize.php | ||
---|---|---|
188 | 188 |
? false |
189 | 189 |
: $aSetting['value']) |
190 | 190 |
); |
191 |
$aSetting['name'] = strtoupper($aSetting['name']); |
|
192 |
if($aSetting['name'] == 'STRING_FILE_MODE') { |
|
193 |
$iTmp = ((intval(octdec($aSetting['value'])) & ~0111)|0600); |
|
194 |
define('OCTAL_FILE_MODE', $iTmp); |
|
195 |
define('STRING_FILE_MODE', sprintf('0%03o', $iTmp)); |
|
196 |
}elseif($aSetting['name'] == 'STRING_DIR_MODE') { |
|
197 |
$iTmp = (intval(octdec($aSetting['value'])) |0711); |
|
198 |
define('OCTAL_DIR_MODE', $iTmp); |
|
199 |
define('STRING_DIR_MODE', sprintf('0%03o', $iTmp)); |
|
200 |
}else { |
|
191 | 201 |
// make global const from setting |
192 |
@define(strtoupper($aSetting['name']), $aSetting['value']); |
|
202 |
@define($aSetting['name'], $aSetting['value']); |
|
203 |
} |
|
193 | 204 |
} |
194 | 205 |
}else { throw new AppException($database->get_error()); } |
195 | 206 |
// get/set users timezone --- |
... | ... | |
203 | 214 |
// extended wb editor settings |
204 | 215 |
define('EDIT_ONE_SECTION', false); |
205 | 216 |
define('EDITOR_WIDTH', 0); |
206 |
// define numeric, octal values for chmod operations --- |
|
207 |
$string_file_mode = STRING_FILE_MODE; // STRING_FILE_MODE is set deprecated |
|
208 |
define('OCTAL_FILE_MODE',(int) octdec($string_file_mode)); |
|
209 |
$string_dir_mode = STRING_DIR_MODE; // STRING_DIR_MODE is set deprecated |
|
210 |
define('OCTAL_DIR_MODE',(int) octdec($string_dir_mode)); |
|
211 | 217 |
// define form security class and preload it --- |
212 | 218 |
$sSecMod = (defined('SECURE_FORM_MODULE') && SECURE_FORM_MODULE != '') ? '.'.SECURE_FORM_MODULE : ''; |
213 | 219 |
$sSecMod = WB_PATH.'/framework/SecureForm'.$sSecMod.'.php'; |
Also available in: Unified diff
! upgrade-script sanitize pages_directory before creating access files