This file contains hidden or 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
Array | |
( | |
[NAME] => кенгкег | |
[SECOND_NAME] => лопорл | |
[LAST_NAME] => 45674567 | |
[TYPE_ID] => CLIENT | |
[SOURCE_ID] => CALL | |
[COMMENTS] => | |
[OPENED] => Y | |
[EXPORT] => N |
This file contains hidden or 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
<? | |
// Обновление списка компаний для актуализации настроек прав доступа | |
include_once(__DIR__ . "/../../.config.php"); | |
define("NO_KEEP_STATISTIC", true); | |
define("NOT_CHECK_PERMISSIONS", true); | |
define('CHK_EVENT', true); | |
ini_set('memory_limit', '-1'); | |
require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php"); |
This file contains hidden or 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
global $APPLICATION; | |
$arFields['RESULT_MESSAGE'] = 'Задайте контакту оригинальное имя и фамилию'; | |
$GLOBALS['APPLICATION']->throwException('error'); |
This file contains hidden or 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
$_SERVER["DOCUMENT_ROOT"] = realpath(dirname(__FILE__)."/../.."); |
This file contains hidden or 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
$arFieldsToInsert = ['SITE' => $newLid, 'TOSITE' => $newLid, 'URLFROM' => $arRedirect['URLFROM'], 'URLTO' => $arRedirect['URLTO']]; | |
$arInsert = $DB->PrepareInsert("v_redirect", $arFieldsToInsert); | |
$strSql = "INSERT INTO v_redirect(".$arInsert[0].") VALUES(".$arInsert[1].")"; | |
$id = $DB->Query($strSql, false, "File: ".__FILE__."<br>Line: ".__LINE__); | |
if ($id) { | |
echo "Редирект с " . $arRedirect['URLFROM'] . " на " . $arRedirect['URLTO'] . " успешно скопирован <br>"; | |
} |
This file contains hidden or 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
use Bitrix\Main\Application; | |
use Bitrix\Main\Web\Cookie; | |
if(Application::getInstance()->getContext()->getRequest()->getCookie('FROMBUSINESS')){ | |
$cookie = new Cookie("FROMBUSINESS", ''); | |
Application::getInstance()->getContext()->getResponse()->addCookie($cookie); | |
} |
This file contains hidden or 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
$method = '/add.new.ajax'; | |
$params = ['field' => 'value']; | |
$queryUrl = 'https://mycoolsite.ru' . $method; | |
$queryData = http_build_query($params); | |
$curl = curl_init(); | |
curl_setopt_array($curl, array( | |
CURLOPT_SSL_VERIFYPEER => false, | |
CURLOPT_POST => 1, |
This file contains hidden or 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
var url = new URL(location.href); | |
url.searchParams.delete('LG'); | |
url.searchParams.set('LG', 'YES'); | |
location.href = url.href; |
This file contains hidden or 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
CIBlockElement::SetPropertyValuesEx($ELEMENT_ID, $arParams["IBLOCK_ID"], array( | |
"vote_count" => array( | |
"VALUE" => $arProperties["vote_count"]["VALUE"], | |
"DESCRIPTION" => $arProperties["vote_count"]["DESCRIPTION"], | |
), | |
"vote_sum" => array( | |
"VALUE" => $arProperties["vote_sum"]["VALUE"], | |
"DESCRIPTION" => $arProperties["vote_sum"]["DESCRIPTION"], | |
), | |
"rating" => array( |
This file contains hidden or 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
EventManager::getInstance()->addEventHandler( | |
'sale', | |
'OnSaleBasketSaved', | |
'clearSessionParameters' | |
); | |
/** | |
* @param \Bitrix\Main\Event $event | |
* @return \Bitrix\Main\EventResult|\Main\EventResult | |
* 14553 |