]> git.wh0rd.org - tt-rss.git/blobdiff - index.php
hide several user-related prompts when using remote auth + auto_login (closes #447)
[tt-rss.git] / index.php
index c809c183e0139ea4afc6ac0a9011fcd462f0475c..80e3ebf9ee3d25b93448e9234b81692985083d61 100644 (file)
--- a/index.php
+++ b/index.php
@@ -93,7 +93,7 @@
 </div>
 
 <div id="header">
-       <?php if (!SINGLE_USER_MODE) { ?>
+       <?php if (!SINGLE_USER_MODE && !(ALLOW_REMOTE_USER_AUTH && AUTO_LOGIN)) { ?>
                        <?php echo __('Hello,') ?> <b><?php echo $_SESSION["name"] ?></b> |
        <?php } ?>
        <a href="prefs.php"><?php echo __('Preferences') ?></a>
                                <?php echo __('Comments?') ?></a>
        <?php } ?>
 
-       <?php if (!SINGLE_USER_MODE) { ?>
+       <?php if (!SINGLE_USER_MODE && !(ALLOW_REMOTE_USER_AUTH && AUTO_LOGIN)) { ?>
                        | <a href="backend.php?op=logout"><?php echo __('Logout') ?></a>
        <?php } ?>