Created
November 23, 2015 14:34
-
-
Save d1i1m1o1n/2484c1039dad3af22af6 to your computer and use it in GitHub Desktop.
Bitrix. Page without header and footer
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 | |
define('NO_AGENT_CHECK', true); | |
define("STOP_STATISTICS", true); | |
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php"); | |
//ajax | |
/*if (!isset($_SERVER['HTTP_X_REQUESTED_WITH']) || empty($_SERVER['HTTP_X_REQUESTED_WITH']) | |
|| strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) != 'xmlhttprequest') return;*/ | |
//Code here | |
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_after.php"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment