Skip to content

Instantly share code, notes, and snippets.

@victorlapshev
Created September 8, 2017 10:47
Show Gist options
  • Select an option

  • Save victorlapshev/13c679eb099988bb1a7588cb951b34fb to your computer and use it in GitHub Desktop.

Select an option

Save victorlapshev/13c679eb099988bb1a7588cb951b34fb to your computer and use it in GitHub Desktop.
<?php
/**
* @global CUser $USER
*
* @var $APPLICATION CMain
*/
$_SERVER["DOCUMENT_ROOT"] = __DIR__ . '/../../';
define("NO_KEEP_STATISTIC", true);
define("NOT_CHECK_PERMISSIONS",true);
define("BX_CRONTAB", true);
define('BX_NO_ACCELERATOR_RESET', true);
define('BX_BUFFER_USED', false);
@set_time_limit(0);
@ini_set('memory_limit','1024M');
@ignore_user_abort(false);
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");
while (ob_get_level()) { ob_end_flush(); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment