<?php require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php"; if (!$USER->CanDoOperation('edit_other_settings')) { $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED")); } $res = false; if (isset($_REQUEST["id"]) && strLen(trim($_REQUEST["id"])) > 0 && check_bitrix_sessid()) { $quota = new CDiskQuota(); $_REQUEST["recount"] = $_REQUEST["recount"] == "begin" ? true : false; if (strToLower($_REQUEST["id"]) == "db") { $_SESSION["SESS_RECOUNT_DB"] = "Y"; $res = $quota->SetDBSize(); } else { $res = $quota->Recount($_REQUEST["id"], $_REQUEST["recount"]); } } require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_popup_admin.php"; if ($res !== false) { ?> <script type="text/javascript"> if (!window.parent.window.result) window.parent.window.result = new Array(); window.parent.window.result['done'] = true; <?php if ($res["status"] == "error") { ?> window.parent.window.result['stop'] = true; window.parent.window.result['error'] = true; <?php } else {