Created
January 19, 2017 14:00
-
-
Save EscApp2/1407ca88ff6c26c988c1d05b82c0a799 to your computer and use it in GitHub Desktop.
cron agents file bitrix
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 | |
$_SERVER["DOCUMENT_ROOT"] = realpath(dirname(__FILE__)."/../../"); | |
$DOCUMENT_ROOT = $_SERVER["DOCUMENT_ROOT"]; | |
define("NO_KEEP_STATISTIC", true); | |
define("NOT_CHECK_PERMISSIONS",true); | |
define('CHK_EVENT', true); | |
define('BX_NO_ACCELERATOR_RESET', true); | |
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php"); | |
@set_time_limit(0); | |
@ignore_user_abort(true); | |
CAgent::CheckAgents(); | |
define("BX_CRONTAB_SUPPORT", true); | |
define("BX_CRONTAB", true); | |
CEvent::CheckEvents(); | |
if (CModule::IncludeModule("subscribe")) | |
{ | |
$cPosting = new CPosting; | |
$cPosting->AutoSend(); | |
} | |
if(CModule::IncludeModule('sender')) | |
{ | |
\Bitrix\Sender\MailingManager::checkPeriod(false); | |
\Bitrix\Sender\MailingManager::checkSend(); | |
} | |
require($_SERVER['DOCUMENT_ROOT']."/bitrix/modules/main/tools/backup.php"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment