Your IP : 216.73.216.170


Current Path : /home/bitrix/ext_www/guest.sanatorio.yacl.site/local/scripts/
Upload File :
Current File : /home/bitrix/ext_www/guest.sanatorio.yacl.site/local/scripts/ad_sync.php

<?
define("NOT_CHECK_PERMISSIONS", true);
if (!$_SERVER["DOCUMENT_ROOT"]) {
    $_SERVER["DOCUMENT_ROOT"] = realpath(__DIR__ . '/../../');
} else {
    die ('Script for console only');
}

//require_once $_SERVER["DOCUMENT_ROOT"] . '/local/composer/vendor/autoload.php';
require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php");

\Bitrix\Main\Loader::includeModule('ldap');

echo date('d.m.Y H:i:s ') . CLdapServer::Sync(1) . "\n";