nocc_webmail/webmail/html/menu_prefs.php
2022-01-03 15:03:38 +01:00

43 lines
1.8 KiB
PHP

<!-- start of $Id: menu_prefs.php 2713 2017-09-06 12:34:03Z oheil $ -->
<?php
if (!isset($conf->loaded))
die('Hacking attempt');
?>
<div class="mainmenu">
<ul>
<?php if( $user_prefs->getUseInboxFolder() ) { ?>
<li><a href="action.php?<?php echo NOCC_Session::getUrlGetSession(); ?>"><?php echo convertLang2Html($html_back); ?></a></li>
<?php } ?>
<li>
<?php
$jumpInbox="";
if(
$user_prefs->getUseInboxFolder()
&& strlen($user_prefs->getInboxFolderName())>0
) {
$jumpInbox="&folder=".$user_prefs->getInboxFolderName();
}
?>
<a href="action.php?<?php echo NOCC_Session::getUrlGetSession().$jumpInbox;?>"><?php echo convertLang2Html($html_inbox); ?><span class="inbox_changed" style="display:none;color:darkred;">!</span></a>
</li>
<li>
<a href="action.php?<?php echo NOCC_Session::getUrlGetSession();?>&action=write"><?php echo convertLang2Html($html_new_msg) ?></a>
</li>
<?php if ($_SESSION['is_imap']) { ?>
<li>
<a href="action.php?<?php echo NOCC_Session::getUrlGetSession();?>&action=managefolders" title="<?php echo convertLang2Html($html_manage_folders_link); ?>"><?php echo convertLang2Html($html_folders); ?></a>
</li>
<?php } ?>
<?php if ($conf->prefs_dir && isset($conf->contact_number_max) && $conf->contact_number_max != 0 ) { ?>
<li>
<a href="javascript:void(0);" onclick="window.open('contacts_manager.php?<?php echo NOCC_Session::getUrlGetSession();?>&<?php echo NOCC_Session::getUrlQuery(); ?>','','scrollbars=yes,resizable=yes,width=900,height=400')"><?php echo i18n_message($html_contacts, '') ?></a>
</li>
<?php } ?>
<li class="selected">
<span><?php echo convertLang2Html($html_preferences) ?></span>
</li>
</ul>
</div>
<!-- end of $Id: menu_prefs.php 2713 2017-09-06 12:34:03Z oheil $ -->