Source for file newmail.php
Documentation is available at newmail.php
* newmail.php - popup page
* Displays all options relating to new mail sounds
* @copyright 1999-2020 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: newmail.php 14845 2020-01-07 08:09:34Z pdontthink $
* Path for SquirrelMail required files.
require
('../../include/init.php');
* Make sure plugin is activated!
/** load default config */
include_once(SM_PATH .
'plugins/newmail/config_default.php');
include_once(SM_PATH .
'config/newmail_config.php');
include_once(SM_PATH .
'plugins/newmail/config.php');
sqGetGlobalVar('numnew', $numnew, SQ_GET);
global $username, $org_title,
$newmail_popup_title_bar_singular, $newmail_popup_title_bar_plural;
// make sure default strings are in pot file
$singular_title =
"New Mail";
$plural_title =
"New Mail";
if (!empty($newmail_popup_title_bar_singular))
$singular_title =
$newmail_popup_title_bar_singular;
if (!empty($newmail_popup_title_bar_plural))
$plural_title =
$newmail_popup_title_bar_plural;
list
($singular_title, $plural_title) =
str_replace(array('###USERNAME###', '###ORG_TITLE###'), array($username, $org_title), array($singular_title, $plural_title));
$title =
sprintf(ngettext($singular_title, $plural_title, $numnew), $numnew);
echo
'<body bgcolor="'.
$color[4].
'" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">'.
"\n".
'<div style="text-align: center;">'.
"\n" .
// i18n: %s inserts the organisation name (typically SquirrelMail)
html_tag( 'td', '<b>' .
sprintf(_("%s notice:"), $org_name) .
'</b>', 'center', $color[0] )
'<br /><big><font color="' .
$color[2] .
'">'.
sprintf(ngettext("You have %s new message","You have %s new messages",$numnew), $numnew ) .
'</font><br /></big><br />' .
"\n" .
'<form name="nm">' .
"\n".
'<input type="button" name="bt" value="' .
_("Close Window") .
'" onclick="javascript:window.close();" />'.
"\n".
'', '', 'width="100%" cellpadding="2" cellspacing="2" border="0"' ) .
"<script type=\"text/javascript\">\n".
"document.nm.bt.focus();\n".
Documentation generated on Mon, 13 Jan 2020 04:23:11 +0100 by phpDocumentor 1.4.3