Changeset View
Changeset View
Standalone View
Standalone View
modules/custom/install.php
Show All 21 Lines | |||||
// install, using installation wizard | // install, using installation wizard | ||||
$toolkit =& $this->toolkit; | $toolkit =& $this->toolkit; | ||||
/* @var $toolkit kInstallToolkit */ | /* @var $toolkit kInstallToolkit */ | ||||
} | } | ||||
$application =& kApplication::Instance(); | $application =& kApplication::Instance(); | ||||
$application->Init(); | $application->Init(); | ||||
if ( $application->RecallVar('user_id') != USER_ROOT ) { | if ( !$application->permissionCheckingDisabled() ) { | ||||
die('restricted access!'); | die('restricted access!'); | ||||
} | } | ||||
$toolkit->RunSQL('/' . $module_folder . '/install/install_schema.sql'); | $toolkit->RunSQL('/' . $module_folder . '/install/install_schema.sql'); | ||||
$toolkit->RunSQL('/' . $module_folder . '/install/install_data.sql'); | $toolkit->RunSQL('/' . $module_folder . '/install/install_data.sql'); | ||||
$toolkit->ImportLanguage('/' . $module_folder . '/install/english', isset($constants_file)); | $toolkit->ImportLanguage('/' . $module_folder . '/install/english', isset($constants_file)); | ||||
$toolkit->finalizeModuleInstall($module_folder, false); | $toolkit->finalizeModuleInstall($module_folder, false); |