{if $smarty.get.s ne "" and $smarty.get.id ne ""}

{lang_entry key="backend.recovery.recovery.password"}

{if $error_message ne ""}{$error_message}{elseif $notice_message ne ""}{$notice_message}{/if} {if $tpl_error_max eq ""}
{/if}
{else} {if ($password_recovery_captcha eq "1" and $global_section eq "frontend")} {assign var=extra_l value=1} {elseif ($backend_password_recovery_captcha eq "1" and $global_section eq "backend")}{assign var=extra_l value=3} {/if} {if ($username_recovery_captcha eq "1" and $global_section eq "frontend")} {assign var=extra_r value=2} {elseif ($backend_username_recovery_captcha eq "1" and $global_section eq "backend")}{assign var=extra_r value=4} {/if}
{if ($allow_password_recovery eq "1" and $global_section eq "frontend") or ($backend_password_recovery eq "1" and $global_section eq "backend")}

{if $global_section eq "frontend"}{lang_entry key="recovery.forgot.password"}{else}{lang_entry key="backend.recovery.forgot.password"}{/if}

{if ($password_recovery_captcha eq "1" and $global_section eq "frontend") or ($backend_password_recovery_captcha eq "1" and $global_section eq "backend")}
{/if}
{else}

{lang_entry key='recovery.disabled.password'}

{/if}
{if ($allow_username_recovery eq "1" and $global_section eq "frontend") or ($backend_username_recovery eq "1" and $global_section eq "backend")}

{if $global_section eq "frontend"}{lang_entry key="recovery.forgot.username"}{else}{lang_entry key="backend.recovery.forgot.username"}{/if}

{if ($username_recovery_captcha eq "1" and $global_section eq "frontend") or ($backend_username_recovery_captcha eq "1" and $global_section eq "backend")}
{/if}
{else}

{lang_entry key='recovery.disabled.username'}

{/if} {/if}