Changeset View
Changeset View
Standalone View
Standalone View
modules/in-commerce/install.php
Show All 32 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!'); | ||||
} | } | ||||
$category =& $toolkit->createModuleCategory('Products', 'Product Catalog', '#in-commerce/section_design#', 'in-commerce/img/menu_products.gif'); | $category =& $toolkit->createModuleCategory('Products', 'Product Catalog', '#in-commerce/section_design#', 'in-commerce/img/menu_products.gif'); | ||||
$toolkit->RunSQL('/' . $module_folder . '/install/install_schema.sql'); | $toolkit->RunSQL('/' . $module_folder . '/install/install_schema.sql'); | ||||
$toolkit->RunSQL('/' . $module_folder . '/install/install_data.sql', '{ProductCatId}', $category->GetID()); | $toolkit->RunSQL('/' . $module_folder . '/install/install_data.sql', '{ProductCatId}', $category->GetID()); | ||||
$toolkit->ImportLanguage('/' . $module_folder . '/install/english'); | $toolkit->ImportLanguage('/' . $module_folder . '/install/english'); | ||||
Show All 9 Lines |