testsound.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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("../src/load_prefs.php");
  15. if (!isset($sound)) {
  16. $sound = "Click.wav";
  17. }
  18. $sound = str_replace('../plugins/newmail/', '', $sound);
  19. $sound = str_replace('../', '', $sound);
  20. $sound = str_replace("..\\", '', $sound);
  21. displayHtmlHeader( _("Test Sound"), '', FALSE );
  22. echo "<BODY bgcolor=\"$color[4]\" topmargin=0 leftmargin=0 rightmargin=0 marginwidth=0 marginheight=0>\n".
  23. '<CENTER>'.
  24. "<embed src=\"$sound\" hidden=true autostart=true>".
  25. '<br>'.
  26. '<b>' . _("Loading the sound...") . '</b><br><br>'.
  27. '<form>'.
  28. '<input type="button" name="close" value=" ' .
  29. _("Close") .
  30. ' " onClick="window.close()">'.
  31. '</form>'.
  32. '</CENTER>'.
  33. '</BODY></HTML>';
  34. ?>