<?$checklogin = check_login_kuri();?>

<div id="auth">
    <?if ($checklogin['error'] == 'client not found'):?>
        <a href="<?=SITE?>login">Войти</a>      
    <?else:?>
        <a href="<?=SITE?>out">Выйти</a>
    <?endif?>
</div>    