%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 13.58.187.240 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/components/bitrix/seo.ads.builder/ |
Upload File : |
<? use Bitrix\Main\Engine\Action; use Bitrix\Main\Engine\ActionFilter; use Bitrix\Main\HttpResponse; if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); class SeoAdsMarketingComponentAjaxController extends \Bitrix\Main\Engine\Controller { protected function processBeforeAction(Action $action) { // Avoid jSPostUnescape return true; } public function configureActions() { return [ 'getSliderContent' => [ '-prefilters' => [ ActionFilter\Csrf::class, ], ], ]; } public function getPostListContentAction(array $componentParams = []) { $content = $GLOBALS['APPLICATION']->includeComponent( 'bitrix:ui.sidepanel.wrapper', '', [ 'PLAIN_VIEW' => 'N', 'RETURN_CONTENT' => true, 'POPUP_COMPONENT_NAME' => 'bitrix:seo.ads.builder', 'POPUP_COMPONENT_TEMPLATE_NAME' => '', 'POPUP_COMPONENT_PARAMS' => [ 'TEMPLATE' => 'postlist', 'ACCOUNT_ID' => $componentParams['ACCOUNT_ID'], 'CLIENT_ID' => $componentParams['CLIENT_ID'], 'TYPE' => $componentParams['TYPE'], 'HAS_ACCESS' => true ], 'IFRAME_MODE' => true ] ); $response = new HttpResponse(); $response->setContent($content); return $response; } public function getAudienceContentAction(array $componentParams = []) { $content = $GLOBALS['APPLICATION']->includeComponent( 'bitrix:ui.sidepanel.wrapper', '', [ 'PLAIN_VIEW' => 'N', 'RETURN_CONTENT' => true, 'POPUP_COMPONENT_NAME' => 'bitrix:seo.ads.builder', 'POPUP_COMPONENT_TEMPLATE_NAME' => '', 'POPUP_COMPONENT_PARAMS' => [ 'TEMPLATE' => 'audience', 'ACCOUNT_ID' => $componentParams['ACCOUNT_ID'], 'CLIENT_ID' => $componentParams['CLIENT_ID'], 'TYPE' => $componentParams['TYPE'], 'HAS_ACCESS' => true ], 'IFRAME_MODE' => true ] ); $response = new HttpResponse(); $response->setContent($content); return $response; } public function getCrmAudienceContentAction(array $componentParams = []) { $content = $GLOBALS['APPLICATION']->includeComponent( 'bitrix:ui.sidepanel.wrapper', '', [ 'PLAIN_VIEW' => 'N', 'RETURN_CONTENT' => true, 'POPUP_COMPONENT_NAME' => 'bitrix:seo.ads.builder', 'POPUP_COMPONENT_TEMPLATE_NAME' => '', 'POPUP_COMPONENT_PARAMS' => [ 'TEMPLATE' => 'crmaudience', 'HAS_ACCESS' => true ], 'IFRAME_MODE' => true ] ); $response = new HttpResponse(); $response->setContent($content); return $response; } public function getPageConfigurationContentAction($targetUrl='', array $componentParams = []) { $content = $GLOBALS['APPLICATION']->includeComponent( 'bitrix:ui.sidepanel.wrapper', '', [ 'PLAIN_VIEW' => 'N', 'RETURN_CONTENT' => true, 'POPUP_COMPONENT_NAME' => 'bitrix:seo.ads.builder', 'POPUP_COMPONENT_TEMPLATE_NAME' => '', 'POPUP_COMPONENT_PARAMS' => [ 'TEMPLATE' => 'pageconfiguration', 'ACCOUNT_ID' => $componentParams['ACCOUNT_ID'], 'CLIENT_ID' => $componentParams['CLIENT_ID'], 'TYPE' => $componentParams['TYPE'], 'TARGET_URL' => $targetUrl, 'HAS_ACCESS' => true ], 'IFRAME_MODE' => true ] ); $response = new HttpResponse(); $response->setContent($content); return $response; } }