Changeset View
Changeset View
Standalone View
Standalone View
core/kernel/utility/system_config.php
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Line(s) | |||||
/** | /** | ||||
* Returns default config values. | * Returns default config values. | ||||
* | * | ||||
* @return array | * @return array | ||||
*/ | */ | ||||
protected function getDefaults() | protected function getDefaults() | ||||
{ | { | ||||
$ret = array( | $ret = array( | ||||
'Misc' => array( | |||||
'AdminDirectory' => '/admin', | 'AdminDirectory' => '/admin', | ||||
'AdminPresetsDirectory' => '/admin', | 'AdminPresetsDirectory' => '/admin', | ||||
'ApplicationClass' => 'kApplication', | 'ApplicationClass' => 'kApplication', | ||||
'ApplicationPath' => '/core/kernel/application.php', | 'ApplicationPath' => '/core/kernel/application.php', | ||||
'CacheHandler' => 'Fake', | 'CacheHandler' => 'Fake', | ||||
'CmsMenuRebuildTime' => 10, | 'CmsMenuRebuildTime' => 10, | ||||
'DomainsParsedRebuildTime' => 2, | 'DomainsParsedRebuildTime' => 2, | ||||
'EditorPath' => '/core/ckeditor/', | 'EditorPath' => '/core/ckeditor/', | ||||
'EnableSystemLog' => '0', | 'EnableSystemLog' => '0', | ||||
'MemcacheServers' => 'localhost:11211', | 'MemcacheServers' => 'localhost:11211', | ||||
'CompressionEngine' => '', | 'CompressionEngine' => '', | ||||
'RestrictedPath' => DIRECTORY_SEPARATOR . 'system' . DIRECTORY_SEPARATOR . '.restricted', | 'RestrictedPath' => DIRECTORY_SEPARATOR . 'system' . DIRECTORY_SEPARATOR . '.restricted', | ||||
'SectionsParsedRebuildTime' => 5, | 'SectionsParsedRebuildTime' => 5, | ||||
'StructureTreeRebuildTime' => 10, | 'StructureTreeRebuildTime' => 10, | ||||
'SystemLogMaxLevel' => 5, | 'SystemLogMaxLevel' => 5, | ||||
'TemplateMappingRebuildTime' => 5, | 'TemplateMappingRebuildTime' => 5, | ||||
'TrustProxy' => '0', | 'TrustProxy' => '0', | ||||
'UnitCacheRebuildTime' => 10, | 'UnitCacheRebuildTime' => 10, | ||||
'WebsiteCharset' => 'utf-8', | 'WebsiteCharset' => 'utf-8', | ||||
'WebsitePath' => rtrim(preg_replace('/'.preg_quote(rtrim(defined('REL_PATH') ? REL_PATH : '', '/'), '/').'$/', '', str_replace('\\', '/', dirname($_SERVER['PHP_SELF']))), '/'), | 'WebsitePath' => rtrim(preg_replace('/'.preg_quote(rtrim(defined('REL_PATH') ? REL_PATH : '', '/'), '/').'$/', '', str_replace('\\', '/', dirname($_SERVER['PHP_SELF']))), '/'), | ||||
Lint: CodingStandard.Strings.ConcatenationSpacing.NoSpaceBefore: Expected 1 space before concat operator; 0 found | |||||
Expected 1 space after concat operator; 0 found Lint: CodingStandard.Strings.ConcatenationSpacing.NoSpaceAfter: Expected 1 space after concat operator; 0 found | |||||
Expected 1 space after concat operator; 0 found Lint: CodingStandard.Strings.ConcatenationSpacing.NoSpaceAfter: Expected 1 space after concat operator; 0 found | |||||
Expected 1 space before concat operator; 0 found Lint: CodingStandard.Strings.ConcatenationSpacing.NoSpaceBefore: Expected 1 space before concat operator; 0 found | |||||
'WriteablePath' => DIRECTORY_SEPARATOR . 'system', | 'WriteablePath' => DIRECTORY_SEPARATOR . 'system', | ||||
'SecurityHmacKey' => '', | 'SecurityHmacKey' => '', | ||||
'SecurityEncryptionKey' => '', | 'SecurityEncryptionKey' => '', | ||||
), | |||||
'Database' => array( | |||||
'DBErrorBackoffMaxRetryAttempts' => 3, | |||||
'DBErrorBackoffLogicBaseTime' => 100, | |||||
'DBEnableLockRetryDebugging' => 0, | |||||
), | |||||
); | ); | ||||
return $this->parseSections ? array('Misc' => $ret) : $ret; | return $this->parseSections ? $ret : call_user_func_array('array_merge', $ret); | ||||
} | } | ||||
/** | /** | ||||
* Parses "/system/config.php" file and writes the result to the data variable | * Parses "/system/config.php" file and writes the result to the data variable | ||||
* | * | ||||
* @return array | * @return array | ||||
* @throws kSystemConfigException When something goes wrong. | * @throws kSystemConfigException When something goes wrong. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 190 Lines • Show Last 20 Lines |
Expected 1 space before concat operator; 0 found