
<?php
    if($this->a_Auth->isLogged()) {
        $userinfo = L_G_HELLOW.', <a href="'.$this->a_logged_field_url.'" title="'.L_G_EDITUSERPROFILE.'">'.$this->a_Auth->userName.'</a>, ';
?>
<div class="uinfo">
    <p><?php echo $userinfo; ?>
    <?php if($this->a_Auth->getSetting('Aff_allow_choose_lang') == 1) { ?>
    <a href="index.php?md=<?php echo $_GET['md'];?>&language=zh-TW"><?php echo L_G_ZHTW;?></a> |
    <a href="index.php?md=<?php echo $_GET['md'];?>&language=zh-CN"><?php echo L_G_ZHCN;?></a> ,
    <?php } ?>
    <a href="logout.php" target="_self"><?php echo L_G_LOGOUT?></a>
    </p>
</div>
<?php } ?>
