opensmtpdadmin/templates/menu.tpl

34 lines
1.8 KiB
Smarty
Raw Normal View History

2022-08-18 14:01:52 +02:00
<div id="menu">
<ul>
2022-09-06 10:32:25 +02:00
<?php if (count($list_domains) == 0) { ?>
<li><a target="_top" href="password.php"><?php echo $LANG['Menu_user_password']; ?></a></li>
<?php if (VACATION == "YES") { ?>
<li><a target="_top" href="vacation.php"><?php echo $LANG['Menu_user_vacation']; ?></a></li>
<?php } ?>
2022-09-05 20:29:41 +02:00
<?php } else {?>
2022-09-06 10:32:25 +02:00
<li><a target="_top" href="list-domain.php"><?php echo $LANG['Menu_list_domain']; ?></a></li>
2022-09-06 16:33:25 +02:00
<li><a target="_top" href="list-virtual.php<?php if (isset($domain)) echo '?domain=' . $domain; ?>"><?php echo $LANG['Menu_list_virtual']; ?></a></li>
2022-09-06 10:32:25 +02:00
<?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>
<?php } else {?>
<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 } ?>
<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-06 16:31:27 +02:00
<li><a target="_top" href="viewlog.php<?php if (isset($domain)) echo '?domain=' . $domain; ?>"><?php echo $LANG['Menu_viewlog']; ?></a></li>
<?php } ?>
2022-09-04 11:38:47 +02:00
<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-06 14:47:12 +02:00
echo '<div id="motd">';
include 'motd.txt';
echo '</div>';
2022-08-18 14:01:52 +02:00
}
?>