Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/install.php
Show First 20 Lines • Show All 154 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'; | ||||
$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/'; | |||||
set_error_handler( Array(&$this, 'ErrorHandler') ); | set_error_handler( Array(&$this, 'ErrorHandler') ); | ||||
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 1619 Lines • Show Last 20 Lines |