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