403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/ilovecveti.ru/bitrix/components/bitrix/sale.affiliate.plans/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/ilovecveti.ru/bitrix/components/bitrix/sale.affiliate.plans/component.php
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?><?

if(!CBXFeatures::IsFeatureEnabled('SaleAffiliate'))
	return;

if (CModule::IncludeModule("sale"))
{
	if ($arParams["SET_TITLE"] == '') $arParams["SET_TITLE"] = "Y";
	
	if ($arParams["SET_TITLE"] == "Y")
		$APPLICATION->SetTitle(GetMessage("SPCAT1_TARIF_PLANS"));

	$affiliatePlanType = COption::GetOptionString("sale", "affiliate_plan_type", "N");
	$affiliateCurrency = CSaleLang::GetLangCurrency(SITE_ID);

	$arResult = array();

	$dbPlan = CSaleAffiliatePlan::GetList(
		array("NAME" => "ASC"),
		array("SITE_ID" => SITE_ID, "ACTIVE" => "Y"),
		false,
		false,
		array("ID", "NAME", "DESCRIPTION", "BASE_RATE", "BASE_RATE_TYPE", "BASE_RATE_CURRENCY", "MIN_PLAN_VALUE")
	);
	while ($arPlan = $dbPlan->Fetch())
	{
		$arPlan["BASE_RATE_FORMAT"] = (($arPlan["BASE_RATE_TYPE"] == "P") ? round($arPlan["BASE_RATE"], SALE_VALUE_PRECISION)."%" : SaleFormatCurrency($arPlan["BASE_RATE"], $arPlan["BASE_RATE_CURRENCY"]));
		$arPlan["MIN_PLAN_VALUE_FORMAT"] = (($affiliatePlanType == "N") ? str_replace("#NUM#", intval($arPlan["MIN_PLAN_VALUE"]), GetMessage("SPCAT1_LIMIT1")) : str_replace("#SUM#", SaleFormatCurrency($arPlan["MIN_PLAN_VALUE"], $affiliateCurrency), GetMessage("SPCAT1_LIMIT2")));
		$arPlan["DESCRIPTION"] = htmlspecialcharsex($arPlan["DESCRIPTION"]);
		$arPlan["NAME"] = htmlspecialcharsex($arPlan["NAME"]);
		$arResult[] = $arPlan;
	}

	$this->IncludeComponentTemplate();
}
else
{
	?>
	<b><? ShowError(GetMessage("SPCAT1_NO_SHOP")) ?></b>
	<?
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit