Browse Source

Remove Guest string and user IP from web UI

master
Alexey Sokolov 4 years ago
parent
commit
625d70fa85
1 changed files with 8 additions and 3 deletions
  1. +8
    -3
      webskins/_default_/tmpl/InfoBar.tmpl

+ 8
- 3
webskins/_default_/tmpl/InfoBar.tmpl View File

@ -1,7 +1,12 @@
<? I18N znc ?>
<? SETBLOCK InfoBar_GuestNameStr ?><? FORMAT "-Guest-" ?><? ENDSETBLOCK ?>
<? SETBLOCK InfoBar_UserNameSpan ?><span class="user_name"><? VAR SessionUser DEFAULT=*InfoBar_GuestNameStr ?></span><? ENDSETBLOCK ?>
<? SETBLOCK InfoBar_UserNameSpan ?><span class="user_name"><? VAR SessionUser ?></span><? ENDSETBLOCK ?>
<div id="infobar">
<span id="infobar_ident"><? FORMAT "Logged in as: {1} (from {2})" "InfoBar_UserNameSpan ESC=" SessionIP ?></span>
<span id="infobar_ident">
<? IF SessionUser ?>
<span id="logged_in_yes"><? FORMAT "Logged in as: {1}" "InfoBar_UserNameSpan ESC=" ?></span>
<? ELSE ?>
<span id="logged_in_no"><? FORMAT "Not logged in" ?></span>
<? ENDIF ?>
</span>
<? INC LoginBar.tmpl ?>
</div>

Loading…
Cancel
Save