uawdijnntqw1x1x1
IP : 3.143.218.86
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
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,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
yar.axolotls.ru
/
bitrix
/
components
/
bitrix
/
landing.domain_rename
/
class.php
/
/
<?php if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) { die(); } use \Bitrix\Landing\Manager; \CBitrixComponent::includeComponentClass('bitrix:landing.site_edit'); class LandingDomainRenameComponent extends LandingSiteEditComponent { /** * Returns postfix for domain. * @return string */ protected function getPostFix() { $zone = Manager::getZone(); $postfix = '.bitrix24.site'; if ($this->arParams['TYPE'] == 'STORE') { $postfix = ($zone == 'by') ? '.bitrix24shop.by' : '.bitrix24.shop'; } else if ($zone == 'by') { $postfix = '.bitrix24site.by'; } else if ($zone == 'ua') { $postfix = '.bitrix24site.ua'; } return $postfix; } /** * Base executable method. * @return void */ public function executeComponent() { $init = $this->init(); if ($init) { // params $this->checkParam('TYPE', ''); $this->checkParam('FIELD_NAME', 'DOMAIN_ID'); $this->checkParam('FIELD_ID', 'domain_id'); $this->checkParam('DOMAIN_NAME', ''); $this->checkParam('DOMAIN_ID', 0); $this->arResult['POSTFIX'] = $this->getPostFix(); $puny = new \CBXPunycode; // template data $this->arResult['IP_FOR_DNS'] = $this->getIpForDNS(); $this->arResult['DOMAINS'] = $this->getDomains(); $this->arResult['CUSTOM_DOMAIN_AVAILABLE'] = Manager::checkFeature( Manager::FEATURE_CUSTOM_DOMAIN ); // domain name if ($this->arParams['DOMAIN_NAME']) { $this->arResult['DOMAIN_NAME'] = $this->arParams['DOMAIN_NAME']; } else { $this->arResult['DOMAIN_NAME'] = isset($this->arResult['DOMAINS'][$this->arParams['DOMAIN_ID']]['DOMAIN']) ? $this->arResult['DOMAINS'][$this->arParams['DOMAIN_ID']]['DOMAIN'] : ''; } $this->arResult['DOMAIN_NAME_ORIGINAL'] = $this->arResult['DOMAIN_NAME']; $this->arResult['DOMAIN_NAME'] = $puny->decode($this->arResult['DOMAIN_NAME']); } parent::executeComponent(); } }
/var/www/axolotl/data/www/yar.axolotls.ru/bitrix/components/bitrix/landing.domain_rename/class.php