testsound.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * testsound.php
  4. *
  5. * Copyright (c) 1999-2002 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$
  11. */
  12. chdir ("../");
  13. require_once('../src/validate.php');
  14. require_once('../functions/html.php');
  15. require_once("../src/load_prefs.php");
  16. if (!isset($sound)) {
  17. $sound = "Click.wav";
  18. }
  19. $sound = str_replace('../plugins/newmail/', '', $sound);
  20. $sound = str_replace('../', '', $sound);
  21. $sound = str_replace("..\\", '', $sound);
  22. displayHtmlHeader( _("Test Sound"), '', FALSE );
  23. echo "<body bgcolor=\"$color[4]\" topmargin=0 leftmargin=0 rightmargin=0 marginwidth=0 marginheight=0>\n".
  24. html_tag( 'table',
  25. html_tag( 'tr',
  26. html_tag( 'td',
  27. "<embed src=\"$sound\" hidden=true autostart=true>".
  28. '<br>'.
  29. '<b>' . _("Loading the sound...") . '</b><br><br>'.
  30. '<form>'.
  31. '<input type="button" name="close" value=" ' .
  32. _("Close") .
  33. ' " onClick="window.close()">'.
  34. '</form>' ,
  35. 'center' )
  36. ) ,
  37. 'center' ) .
  38. '</body></html>';
  39. ?>