Файловый менеджер - Редактировать - /var/www/axolotl/data/www/axolotls.ru/www/bitrix/modules/bitrix.eshop/install/index.php
Назад
<? global $MESS; $strPath2Lang = str_replace("\\", "/", __FILE__); $strPath2Lang = substr($strPath2Lang, 0, strlen($strPath2Lang)-strlen("/install/index.php")); include(GetLangFileName($strPath2Lang."/lang/", "/install/index.php")); Class bitrix_eshop extends CModule { var $MODULE_ID = "bitrix.eshop"; var $MODULE_VERSION; var $MODULE_VERSION_DATE; var $MODULE_NAME; var $MODULE_DESCRIPTION; var $MODULE_CSS; var $MODULE_GROUP_RIGHTS = "Y"; function bitrix_eshop() { $arModuleVersion = array(); $path = str_replace("\\", "/", __FILE__); $path = substr($path, 0, strlen($path) - strlen("/index.php")); include($path."/version.php"); $this->MODULE_VERSION = $arModuleVersion["VERSION"]; $this->MODULE_VERSION_DATE = $arModuleVersion["VERSION_DATE"]; $this->MODULE_NAME = GetMessage("SCOM_INSTALL_NAME"); $this->MODULE_DESCRIPTION = GetMessage("SCOM_INSTALL_DESCRIPTION"); $this->PARTNER_NAME = GetMessage("SPER_PARTNER"); $this->PARTNER_URI = GetMessage("PARTNER_URI"); } function InstallDB($install_wizard = true) { global $DB, $DBType, $APPLICATION; RegisterModule("bitrix.eshop"); RegisterModuleDependences("main", "OnBeforeProlog", "bitrix.eshop", "CEShop", "ShowPanel"); return true; } function UnInstallDB($arParams = Array()) { global $DB, $DBType, $APPLICATION; UnRegisterModule("bitrix.eshop"); UnRegisterModuleDependences("main", "OnBeforeProlog", "bitrix.eshop", "CEShop", "ShowPanel"); return true; } function InstallEvents() { return true; } function UnInstallEvents() { return true; } function InstallFiles() { CopyDirFiles($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/bitrix.eshop/install/components", $_SERVER["DOCUMENT_ROOT"]."/bitrix/components", true, true); CopyDirFiles($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/bitrix.eshop/install/wizards/bitrix/eshop.mobile", $_SERVER["DOCUMENT_ROOT"]."/bitrix/wizards/bitrix/eshop.mobile", true, true); CopyDirFiles($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/bitrix.eshop/install/images", $_SERVER["DOCUMENT_ROOT"]."/bitrix/images/bitrix.eshop", true, true); return true; } function InstallPublic() { } function UnInstallFiles() { DeleteDirFilesEx("/bitrix/images/bitrix.eshop/");//images return true; } function DoInstall() { global $APPLICATION, $step; $this->InstallFiles(); $this->InstallDB(false); $this->InstallEvents(); $this->InstallPublic(); return true; } function DoUninstall() { global $APPLICATION, $step; $this->UnInstallDB(); $this->UnInstallFiles(); $this->UnInstallEvents(); return true; } } ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.8 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка