Код |
---|
<?$APPLICATION->IncludeComponent( "bitrix:main.register", "", Array( "USER_PROPERTY_NAME" => "", "SEF_MODE" => "Y", "SHOW_FIELDS" => Array("NAME","LAST_NAME"), "REQUIRED_FIELDS" => Array("LAST_NAME"), "AUTH" => "Y", "USE_BACKURL" => "Y", "SUCCESS_PAGE" => "register_ok.php", "SET_TITLE" => "Y", "CACHE_TYPE" => "A", "CACHE_TIME" => "3600", "SEF_FOLDER" => "/register/", "VARIABLE_ALIASES" => Array( ) ) );?> |
Цитата |
---|
Костя Пойда пишет:
if (!$USER->IsAuthorized()) { // если пользователь не авторизирован. $APPLICATION->IncludeComponent( "bitrix:system.auth.form", "iauth", Array( "REGISTER_URL" => "", "PROFILE_URL" => "index.php", "SHOW_ERRORS" => "Y" ) ); } else { Header("Location: ВАША_СТРАНИЦА.php"); } |
Цитата |
---|
Костя Пойда пишет:
if (!$USER->IsAuthorized()) { // если пользователь не авторизирован. $APPLICATION->IncludeComponent( "bitrix:system.auth.form", "iauth", Array( "REGISTER_URL" => "", "PROFILE_URL" => "index.php", "SHOW_ERRORS" => "Y" ) ); } else { Header("Location: ВАША_СТРАНИЦА.php"); } |