Source for file newmail.php

Documentation is available at newmail.php

  1. <?php
  2. /**
  3. * newmail.php
  4. *
  5. * Copyright (c) 1999-2020 The SquirrelMail Project Team
  6. * Licensed under the GNU GPL. For full terms see the file COPYING.
  7. *
  8. * Displays all options relating to new mail sounds
  9. *
  10. * $Id: newmail.php 14840 2020年01月07日 07:42:38Z pdontthink $
  11. * @package plugins
  12. * @subpackage newmail
  13. */
  14. /** @ignore */
  15. define ('SM_PATH','../../');
  16. /* SquirrelMail required files. */
  17. require_once(SM_PATH . 'include/validate.php');
  18. require_once(SM_PATH . 'include/load_prefs.php');
  19. require_once(SM_PATH . 'functions/page_header.php');
  20. sqGetGlobalVar('numnew', $numnew, SQ_GET );
  21. $numnew = (int)$numnew;
  22. displayHtmlHeader ( _ ("New Mail"), '', FALSE );
  23. echo '<body bgcolor="'.$color[4].'" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">'."\n".
  24. '<center>'. "\n" .
  25. html_tag ( 'table', "\n" .
  26. html_tag ( 'tr', "\n" .
  27. html_tag ( 'td', '<b>' . _ ("SquirrelMail Notice:") . '</b>', 'center', $color[0] )
  28. ) .
  29. html_tag ( 'tr', "\n" .
  30. html_tag ( 'td',
  31. '<br /><big><font color="' . $color[2] . '">'.
  32. sprintf ( ( $numnew == 1 ?
  33. _ ("You have %s new message") :
  34. _ ("You have %s new messages") ), $numnew ) .
  35. '</font><br /></big><br />' . "\n" .
  36. '<form name="nm">' . "\n".
  37. '<input type="button" name="bt" value="' . _ ("Close Window") .
  38. '" onClick="javascript:window.close();" />'."\n".
  39. '</form>',
  40. 'center' )
  41. ) ,
  42. '', '', 'width="100%" cellpadding="2" cellspacing="2" border="0"' ) .
  43. '</center>' .
  44. "<script language=javascript>\n".
  45. "<!--\n".
  46. "document.nm.bt.focus();\n".
  47. "-->\n".
  48. "</script>\n".
  49. "</body></html>\n";
  50. ?>

Documentation generated on 2020年1月13日 04:25:01 +0100 by phpDocumentor 1.4.3

AltStyle によって変換されたページ (->オリジナル) /