projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Recommitting string fix.
[squirrelmail.git]
/
plugins
/
newmail
/
newmail.php
diff --git
a/plugins/newmail/newmail.php
b/plugins/newmail/newmail.php
index ab4f1062b0c8d5e57b9074147b4a598007c51927..14906e3f9542237ca5162a7061611594f0f7d7c5 100644
(file)
--- a/
plugins/newmail/newmail.php
+++ b/
plugins/newmail/newmail.php
@@
-1,32
+1,34
@@
<?php
<?php
+
/**
* newmail.php - popup page
*
/**
* newmail.php - popup page
*
- * Copyright (c) 1999-2004 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
* Displays all options relating to new mail sounds
*
* Displays all options relating to new mail sounds
*
+ * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
* @subpackage newmail
*/
* @version $Id$
* @package plugins
* @subpackage newmail
*/
-/**
@ignore */
-define('SM_PATH','../../');
-
-
/* SquirrelMail required files.
*/
-require
_once(SM_PATH . 'include/validate
.php');
+/**
+ * Path for SquirrelMail required files.
+ * @ignore
+ */
+require
('../../include/init
.php');
sqGetGlobalVar('numnew', $numnew, SQ_GET);
sqGetGlobalVar('numnew', $numnew, SQ_GET);
+$numnew = (int)$numnew;
displayHtmlHeader( _("New Mail"), '', FALSE );
echo '<body bgcolor="'.$color[4].'" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">'."\n".
displayHtmlHeader( _("New Mail"), '', FALSE );
echo '<body bgcolor="'.$color[4].'" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">'."\n".
- '<
center
>'. "\n" .
+ '<
div style="text-align: center;"
>'. "\n" .
html_tag( 'table', "\n" .
html_tag( 'tr', "\n" .
html_tag( 'table', "\n" .
html_tag( 'tr', "\n" .
- html_tag( 'td', '<b>' . _("SquirrelMail Notice:") . '</b>', 'center', $color[0] )
+ // i18n: %s inserts the organisation name (typically SquirrelMail)
+ html_tag( 'td', '<b>' . sprintf(_("%s notice:"), $org_name) . '</b>', 'center', $color[0] )
) .
html_tag( 'tr', "\n" .
html_tag( 'td',
) .
html_tag( 'tr', "\n" .
html_tag( 'td',
@@
-40,8
+42,8
@@
sqGetGlobalVar('numnew', $numnew, SQ_GET);
'center' )
) ,
'', '', 'width="100%" cellpadding="2" cellspacing="2" border="0"' ) .
'center' )
) ,
'', '', 'width="100%" cellpadding="2" cellspacing="2" border="0"' ) .
- '</
center
>' .
- "<script
language=javascript
>\n".
+ '</
div
>' .
+ "<script
type=\"text/javascript\"
>\n".
"<!--\n".
"document.nm.bt.focus();\n".
"-->\n".
"<!--\n".
"document.nm.bt.focus();\n".
"-->\n".