Changeset View
Changeset View
Standalone View
Standalone View
core/install.php
Show First 20 Lines • Show All 282 Lines • ▼ Show 20 Line(s) | |||||
$this->currentStep = 'install_setup'; // manually set 2nd step, because 'check_paths' step doesn't contain login form | $this->currentStep = 'install_setup'; // manually set 2nd step, because 'check_paths' step doesn't contain login form | ||||
// $this->SetFirstStep(); | // $this->SetFirstStep(); | ||||
} | } | ||||
} | } | ||||
switch ($this->currentStep) { | switch ($this->currentStep) { | ||||
case 'sys_requirements': | case 'sys_requirements': | ||||
$required_checks = Array ( | $required_checks = Array ( | ||||
'php_version', 'curl', 'simplexml', 'freetype', 'gd_version', | 'php_version', 'composer', 'curl', 'simplexml', 'freetype', 'gd_version', | ||||
'jpeg', 'mysql', 'json', 'date.timezone', 'output_buffering', | 'jpeg', 'mysql', 'json', 'date.timezone', 'output_buffering', | ||||
); | ); | ||||
$check_results = $this->toolkit->CallPrerequisitesMethod('core/', 'CheckSystemRequirements'); | $check_results = $this->toolkit->CallPrerequisitesMethod('core/', 'CheckSystemRequirements'); | ||||
$required_checks = array_diff($required_checks, array_keys( array_filter($check_results) )); | $required_checks = array_diff($required_checks, array_keys( array_filter($check_results) )); | ||||
if ( $required_checks ) { | if ( $required_checks ) { | ||||
// php-based checks failed - show error | // php-based checks failed - show error | ||||
▲ Show 20 Lines • Show All 1483 Lines • Show Last 20 Lines |