Officialization step 1
[squirrelmail.git] / plugins / newmail / testsound.php
CommitLineData
4508b1b6 1<?php
2d4c15d6 2
3 /**
4 ** testsound.php
5 ** Copyright (c) 1999-2001 The Squirrelmail Development 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 **/
13
14 chdir ("../");
15 require_once('../src/validate.php');
16 require_once("../src/load_prefs.php");
4508b1b6 17 if (!isset($sound)) {
2d4c15d6 18 $sound = "Click.wav";
4508b1b6 19 }
20 $sound = str_replace("../plugins/newmail/", "", $sound);
21 $sound = str_replace("../", "", $sound);
22 $sound = str_replace("..\\", "", $sound);
23?>
24<HTML>
25<TITLE>Test Sound</TITLE>
26<BODY bgcolor=<?php echo $color[4] ?> topmargin=0 leftmargin=0
27rightmargin=0 marginwidth=0 marginheight=0>
28<CENTER>
29<embed src="<?php echo $sound ?>" hidden=true autostart=true>
30<br>
31<font face="Veranda, Arial Helvetica, sans-serif" size="2" </font>
32<b>Loading the sound...</b><br><br>
33<form>
34<input type="button" name="close" value=" Close " onClick="window.close()">
35</form>
36</CENTER>
37</BODY></HTML>