This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('Content-Type: application/json'); | |
require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php"); | |
function sendMail() | |
{ | |
$postData = $_POST; | |
// Sanitize and validate input data | |
$name = htmlspecialchars(trim($postData['name'])); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!empty($arResult)) { | |
$parentID = false; | |
$subParentID = false; | |
foreach($arResult as $i => $arItem) { | |
if ($arItem['DEPTH_LEVEL'] == 1) { | |
$parentID = $i; | |
$arResult[$i]['ITEMS'] = array(); | |
} elseif ($arItem['DEPTH_LEVEL']==2 && $parentID!==false) { | |
$arResult[$parentID]['ITEMS'][$i] = $arItem; | |
$subParentID = $i; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Новые строки для быстрого фильтра 20-22 и 341-414 они помечены как TODO*/ | |
function JCSmartFilter(ajaxURL, viewMode, params) { | |
this.ajaxURL = ajaxURL; | |
this.form = null; | |
this.timer = null; | |
this.cacheKey = ''; | |
this.cache = []; | |
this.popups = []; | |
this.viewMode = viewMode; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
В файле php.ini | |
zend_extension = xdebug; | |
[xdebug] | |
xdebug.mode = debug | |
xdebug.remote_port = 9001 | |
xdebug.idekey = "PHPSTORM" | |
xdebug.start_with_request = "yes" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? ob_start(); ?> | |
<? var_export($arResult["OFFERS"]); ?> | |
<? $string = "<?\$res=".ob_get_clean()."?>"; | |
file_put_contents($_SERVER["DOCUMENT_ROOT"]."/debug.php", $string); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? $svg = file_get_contents($_SERVER["DOCUMENT_ROOT"] . $arItem["PARAMS"]["IMG"]); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$arOrder = array("SORT" => "ASC"); | |
$arFilter = array("IBLOCK_ID" => IntVal($arParams["IBLOCK_ID"]), "ACTIVE" => "Y"); | |
$bIncCnt = false; | |
$arSelect = array("ID", "IBLOCK_ID", "*", "PROPERTY_*"); | |
$arNavStartParams = false; | |
$res = CIBlockSection::GetList($arOrder, $arFilter, $bIncCnt, $arSelect, $arNavStartParams,); | |
while ($ob = $res->GetNext()) { | |
$arrSections[] = $ob; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CFile::GetPath($arItem["PICTURE"]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? header('Content-Type: application/json');?> | |
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");?> | |
<? | |
echo json_encode(array( | |
'status' => send() | |
)); | |
?> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$arOrder= array("SORT"=>"ASC"); | |
$arFilter = Array("IBLOCK_ID"=>IntVal(1), "ACTIVE"=>"Y"); | |
$arGroupBy = false; | |
$arNavStartParams = array(); | |
$arSelect = Array("ID", "IBLOCK_ID", "*", "PROPERTY_*"); | |
$res = CIBlockElement::GetList($arOrder, $arFilter, $arGroupBy, $arNavStartParams, $arSelect); | |
while ($ob = $res->GetNextElement()) { | |
$arFields = $ob->GetFields(); | |
$arProps = $ob->GetProperties(); | |
} |
NewerOlder