diff --git a/getLastNews.php b/getLastNews.php new file mode 100644 index 0000000..e20d0ea --- /dev/null +++ b/getLastNews.php @@ -0,0 +1,10 @@ +#!/usr/bin/php +channel->item[$x]; + echo "\t{$cur_item->title}\n\t{$cur_item->link}\n\t".trim($cur_item->description)."\n\n"; +} +?> \ No newline at end of file diff --git a/infoblocksWorker.php b/infoblocksWorker.php new file mode 100644 index 0000000..bcbd735 --- /dev/null +++ b/infoblocksWorker.php @@ -0,0 +1,18 @@ + $arSelect, 'filter' => $arFilter, 'order' => $arSort, 'cache' => array('ttl' => 3600))); + } +} + +//(new infoblocksWorker)->getResult(array('ID'), array('=IBLOCK_ID' => 5), array('ID' => 'DESC')); +//require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php"); +?> \ No newline at end of file