Changeset View
Changeset View
Standalone View
Standalone View
core/install.php
Show First 20 Lines • Show All 153 Lines • ▼ Show 20 Line(s) | |||||
{ | { | ||||
include_once(FULL_PATH . REL_PATH . '/kernel/kbase.php'); // required by kDBConnection class | include_once(FULL_PATH . REL_PATH . '/kernel/kbase.php'); // required by kDBConnection class | ||||
include_once(FULL_PATH . REL_PATH . '/kernel/utility/multibyte.php'); // emulating multi-byte php extension | include_once(FULL_PATH . REL_PATH . '/kernel/utility/multibyte.php'); // emulating multi-byte php extension | ||||
include_once(FULL_PATH . REL_PATH . '/kernel/utility/system_config.php'); | include_once(FULL_PATH . REL_PATH . '/kernel/utility/system_config.php'); | ||||
require_once(FULL_PATH . REL_PATH . '/install/install_toolkit.php'); // toolkit required for module installations to installator | require_once(FULL_PATH . REL_PATH . '/install/install_toolkit.php'); // toolkit required for module installations to installator | ||||
$this->toolkit = new kInstallToolkit(); | $this->toolkit = new kInstallToolkit(); | ||||
$this->toolkit->setInstallator($this); | $this->toolkit->setInstallator($this); | ||||
$this->StepDBFile = FULL_PATH.'/'.REL_PATH.'/install/steps_db.xml'; | $this->StepDBFile = FULL_PATH.'/'.REL_PATH.'/install/steps_db.xml'; | ||||
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 | |||||
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 | |||||
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 | |||||
$this->baseURL = 'http://' . $_SERVER['HTTP_HOST'] . $this->toolkit->systemConfig->get('WebsitePath', 'Misc') . '/core/install/'; | |||||
$https_mark = isset($_SERVER['HTTPS']) ? $_SERVER['HTTPS'] : false; | |||||
$protocol = ($https_mark == 'on') || ($https_mark == '1') ? 'https://' : 'http://'; | |||||
$this->baseURL = $protocol . $_SERVER['HTTP_HOST'] . $this->toolkit->systemConfig->get('WebsitePath', 'Misc') . '/core/install/'; | |||||
Line exceeds maximum limit of 140 characters; contains 141 characters Lint: Generic.Files.LineLength.MaxExceeded: Line exceeds maximum limit of 140 characters; contains 141 characters | |||||
set_error_handler( Array(&$this, 'ErrorHandler') ); | set_error_handler( Array(&$this, 'ErrorHandler') ); | ||||
Space after opening parenthesis of function call prohibited Lint: PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket: Space after opening parenthesis of function call prohibited | |||||
Expected 0 spaces before closing parenthesis; 1 found Lint: PSR2.Methods.FunctionCallSignature.SpaceBeforeCloseBracket: Expected 0 spaces before closing parenthesis; 1 found | |||||
PHP keywords must be lowercase; expected "array" but found "Array" Lint: Generic.PHP.LowerCaseKeyword.Found: PHP keywords must be lowercase; expected "array" but found "Array" | |||||
if ( $this->toolkit->systemConfigFound() ) { | if ( $this->toolkit->systemConfigFound() ) { | ||||
// if config.php found, then check his write permission too | // if config.php found, then check his write permission too | ||||
$this->writeableFolders[] = $this->toolkit->systemConfig->get('WriteablePath', 'Misc') . '/config.php'; | $this->writeableFolders[] = $this->toolkit->systemConfig->get('WriteablePath', 'Misc') . '/config.php'; | ||||
} | } | ||||
$this->currentStep = $this->GetVar('step'); | $this->currentStep = $this->GetVar('step'); | ||||
▲ Show 20 Lines • Show All 1616 Lines • Show Last 20 Lines |
Expected 1 space after concat operator; 0 found