squirrelmail-webmail  1.4.22
About: SquirrelMail is a standards-based webmail package with strong MIME support, address books, and folder manipulation (written in PHP4).
  Fossies Dox: squirrelmail-webmail-1.4.22.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

newmail.php
Go to the documentation of this file.
1 <?php
2 
17 define('SM_PATH','../../');
18 
19 /* SquirrelMail required files. */
20 require_once(SM_PATH . 'include/validate.php');
21 require_once(SM_PATH . 'include/load_prefs.php');
22 require_once(SM_PATH . 'functions/page_header.php');
23 
24 sqGetGlobalVar('numnew', $numnew, SQ_GET);
26 
27  displayHtmlHeader( _("New Mail"), '', FALSE );
28 
29  echo '<body bgcolor="'.$color[4].'" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">'."\n".
30  '<center>'. "\n" .
31  html_tag( 'table', "\n" .
32  html_tag( 'tr', "\n" .
33  html_tag( 'td', '<b>' . _("SquirrelMail Notice:") . '</b>', 'center', $color[0] )
34  ) .
35  html_tag( 'tr', "\n" .
36  html_tag( 'td',
37  '<br /><big><font color="' . $color[2] . '">'.
38  sprintf( ( $numnew == 1 ?
39  _("You have %s new message") :
40  _("You have %s new messages") ), $numnew ) .
41  '</font><br /></big><br />' . "\n" .
42  '<form name="nm">' . "\n".
43  '<input type="button" name="bt" value="' . _("Close Window") .
44  '" onClick="javascript:window.close();" />'."\n".
45  '</form>',
46  'center' )
47  ) ,
48  '', '', 'width="100%" cellpadding="2" cellspacing="2" border="0"' ) .
49  '</center>' .
50  "<script language=javascript>\n".
51  "<!--\n".
52  "document.nm.bt.focus();\n".
53  "-->\n".
54  "</script>\n".
55  "</body></html>\n";
56 
57 ?>
html_tag
html_tag( $tag, $val='', $align='', $bgcolor='', $xtra='')
Definition: html.php:27
SM_PATH
const SM_PATH
Definition: newmail.php:17
sprintf
powered by Systran sprintf(_("Number of supported language pairs: %s"), '36').' '
Definition: options.php:107
SQ_GET
const SQ_GET
Definition: global.php:16
$numnew
$numnew
Definition: newmail.php:25
displayHtmlHeader
displayHtmlHeader( $title='SquirrelMail', $xtra='', $do_hook=TRUE)
Definition: page_header.php:21
_
_($str)
Definition: gettext.php:160
$color
$color
Definition: load_prefs.php:28