Argg
[squirrelmail.git] / plugins / newmail / testsound.php
CommitLineData
4508b1b6 1<?php
2d4c15d6 2
15e6162e 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 */
2d4c15d6 13
4acc7aab 14 chdir('../');
d0dbdb14 15 define('SM_PATH','../');
16
17 /* SquirrelMail required files. */
18 require_once(SM_PATH . 'include/validate.php');
19 require_once(SM_PATH . 'functions/html.php');
20 require_once(SM_PATH . 'src/load_prefs.php');
21
4508b1b6 22 if (!isset($sound)) {
2d4c15d6 23 $sound = "Click.wav";
4508b1b6 24 }
a9aa7ab7 25 $sound = str_replace('../plugins/newmail/', '', $sound);
26 $sound = str_replace('../', '', $sound);
27 $sound = str_replace("..\\", '', $sound);
28
29 displayHtmlHeader( _("Test Sound"), '', FALSE );
30
4cf43843 31 echo "<body bgcolor=\"$color[4]\" topmargin=0 leftmargin=0 rightmargin=0 marginwidth=0 marginheight=0>\n".
32 html_tag( 'table',
33 html_tag( 'tr',
34 html_tag( 'td',
35 "<embed src=\"$sound\" hidden=true autostart=true>".
36 '<br>'.
37 '<b>' . _("Loading the sound...") . '</b><br><br>'.
38 '<form>'.
39 '<input type="button" name="close" value=" ' .
40 _("Close") .
41 ' " onClick="window.close()">'.
42 '</form>' ,
43 'center' )
44 ) ,
45 'center' ) .
46 '</body></html>';
a9aa7ab7 47
15e6162e 48?>