File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/modules/bitrix.sitecommunity/install/index.php
Back
<? global $MESS; $strPath2Lang = str_replace("\\", "/", __FILE__); $strPath2Lang = mb_substr($strPath2Lang, 0, mb_strlen($strPath2Lang) - mb_strlen("/install/index.php")); include(GetLangFileName($strPath2Lang."/lang/", "/install/index.php")); Class bitrix_sitecommunity extends CModule { var $MODULE_ID = "bitrix.sitecommunity"; var $MODULE_VERSION; var $MODULE_VERSION_DATE; var $MODULE_NAME; var $MODULE_DESCRIPTION; var $MODULE_CSS; var $MODULE_GROUP_RIGHTS = "Y"; public function __construct() { $arModuleVersion = array(); include(__DIR__.'/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) { RegisterModule("bitrix.sitecommunity"); RegisterModuleDependences("main", "OnBeforeProlog", "bitrix.sitecommunity", "CSiteCommunity", "ShowPanel"); return true; } function UnInstallDB($arParams = Array()) { UnRegisterModuleDependences("main", "OnBeforeProlog", "bitrix.sitecommunity", "CSiteCommunity", "ShowPanel"); UnRegisterModule("bitrix.sitecommunity"); return true; } function InstallEvents() { return true; } function UnInstallEvents() { return true; } function InstallFiles() { return true; } function InstallPublic() { } function UnInstallFiles() { return true; } function DoInstall() { global $APPLICATION, $step; $this->InstallFiles(); $this->InstallDB(false); $this->InstallEvents(); $this->InstallPublic(); $APPLICATION->IncludeAdminFile(GetMessage("SCOM_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/bitrix.sitecommunity/install/step.php"); } function DoUninstall() { global $APPLICATION, $step; $this->UnInstallDB(); $this->UnInstallFiles(); $this->UnInstallEvents(); $APPLICATION->IncludeAdminFile(GetMessage("SCOM_UNINSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/bitrix.sitecommunity/install/unstep.php"); } } ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.28 |
proxy
|
phpinfo
|
Settings