Server IP : 85.193.89.191 / Your IP : 3.145.55.100 Web Server : Apache System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : bitrix ( 600) PHP Version : 8.1.27 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/bitrix/www/bitrix/components/bitrix/socserv.auth.form/templates/flat/ |
Upload File : |
<? if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) { die(); } /** * @var array $arParams */ CUtil::InitJSCore(array("popup")); $arAuthServices = $arPost = array(); if(is_array($arParams["~AUTH_SERVICES"])) { $arAuthServices = $arParams["~AUTH_SERVICES"]; } if(is_array($arParams["~POST"])) { $arPost = $arParams["~POST"]; } $hiddens = ""; foreach($arPost as $key => $value) { if(!preg_match("|OPENID_IDENTITY|", $key)) { $hiddens .= '<input type="hidden" name="'.$key.'" value="'.$value.'" />'."\n"; } } ?> <script type="text/javascript"> function BxSocServPopup(id) { var content = BX("bx_socserv_form_"+id); if(content) { var popup = BX.PopupWindowManager.create("socServPopup"+id, BX("bx_socserv_icon_"+id), { autoHide: true, closeByEsc: true, angle: {offset: 24}, content: content, offsetTop: 3 }); popup.show(); var input = BX.findChild(content, {'tag':'input', 'attribute':{'type':'text'}}, true); if(input) { input.focus(); } var button = BX.findChild(content, {'tag':'input', 'attribute':{'type':'submit'}}, true); if(button) { button.className = 'btn btn-primary'; } } } </script> <div class="bx-authform-social"> <ul> <? foreach($arAuthServices as $service): $onclick = ($service["ONCLICK"] <> ''? $service["ONCLICK"] : "BxSocServPopup('".$service["ID"]."')"); ?> <li> <a id="bx_socserv_icon_<?=$service["ID"]?>" class="<?=\Bitrix\Main\Text\HtmlFilter::encode($service["ICON"])?> bx-authform-social-icon" href="javascript:void(0)" onclick="<?=\Bitrix\Main\Text\HtmlFilter::encode($onclick)?>" title="<?=\Bitrix\Main\Text\HtmlFilter::encode($service["NAME"])?>"></a> <?if($service["ONCLICK"] == '' && $service["FORM_HTML"] <> ''):?> <div id="bx_socserv_form_<?=$service["ID"]?>" class="bx-authform-social-popup"> <form action="<?=$arParams["AUTH_URL"]?>" method="post"> <?=$service["FORM_HTML"]?> <?=$hiddens?> <input type="hidden" name="auth_service_id" value="<?=$service["ID"]?>" /> </form> </div> <?endif?> </li> <? endforeach; ?> </ul> </div>