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