uawdijnntqw1x1x1
IP : 18.223.97.137
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
/
.
/
b24.axolotl.ru
/
public_html
/
bitrix
/
modules
/
seo
/
lib
/
advtabengine.php
/
/
<?php namespace Bitrix\Seo; use Bitrix\Main\Application; use Bitrix\Main\Config\Option; use Bitrix\Main\Context; use Bitrix\Main\Loader; use Bitrix\Main\Localization\Loc; use Bitrix\Main\IO; use Bitrix\Seo\Engine; Loc::loadMessages(__FILE__); /** * Class AdvTabEngine * * Events handler for integration with IBlock element edit form * * @package Bitrix\Seo **/ class AdvTabEngine { public static function eventHandler() { if( Option::get('main', 'vendor', '') == '1c_bitrix' && Loc::getDefaultLang(LANGUAGE_ID) == 'ru' && IsModuleInstalled('socialservices') ) { return array( "TABSET" => "seo_adv", "Check" => array(__CLASS__, 'checkFields'), "Action" => array(__CLASS__, 'saveData'), "GetTabs" => array(__CLASS__, 'getTabs'), "ShowTab" => array(__CLASS__, 'showTab'), ); } } public static function getTabs($iblockElementInfo) { $showTab = false; $request = Context::getCurrent()->getRequest(); if($iblockElementInfo["ID"] > 0 && (!isset($request['action']) || $request['action'] != 'copy')) { $showTab = true; if(Loader::includeModule('catalog')) { /* $dbRes = CatalogIblockTable::getList(array( 'filter' => array( '=IBLOCK_ID' => $iblockElementInfo["IBLOCK"]["ID"], '!PRODUCT_IBLOCK_ID' => 0 ), 'select' => array('IBLOCK_ID'), )); if($dbRes->fetch()) { $showTab = false; } */ if(\CCatalogSku::getInfoByOfferIBlock($iblockElementInfo["IBLOCK"]["ID"]) !== false) { $showTab = false; } } } return $showTab ? array( array( "DIV" => "seo_adv", "SORT" => 4, "TAB" => Loc::getMessage("SEO_ADV_TAB"), "TITLE" => Loc::getMessage("SEO_ADV_TAB_TITLE"), ), ) : null; } public static function showTab($div,$iblockElementInfo) { $engineList = array(); if(Option::get('main', 'vendor', '') == '1c_bitrix') { $engineList[] = array( "DIV" => "yandex_direct", "TAB" => Loc::getMessage("SEO_ADV_YANDEX_DIRECT"), "TITLE" => Loc::getMessage("SEO_ADV_YANDEX_DIRECT_TITLE"), "HANDLER" => IO\Path::combine( Application::getDocumentRoot(), BX_ROOT, "/modules/seo/admin/tab/seo_search_yandex_direct.php" ), ); } if(count($engineList) > 0) { $engineTabControl = new \CAdminViewTabControl("engineTabControl", $engineList); ?> <tr> <td colspan="2"> <?php $engineTabControl->begin(); foreach($engineList as $engineTab) { $engineTabControl->beginNextTab(); $file = new IO\File($engineTab["HANDLER"]); if($file->isExists()) { require($file->getPath()); } } $engineTabControl->end(); ?> </td> </tr> <?php } } public static function checkFields() { return true; } public static function saveData() { return true; } }
/var/www/axolotl/data/www/./b24.axolotl.ru/public_html/bitrix/modules/seo/lib/advtabengine.php