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
| <? | |
| /* Массив таблиц и стобцов с сериализованными данными которые удалось найти */ | |
| $arDB = array( | |
| 'b_component_params' => 'PARAMETERS', | |
| 'b_event' => 'C_FIELDS', | |
| 'b_event_log' => 'DESCRIPTION', | |
| 'b_event_message' => 'ADDITIONAL_FIELD', | |
| 'b_group' => 'SECURITY_POLICY', | |
| 'b_iblock_element_property' => 'VALUE', | |
| 'b_iblock_fields' => 'DEFAULT_VALUE', |
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
| Так же подобная ошибка возникает в случае, когда реквизиты доступа к базе данных в файлах | |
| bitrix/.settings.php | |
| и | |
| bitrix/php_interface/dbconn.php | |
| Разные. | |
| Другие решения проблемы: | |
| CharsetReCODEMultipartForms off | |
| http://dev.1c-bitrix.ru/support/faq/8370/#112840 |
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
| syntax:glob | |
| *.gz | |
| *.tmp* | |
| error_log | |
| access_log | |
| .hgignore | |
| .DS_Store | |
| public_html/[^/]*\.log$ |
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
| user - имя пользователя | |
| server.timeweb.ru - сервер | |
| 1. На машине ssh-keygen -t rsa | |
| 2. Копируем, можно по FTP или одной из команд | |
| 2.1. ssh-copy-id -i ~/.ssh/id_rsa [email protected] | |
| 2.2. scp ~/.ssh/id_rsa.pub [email protected]:~ | |
| 3. На сервере | |
| [ -d ~/.ssh ] || (mkdir ~/.ssh; chmod 711 ~/.ssh) # создание директории и изменение прав | |
| cat ~/id_rsa.pub >> ~/.ssh/authorized_keys # добавление открытого ключа |
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
| #!/bin/sh | |
| # 1. https://gist.github.com/zetrider/28f1d463c6bd9af1c0e6 | |
| # 2. $1 = type !important | |
| if [ -z $1 ]; then | |
| echo 'Not found the first variable "Type"' | |
| exit; | |
| fi; | |
| ### Site1 ### |
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
| CModule::IncludeModule("iblock"); | |
| $arParams = array(); | |
| $res = CIBlock::GetList(array(), array()); | |
| while($arF = $res->Fetch()) | |
| { | |
| $PROPS = CIBlock::GetProperties($arF['ID'], array('SORT'=>'ASC'), array('PROPERTY_TYPE' => 'E')); | |
| while ($PROP = $PROPS->Fetch()) | |
| { | |
| $arParams[] = array( | |
| 'd' => 'Y', |
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
| //in console | |
| var jq = document.createElement('script'); | |
| jq.src = "//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"; | |
| document.getElementsByTagName('head')[0].appendChild(jq); | |
| ... wait 5 sec ... | |
| jQuery(document).ready(function($) { | |
| $('.dga').each(function(){ | |
| $(this).click(); | |
| }); |
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
| AddEventHandler("pr.recrm", "OnBeforeImport", "MyReCRMOnBeforeImport"); | |
| function MyReCRMOnBeforeImport($arData = array()) | |
| { | |
| $arResult = $arData; | |
| if($arResult['TYPE'] == 'estate') | |
| { | |
| /* Добавим в свойство MyCustomField стоимость price_total + 18% */ | |
| $arResult['PROP']['MyCustomField'] = $arResult['PROP']['price_total'] * 1.18; | |
| } |
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
| AddEventHandler("pr.recrm", "OnAfterImport", "prOnAfterImport"); | |
| function prOnAfterImport() | |
| { | |
| BXClearCache(true, "/s1/pr/"); | |
| } |
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
| AddEventHandler("pr.recrm", "OnBeforeGetSettings", "prOnBeforeGetSettings"); | |
| function prOnBeforeGetSettings($arData = array()) | |
| { | |
| $arResult = $arData; | |
| $arResult['PARAMS']['pr_recrm_key'] = 'demo'; // определяем новый ключ | |
| return $arResult; | |
| } |
OlderNewer