move version string output to only be shown to logged in users - see #252

pull/255/head
David Goodwin 6 years ago
parent dcef888587
commit 852a09f138

@ -1,10 +1,10 @@
<!-- {$smarty.template} --> <!-- {$smarty.template} -->
<div id="footer"> <div id="footer">
<a target="_blank" rel="noopener" href="http://postfixadmin.sf.net/">Postfix Admin {$version}</a> <a target="_blank" rel="noopener" href="http://postfixadmin.sf.net/">Postfix Admin {$version}</a>
<span id="update-check">&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
<a target="_blank" rel="noopener" href="http://postfixadmin.sf.net/update-check.php?version={$version|escape:"url"}">{$PALANG.check_update}</a></span>
{if isset($smarty.session.sessid)} {if isset($smarty.session.sessid)}
{if $smarty.session.sessid.username} {if $smarty.session.sessid.username}
<span id="update-check">&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
<a target="_blank" rel="noopener" href="http://postfixadmin.sf.net/update-check.php?version={$version|escape:"url"}">{$PALANG.check_update}</a></span>
&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
{$PALANG.pFooter_logged_as|replace:"%s":$smarty.session.sessid.username} {$PALANG.pFooter_logged_as|replace:"%s":$smarty.session.sessid.username}
{/if} {/if}

Loading…
Cancel
Save