} $arParams["SITE_ID"] = ''; if ($_REQUEST["site_id"] != '') { $res = CSite::GetByID($_REQUEST["site_id"]); if ($arSite = $res->Fetch()) { $arParams["SITE_ID"] = $arSite["ID"]; } } $access = new CAccess($arParams); if ($_REQUEST["mode"] == "ajax") { echo $access->AjaxRequest(array("provider" => $_REQUEST["provider"])); die; } if ($_REQUEST["mode"] == "save_lru" && check_bitrix_sessid()) { if (is_array($_REQUEST["LRU"])) { CAccess::SaveLastRecentlyUsed($_REQUEST["LRU"]); } die; } ?> <div class="access-container"> <?php $arHtml = $access->GetFormHtml(); if (!empty($arHtml)) { ?> <div class="access-providers-container"> <?php $first = ''; foreach ($arHtml as $ID => $provider) { if ($provider["SELECTED"] == true) { $first = $ID;