opensmtpdadmin/templates/menu.tpl

28 lines
1.4 KiB
Smarty
Raw Normal View History

2022-08-18 14:01:52 +02:00
<div id="menu">
<ul>
2022-09-05 20:29:41 +02:00
<li><a target="_top" href="list-domain.php"><?php echo $LANG['Menu_list_domain']; ?></a></li>
<li><a target="_top" href="list-virtual.php"><?php echo $LANG['Menu_list_virtual']; ?></a></li>
<?php if ($ROLE == ADMIN_ROLE) { ?>
<li><a target="_top" href="list-admin.php"><?php echo $LANG['Menu_list_admin']; ?></a></li>
<li><a target="_top" href="backup.php"><?php echo $LANG['Menu_backup']; ?></a></li>
<li><a target="_top" href="domain.php"><?php echo $LANG['Menu_add_domain']; ?></a></li>
<li><a target="_top" href="admin.php"><?php echo $LANG['Menu_add_admin']; ?></a></li>
2022-09-05 20:29:41 +02:00
<?php } else {?>
2022-09-04 11:38:47 +02:00
<li><a target="_top" href="sendmail.php"><?php echo $LANG['Menu_sendmail']; ?></a></li>
<li><a target="_top" href="password.php"><?php echo $LANG['Menu_password']; ?></a></li>
<?php } ?>
2022-09-05 20:29:41 +02:00
<li><a target="_top" href="add-alias.php<?php if (isset($domain)) echo '?domain=' . $domain; ?>"><?php echo $LANG['Menu_add_alias']; ?></a></li>
<li><a target="_top" href="add-mailbox.php<?php if (isset($domain)) echo '?domain=' . $domain; ?>"><?php echo $LANG['Menu_add_mailbox']; ?></a></li>
2022-09-04 11:38:47 +02:00
<li><a target="_top" href="viewlog.php"><?php echo $LANG['Menu_viewlog']; ?></a></li>
<li><a target="_top" href="logout.php"><?php echo $LANG['Menu_logout']; ?></a></li>
2022-08-18 14:01:52 +02:00
</ul>
</div>
<?php
if (file_exists(realpath("motd.txt"))) {
2022-09-05 20:29:41 +02:00
echo "<div id=\"motd\">";
2022-08-18 14:01:52 +02:00
include("motd.txt");
2022-09-04 11:38:47 +02:00
echo "</div>";
2022-08-18 14:01:52 +02:00
}
?>