require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");
global $USER;
if ($USER->IsAuthorized())
{
if (isset($_REQUEST["backurl"]) && strlen($_REQUEST["backurl"])>0)
LocalRedirect($backurl);
}
if ($USER->IsAuthorized())
{
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
?>
<p>Вы зарегистрированы и успешно авторизовались.</p>
<p><a href="<?=SITE_DIR?>" href="">Вернуться на главную страницу</a></p>
<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");
}else{
$APPLICATION->IncludeComponent("bitrix:system.auth.form","",
Array(
"SHOW_ERRORS" => "Y"
)
);
}
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_after.php");
<? if (!$USER->IsAuthorized()): ?>
<? $APPLICATION->IncludeComponent('bitrix:system.auth.authorize', '', array('AUTH_RESULT' => $APPLICATION->arAuthResult)); ?>
<? endif; ?>
define("NEED_AUTH", true);