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
архивирование файлов с исключением папок, файлов: | |
tar -zcpvf site.tar.gz --exclude={upload/video,bitrix/backup,bitrix/cache,bitrix/managed_cache,/.git,/upload} | |
zip -r apps.zip ../apps -x "**/vendor/*" -x "**/logs/*" -x "**/log/*" -x "**/.idea/*" -x "**/upload/*" -x "**/uploads/*" -x "**/.git/*" -x "**/cache/*" -x "**/bundles/*" -x "**/bundle/*" -x "*.sqlite" -x "*.tar" -x "*.zip" -x "*.gz" |
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
<? | |
// НЕ ЗАБУДЬ ОТПРАВИТЬ НА ОБРАБОТЧИК ДАННЫЕ | |
// order.php?<? echo strstr($_SERVER['REQUEST_URI'],'?') | |
?> | |
<? | |
// ЛОГИРОВАНИЕ В ФАЙЛ | |
function writeToLog($data, $title = '') |
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
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch .env" HEAD | |
git push --force |
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 edit Set-Cookie ^(.*)$ $1;SameSite=None;Secure |
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
let originalBxOnCustomEvent = BX.onCustomEvent; | |
BX.onCustomEvent = function (eventObject, eventName, eventParams, secureParams) | |
{ | |
let realEventName = BX.type.isString(eventName) ? | |
eventName : BX.type.isString(eventObject) ? eventObject : null; | |
let i = 0; | |
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
// 1. добавление | |
$element = $agileCommandsClass::getByPrimary( | |
$agileTeam_id , | |
['select' => array('ID', 'NAME', 'USERS')] | |
)->fetchObject(); | |
$element->addToUsers(new PropertyValue(233973)); | |
$element->save(); | |
// 2. удаление из множественного значниея. | |
$element = \Bitrix\Iblock\Elements\ElementAgilecommandTable::getByPrimary( 193574 , array( // $ELEMENT_ID - id елемента |
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 | |
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) { | |
die(); | |
} | |
class AgileUsersTablesComponent extends \CBitrixComponent | |
{ | |
public function onPrepareComponentParams($arParams) | |
{ | |
return $arParams; |
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
` | |
<? | |
$arTasks = CIBlockRights::GetRightsList(); // получаем массив уровней доступа | |
$object = new CIBlockElementRights($iblockID, $elementID); // создаём объект прав, передав в него id инфоблока и id элемента | |
$arRights = $object->GetRights(); // получим права для элемента | |
$object->SetRights($arRights); // установим права для | |
Array( |
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
$options = new \Bitrix\Main\Grid\Options('catering_events'); | |
$options->deleteView("default"); | |
$options = new \Bitrix\Main\Grid\Options('catering_events'); | |
$options->setAdditionalPresetFields($arFilterFields); |
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_set('error_reporting', E_ALL); | |
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 1); | |
//amo | |
//ПРЕДОПРЕДЕЛЯЕМЫЕ ПЕРЕМЕННЫЕ | |
$responsible_user_id = 1665910; //id ответственного по сделке, контакту, компании | |
$lead_name = 'Заявка с сайта'; //Название добавляемой сделки |
NewerOlder