Проблема: вирус создал тысячи статичных html файлов в папке Ниже команды для переноса их в одну папку, а затем в архив, чтобы удалить, но забекапить mkdir html_tmp find . -maxdepth 1 -type f -name «*.html» -exec mv {} ./html_tmp \; zip -r0 html_tmp.zi..
Подключение только библиотек битрикса require($_SERVER[«DOCUMENT_ROOT»] . «/bitrix/modules/main/include/prolog_before.php»); Подключение модуля \Bitrix\Main\Loader::includeModule(‘iblock’); Добавляем свойства $db = CIBlockElement::GetList(array(),array(‘IBLOCK_ID’=>$iblock_id),false,Array(«nPageSize»=>250,’iNumPage’=>6),array(«ID», «IBLOCK_ID», «NAME», «PROPERTY_*»)); while($v = $db->GetNextElement()){ $v->props = $v->GetProperties(); $PROP = array( // Здесь должны быть все свойства элемента. Отсутствующие здесь затрутся $field_id => $value // OLDURL ); $arFields = Array( «ACTIVE» => ‘Y’, «IBLOCK_ID» => $iblock_id, «PROPERTY_VALUES»=> $PROP ); ..
Видео «Что клиенты просят доделать после вас» https://www.youtube.com/watch?v=c..
require($_SERVER[«DOCUMENT_ROOT»].»/bitrix/header.php»); CModule::includeModule(‘iblock’); $arFilter = Array(‘IBLOCK_ID’=>3, ‘GLOBAL_ACTIVE’=>’Y’); $db = CIBlockSection::GetList(Array($by=>$order), $arFilter, true); $arSections = array(); while($arSection = $db->fetch()){ $arSections[] = $arSection; } $arProp26 = array(12,13,14); $arProp21 = array(9,10); $arProp24 = array(«Москва», «Балашиха», «Королев», «Химки», «Митино», «Реутов»); $arPreviews = array( ‘http://example.com/upload/iblock/b2b/b2b5be26787acd169c0bd6b1b2155280.jpg’, ‘http://example.com/upload/iblock/53a/53a9788879914d5233c540ae907d7df0.jpg’, ‘http://example.com/upload/iblock/27e/27ef81c4908aa8d6f2558c170d5620fe.jpg’, ‘http://example.com/upload/iblock/7c7/7c7745c6442b65e06ba954332a714008.jpg’, ); // echo ».print_r($arSections,1).»; // die(); foreach($arSections as $arSection){ $arFields = array(); $arFields[‘NAME’] ..
http://githowto.com/ru https://www.codecademy.com/learn/learn-git https://try.github.io/ http://habrahabr.ru/post/189046/ https://www.youtube.com/watch?v=g..
loftblog.ru — много действительно полезных ви..
..
var form = $(‘form[name=regform]’); $(‘input[type=text],input[type=password]’,form).each(function(){ if($(this).attr(‘name’).toLowerCase().indexOf(’email’) != -1 || $(this).attr(‘name’).toLowerCase().indexOf(‘login’) != -1 || $(this).attr(‘type’) == ‘password’){ $(this).val(‘usovdm@web2age.com’); }else{ $(this).val(‘test ‘ + $.trim($(this).parent().siblings(‘label’).text().replace(‘:’,»))); } }); $(‘input[type=password]’,form).each(function(){ $(this).val(‘usovdm@web2age..
Выполнение отложенной функции в component_epilog Формируется: //$this->initComponentTemplate(); // наблюдались проблемы //$this->__template->SetViewTarget(«catalog_position»); или $this->__template->SetViewTarget(‘SIMPLE_ORDER’); … $this->__template->EndViewTarget(); Вставляется: $APPLICATION->ShowViewContent(..
На сервере, с которого копировать, вызываем: rsync -rvz /from_full_path/ ssh_user@host:/to_full_path/ rsync -rvz /home/u/usovdm/site.ru/public_html/images/ bitrix@HOST_IP:/home/bitrix/ext_www/site.ru/images/ Запросит пароль Можно и в другом направлении: вызывать rsync на сервере, на котором хоти..
Свежие комментарии