%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 3.145.37.86
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/catalog.socnets.buttons/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/components/bitrix/catalog.socnets.buttons/component.php
<?
if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
/** @var CBitrixComponent $this */
/** @var array $arParams */
/** @var array $arResult */
/** @var string $componentPath */
/** @var string $componentName */
/** @var string $componentTemplate */
/** @global CDatabase $DB */
/** @global CUser $USER */
/** @global CMain $APPLICATION */


$sbParams = array(
	"FB_USE",
	"TW_USE",
	"VK_USE"
);

foreach ($sbParams as $param)
{
	if(isset($arParams[$param]) && $arParams[$param] == "Y")
		$arResult[$param] = true;
	else
		$arResult[$param] = false;
}
$arResult["GP_USE"] = false;

if(isset($arParams["URL_TO_LIKE"]))
	$arResult["URL_TO_LIKE"] = $arParams["URL_TO_LIKE"];
else
{
	$protocol = (CMain::IsHTTPS()) ? "https://" : "http://";
	$arResult["URL_TO_LIKE"] = $protocol.$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
}

$arResult["URL_TO_LIKE_ENCODED"] = urlencode($arResult["URL_TO_LIKE"]);

if(isset($arParams["TITLE"]))
	$arResult["TITLE"] = $arParams["TITLE"];
else
	$arResult["TITLE"] = "";

if(isset($arParams["DESCRIPTION"]))
	$arResult["DESCRIPTION"] = $arParams["DESCRIPTION"];
else
	$arResult["DESCRIPTION"] = "";

if(isset($arParams["IMAGE"]))
	$arResult["IMAGE"] = $arParams["IMAGE"];
else
	$arResult["IMAGE"] = "";

/*
 *	Twitter spec params:
 */

if(isset($arParams["TW_VIA"]))
	$arResult["TW_VIA"] = $arParams["TW_VIA"];
else
	$arResult["TW_VIA"] = "";

if(isset($arParams["TW_HASHTAGS"]))
	$arResult["TW_HASHTAGS"] = $arParams["TW_HASHTAGS"];
else
	$arResult["TW_HASHTAGS"] = "";

if(isset($arParams["TW_RELATED"]))
	$arResult["TW_RELATED"] = $arParams["TW_RELATED"];
else
	$arResult["TW_RELATED"] = "";

$this->IncludeComponentTemplate();

Youez - 2016 - github.com/yon3zu
LinuXploit