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 | |
use Bitrix\Main\Page\Asset; | |
$AssetManager = Asset::getInstance(); | |
//$AssetManager->addCss(); | |
//$AssetManager->addJs(); | |
//$AssetManager->addString(); | |
?> | |
<!DOCTYPE html> | |
<html lang="ru"> | |
<head> |
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
SELECT * from b_iblock_element LEFT JOIN b_iblock_element_property ON b_iblock_element.ID = b_iblock_element_property.IBLOCK_ELEMENT_ID WHERE b_iblock_element.IBLOCK_ID = 79 AND b_iblock_element_property.VALUE <> '' ORDER BY b_iblock_element_property.VALUE_NUM; | |
-- SELECT * from b_iblock_element_property LIMIT 1; | |
-- SELECT * from b_iblock_element LIMIT 1; |
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
https://dev.1c-bitrix.ru/community/forums/messages/forum6/topic27121/message149429/#message149429 |
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 | |
require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php"); | |
if ((empty($_SERVER["HTTP_X_REQUESTED_WITH"]) || strtolower($_SERVER["HTTP_X_REQUESTED_WITH"]) != "xmlhttprequest") OR !check_bitrix_sessid()) { | |
CHTTP::SetStatus('401 Unauthorized'); | |
die("Unauthorized"); | |
} | |
header('Content-Type: application/json'); | |
$response = ['ERROR' => 'OK']; |
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(); | |
/** @var array $arCurrentValues */ | |
// Подключение IBlock; | |
if (!CModule::IncludeModule("iblock")) | |
return; | |
// Типы инфоблоков | |
$arTypesEx = CIBlockParameters::GetIBlockTypes(["-" => " "]); |
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. https://github.com/SidiGi/bitrix-info/wiki |
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
<? | |
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php"); | |
$APPLICATION->SetTitle("Страница не найдена. Ошибка 404"); | |
CHTTP::SetStatus("404 Not Found"); | |
?> | |
<h1>Страница не найдена</h1> | |
<p> | |
<h2>Здравствуйте!</h2> | |
<br> |
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
init.php: | |
<?php | |
function AddCacheSeed($path) { | |
$time = filemtime($_SERVER['DOCUMENT_ROOT'] . $path); | |
return $path . '?' . $time; | |
} | |
?> |
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 | |
require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php"); | |
/* Тут твой любой код */ | |
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_after.php"); |