Source for file newmail.php

Documentation is available at newmail.php

  1. <?php
  2.  
  3. /**
  4.  * newmail.php
  5.  *
  6.  * Copyright (c) 1999-2018 The SquirrelMail Project Team
  7.  * Licensed under the GNU GPL. For full terms see the file COPYING.
  8.  *
  9.  * Displays all options relating to new mail sounds
  10.  *
  11.  * $Id: newmail.php 14749 2018-01-16 23:36:07Z pdontthink $
  12.  * @package plugins
  13.  * @subpackage newmail
  14.  */
  15.  
  16. /** @ignore */
  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'$numnewSQ_GET);
  25. $numnew = (int)$numnew;
  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 == ?
  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. ?>

Documentation generated on Tue, 17 Apr 2018 04:26:31 +0200 by phpDocumentor 1.4.3