%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 18.117.183.43 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/esol.allimportexport/install/ |
Upload File : |
<?php global $MESS; $PathInstall = str_replace('\\', '/', __FILE__); $PathInstall = substr($PathInstall, 0, strlen($PathInstall)-strlen('/index.php')); IncludeModuleLangFile($PathInstall.'/install.php'); include($PathInstall.'/version.php'); if (class_exists('esol_allimportexport')) return; class esol_allimportexport extends CModule { var $MODULE_ID = 'esol.allimportexport'; public $MODULE_VERSION; public $MODULE_VERSION_DATE; public $MODULE_NAME; public $MODULE_DESCRIPTION; public $PARTNER_NAME; public $PARTNER_URI; public $MODULE_GROUP_RIGHTS = 'N'; public function __construct() { $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']; } $this->PARTNER_NAME = GetMessage("ESOL_PARTNER_NAME"); $this->PARTNER_URI = 'https://esolutions.su/'; $this->MODULE_NAME = GetMessage('ESOL_ALLIMPORTEXPORT_MODULE_NAME'); $this->MODULE_DESCRIPTION = GetMessage('ESOL_ALLIMPORTEXPORT_MODULE_DESCRIPTION'); } public function DoInstall() { CopyDirFiles($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/'.$this->MODULE_ID.'/install/js/', $_SERVER['DOCUMENT_ROOT'].'/bitrix/js/', true, true); CopyDirFiles($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/'.$this->MODULE_ID.'/install/panel/', $_SERVER['DOCUMENT_ROOT'].'/bitrix/panel/', true, true); CopyDirFiles($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/'.$this->MODULE_ID.'/install/admin/', $_SERVER['DOCUMENT_ROOT'].'/bitrix/admin/', true, true); CopyDirFiles($_SERVER["DOCUMENT_ROOT"].'/bitrix/modules/'.$this->MODULE_ID.'/install/themes/', $_SERVER["DOCUMENT_ROOT"].'/bitrix/themes/', true, true); CopyDirFiles($_SERVER["DOCUMENT_ROOT"].'/bitrix/modules/'.$this->MODULE_ID.'/install/php_interface/', $_SERVER["DOCUMENT_ROOT"].'/bitrix/php_interface/', true, true); //CopyDirFiles($_SERVER["DOCUMENT_ROOT"].'/bitrix/modules/'.$this->MODULE_ID.'/install/gadgets/', $_SERVER["DOCUMENT_ROOT"].'/bitrix/gadgets/', true, true); $this->InstallDB(); } function InstallDB() { RegisterModule($this->MODULE_ID); COption::SetOptionString($this->MODULE_ID, "GROUP_DEFAULT_RIGHT", "W"); return true; } public function DoUninstall() { DeleteDirFilesEx('/bitrix/js/'.$this->MODULE_ID.'/'); DeleteDirFilesEx('/bitrix/panel/'.$this->MODULE_ID.'/'); DeleteDirFilesEx('/bitrix/php_interface/include/'.$this->MODULE_ID.'/'); //DeleteDirFilesEx('/bitrix/gadgets/'.$this->MODULE_ID.'/'); //DeleteDirFilesEx('/bitrix/themes/.default/icons/'.$this->MODULE_ID.'/'); DeleteDirFiles($_SERVER["DOCUMENT_ROOT"].'/bitrix/modules/'.$this->MODULE_ID.'/install/admin/', $_SERVER["DOCUMENT_ROOT"].'/bitrix/admin/'); DeleteDirFiles($_SERVER["DOCUMENT_ROOT"].'/bitrix/modules/'.$this->MODULE_ID.'/install/themes/.default/', $_SERVER["DOCUMENT_ROOT"].'/bitrix/themes/.default/'); $this->UnInstallDB(); } function UnInstallDB() { UnRegisterModule($this->MODULE_ID); return true; } } ?>