Current Path : /var/www/axolotl/data/www/msk.axolotls.ru/bitrix/modules/redsign.devcom/install/ |
Current File : /var/www/axolotl/data/www/msk.axolotls.ru/bitrix/modules/redsign.devcom/install/index.php |
<? global $MESS; IncludeModuleLangFile(__FILE__); Class redsign_devcom extends CModule { var $MODULE_ID = "redsign.devcom"; var $MODULE_VERSION; var $MODULE_VERSION_DATE; var $MODULE_NAME; var $MODULE_DESCRIPTION; var $MODULE_CSS; var $MODULE_GROUP_RIGHTS = "Y"; function redsign_devcom() { $arModuleVersion = array(); $path = str_replace("\\", "/", __FILE__); $path = substr($path, 0, strlen($path) - strlen("/index.php")); include($path."/version.php"); if (is_array($arModuleVersion) && array_key_exists("VERSION", $arModuleVersion)) { $this->MODULE_VERSION = $arModuleVersion["VERSION"]; $this->MODULE_VERSION_DATE = $arModuleVersion["VERSION_DATE"]; } else { $this->MODULE_VERSION = "1.0.0"; $this->MODULE_VERSION_DATE = "2013.01.01"; } $this->MODULE_NAME = GetMessage("INSTALL_NAME"); $this->MODULE_DESCRIPTION = GetMessage("INSTALL_DESCRIPTION"); $this->PARTNER_NAME = GetMessage("INSTALL_COPMPANY_NAME"); $this->PARTNER_URI = "http://redsign.ru/"; } // Install functions function InstallDB() { global $DB, $DBType, $APPLICATION; RegisterModule("redsign.devcom"); return TRUE; } function InstallEvents() { return TRUE; } function InstallOptions() { return TRUE; } function InstallFiles() { CopyDirFiles($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/redsign.devcom/install/copyfiles/components", $_SERVER["DOCUMENT_ROOT"]."/bitrix/components", true, true); return TRUE; } function InstallPublic() { return TRUE; } // UnInstal functions function UnInstallDB() { global $DB, $DBType, $APPLICATION; UnRegisterModule("redsign.devcom"); return TRUE; } function UnInstallEvents() { return TRUE; } function UnInstallOptions() { return TRUE; } function UnInstallFiles() { return TRUE; } function UnInstallPublic() { return TRUE; } function DoInstall() { global $APPLICATION, $step; $keyGoodDB = $this->InstallDB(); $keyGoodEvents = $this->InstallEvents(); $keyGoodOptions = $this->InstallOptions(); $keyGoodFiles = $this->InstallFiles(); $keyGoodPublic = $this->InstallPublic(); $APPLICATION->IncludeAdminFile(GetMessage("SPER_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/redsign.devcom/install/install.php"); } function DoUninstall() { global $APPLICATION, $step; $keyGoodFiles = $this->UnInstallFiles(); $keyGoodEvents = $this->UnInstallEvents(); $keyGoodOptions = $this->UnInstallOptions(); $keyGoodDB = $this->UnInstallDB(); $keyGoodPublic = $this->UnInstallPublic(); $APPLICATION->IncludeAdminFile(GetMessage("SPER_UNINSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/redsign.devcom/install/uninstall.php"); } } ?>