public static function SetHeader() { if ((!defined("BX_SECURITY_SKIP_FRAMECHECK") || BX_SECURITY_SKIP_FRAMECHECK !== true) && !CSecurityFrameMask::Check(SITE_ID, $_SERVER["REQUEST_URI"])) { header("X-Frame-Options: SAMEORIGIN"); } }
<?php echo EndNote(); ?> </td> </tr> <?php $tabControl->BeginNextTab(); $arMasks = array(); if ($bVarsFromForm) { if (is_array($_POST["FRAME_MASKS"])) { foreach ($_POST["FRAME_MASKS"] as $i => $POST_MASK) { $arMasks[] = array("SITE_ID" => htmlspecialcharsbx($POST_MASK["SITE_ID"]), "FRAME_MASK" => htmlspecialcharsbx($POST_MASK["FRAME_MASK"])); } } } else { $rs = CSecurityFrameMask::GetList(); while ($ar = $rs->Fetch()) { $arMasks[] = array("SITE_ID" => htmlspecialcharsbx($ar["SITE_ID"]), "FRAME_MASK" => htmlspecialcharsbx($ar["FRAME_MASK"])); } } ?> <tr> <td class="adm-detail-valign-top" width="40%"><?php echo GetMessage("SEC_FRAME_MASKS"); ?> </td> <td width="60%"> <table cellpadding="0" cellspacing="0" border="0" class="nopadding" width="100%" id="tbFRAME_MASKS"> <?php foreach ($arMasks as $i => $arMask) { ?>