} /*************************************************************************************************/ /*************************************************************************************************/ @Set_Time_Limit(10000); if (In_Array($_REQUEST["fcajax"], array("cl", "vf", "df")) && check_bitrix_sessid()) { if ($_REQUEST["fcajax"] == "cl") { if (!$RIGHT_COLLECT) { $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED")); } if (IntVal($_REQUEST["tm"]) < 5) { $_REQUEST["tm"] = 5; } $collector = new CFileChecker(); $arTs = array("ts" => IntVal($_REQUEST["ts"]), "Completed" => IntVal($_REQUEST["completed"]), "StartPoint" => $_REQUEST["startpoint"], "MaxExecutionTime" => IntVal($_REQUEST["tm"])); $arErrors = array(); $res = $collector->CollectCrc(IntVal($_REQUEST["region"]), Explode(",", $_REQUEST["exts"]), $_REQUEST["pwd"], $arTs, $arErrors); if (Count($arErrors) > 0) { echo "ERR|" . Implode("|", $arErrors); } else { if ($res) { echo "FIN|" . $arTs["ts"] . "|" . $arTs["StatNum"]; } else { echo "STP|" . $arTs["Completed"] . "|" . $arTs["ts"] . "|" . $arTs["StartPoint"] . "|" . $arTs["StatNum"]; } } } elseif ($_REQUEST["fcajax"] == "vf") { if (!$RIGHT_VERIFY) { $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED")); } if (IntVal($_REQUEST["tm"]) < 5) { $_REQUEST["tm"] = 5;