Current Path : /var/www/www-root/data/webdav/www.catalog.monolith-realty.ru/bitrix/modules/main/tools/ |
Current File : /var/www/www-root/data/webdav/www.catalog.monolith-realty.ru/bitrix/modules/main/tools/autosave.php |
<? define("STOP_STATISTICS", true); define("PUBLIC_AJAX_MODE", true); define('BX_SECURITY_SESSION_READONLY', true); require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); if(!$USER->IsAuthorized() || !check_bitrix_sessid()) die(); CUtil::JSPostUnescape(); $arFormData = $_REQUEST['form_data'] ?? null; $AUTOSAVE = new CAutoSave(); if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'reset') $AUTOSAVE->Reset(); elseif ($AUTOSAVE->Set($arFormData)) echo time() + CTimeZone::GetOffset(); else echo 'FAILED'; require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_after.php"); ?>