コード例 #1
0
		}
	}

	$value = (count($arTokens) <= 0) ? '' : serialize($arTokens);
	COption::SetOptionString('lol.metrika', 'tokens', $value);

	ob_start();
	require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/admin/group_rights2.php");
	ob_end_clean();

	if($strError=="")
	{
		if(strlen($Update)>0 && strlen($_REQUEST["back_url_settings"])>0)
			LocalRedirect($_REQUEST["back_url_settings"]);
		else
			LocalRedirect($APPLICATION->GetCurPage()."?mid=".urlencode($mid)."&lang=".urlencode(LANGUAGE_ID)."&back_url_settings=".urlencode($_REQUEST["back_url_settings"])."&".$tabControl->ActiveTabParam());
	}

}

if(strlen($strWarning)>0)
	CAdminMessage::ShowMessage($strWarning);

if(strlen($strOK)>0)
	CAdminMessage::ShowNote($strOK);


$tabControl->Begin();

?>
コード例 #2
0
ファイル: options.php プロジェクト: ASDAFF/suggestions-bitrix
        } else {
            foreach ($arSites as $arSite) {
                COption::SetOptionString($module_id, 'apikey', $_POST['apikey_' . $arSite['ID']], GetMessage('OPT_APIKEY'), $arSite['ID']);
                COption::SetOptionString($module_id, 'enabled', $_POST['enabled_on_' . $arSite['ID']], GetMessage('OPT_SERVICE_ON'), $arSite['ID']);
                COption::SetOptionString($module_id, 'mapping', serialize(CDadataSuggestionsSettings::GetMappingFromPost($arSite['ID'])), GetMessage('OPT_MAPPING'), $arSite['ID']);
                COption::SetOptionString($module_id, 'url', 'https://dadata.ru/api/v2', GetMessage('OPT_URL'), $arSite['ID']);
                COption::SetOptionString($module_id, 'url_static_js', 'https://dadata.ru/static/js/lib/jquery.suggestions-4.8.min.js', GetMessage('OPT_URL_JS'), $arSite['ID']);
                COption::SetOptionString($module_id, 'url_static_css', 'https://dadata.ru/static/css/lib/suggestions-4.8.css', GetMessage('OPT_URL_CSS'), $arSite['ID']);
            }

        }
        $Update = $Update . $Apply;
        if (strlen($Update) > 0 && strlen($_REQUEST['back_url_settings']) > 0) {
            LocalRedirect($_REQUEST['back_url_settings']);
        } else {
            LocalRedirect($APPLICATION->GetCurPage() . '?mid=' . urlencode($mid) . '&lang=' . urlencode(LANGUAGE_ID) . '&back_url_settings=' . urlencode($_REQUEST['back_url_settings']) . '&' . $tabControl->ActiveTabParam());
        }
    }


    ?>


    <form method="post" action="<? echo $APPLICATION->GetCurPage() ?>?mid=<?php 
echo urlencode($mid);
?>
&amp;lang=<?php 
echo LANGUAGE_ID;
?>
"><?
        $tabControl->Begin();