%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 18.223.172.191 Web Server : Apache/2.4.52 (Ubuntu) System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 User : www-root ( 1010) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/bitrix.sitecorporate/install/ |
Upload File : |
<? 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_sitecorporate extends CModule { var $MODULE_ID = "bitrix.sitecorporate"; 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) { global $DB, $DBType, $APPLICATION; RegisterModule("bitrix.sitecorporate"); RegisterModuleDependences("main", "OnBeforeProlog", "bitrix.sitecorporate", "CSiteCorporate", "ShowPanel"); return true; } function UnInstallDB($arParams = Array()) { global $DB, $DBType, $APPLICATION; UnRegisterModuleDependences("main", "OnBeforeProlog", "bitrix.sitecorporate", "CSiteCorporate", "ShowPanel"); UnRegisterModule("bitrix.sitecorporate"); return true; } function InstallEvents() { return true; } function UnInstallEvents() { return true; } function InstallFiles() { CopyDirFiles($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/bitrix.sitecorporate/install/components", $_SERVER["DOCUMENT_ROOT"]."/bitrix/components", true, true); 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.sitecorporate/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.sitecorporate/install/unstep.php"); } } ?>