Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/kernel/startup.php
Show All 24 Lines | |||||
try { | try { | ||||
$vars = kUtil::getSystemConfig()->getData(); | $vars = kUtil::getSystemConfig()->getData(); | ||||
} | } | ||||
catch ( kSystemConfigException $e ) { | catch ( kSystemConfigException $e ) { | ||||
echo 'In-Portal is probably not installed, or configuration file is missing.<br/>'; | echo 'In-Portal is probably not installed, or configuration file is missing.<br/>'; | ||||
echo 'Please use the installation script to fix the problem.<br/><br/>'; | echo 'Please use the installation script to fix the problem.<br/><br/>'; | ||||
$base_path = rtrim(str_replace('\\', '/', dirname($_SERVER['PHP_SELF'])), '/'); | $base_path = rtrim(str_replace('\\', '/', dirname($_SERVER['PHP_SELF'])), '/'); | ||||
echo '<a href="http://' . $_SERVER['HTTP_HOST'] . $base_path . '/core/install.php">Go to installation script</a><br/><br/>'; | echo '<a href="//' . $_SERVER['HTTP_HOST'] . $base_path . '/core/install.php">Go to installation script</a><br/><br/>'; | ||||
flush(); | flush(); | ||||
exit; | exit; | ||||
} | } | ||||
define('CHARSET', $vars['WebsiteCharset']); | define('CHARSET', $vars['WebsiteCharset']); | ||||
define('ADMIN_DIRECTORY', $vars['AdminDirectory']); | define('ADMIN_DIRECTORY', $vars['AdminDirectory']); | ||||
define('ADMIN_PRESETS_DIRECTORY', $vars['AdminPresetsDirectory']); | define('ADMIN_PRESETS_DIRECTORY', $vars['AdminPresetsDirectory']); | ||||
▲ Show 20 Lines • Show All 167 Lines • Show Last 20 Lines |