Files
postfixadmin/templates/index.tpl
T
Christian Boltz 2dc71b6c9f templates/index.tpl:
- replace {php} usage (which is no longer allowed since switching
  from SmartyBC to Smarty) with $smarty.server

fixes https://sourceforge.net/p/postfixadmin/bugs/303/


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1552 a1433add-5e2c-0410-b055-b7f2511e0802
2013-11-01 13:35:09 +00:00

30 lines
827 B
Smarty

<!-- {$smarty.template} -->
{strip}
{include file="header.tpl"}
{if $smarty_template != 'login'}
{config_load file="menu.conf" section=$smarty_template}
{if $authentication_has_role.user}
{include file='users_menu.tpl'}
{else}
{include file='menu.tpl'}
{/if}
{/if}
<br clear="all" />
{if $authentication_has_role.user && $CONF.motd_user}
<div id="motd">{$CONF.motd_user}</div>
{elseif $authentication_has_role.global_admin && $CONF.motd_superadmin}
<div id="motd">{$CONF.motd_superadmin}</div>
{elseif $authentication_has_role.admin && $CONF.motd_admin}
<div id="motd">{$CONF.motd_admin}</div>
{/if}
{include file='flash_error.tpl'}
{if $smarty_template}
{include file="$smarty_template.tpl"}
{else}
<h3>Template not found</h3>({$smarty.server.PHP_SELF|escape:"html"})
{/if}
{include file='footer.tpl'}
{/strip}