6 * Copyright (c) 1999-2002 The SquirrelMail Project Team
7 * Licensed under the GNU GPL. For full terms see the file COPYING.
9 * Displays all options relating to new mail sounds
16 define('SM_PATH','../');
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');
26 $sound = str_replace('../plugins/newmail/', '', $sound);
27 $sound = str_replace('../', '', $sound);
28 $sound = str_replace("..\\", '', $sound);
30 displayHtmlHeader( _("Test Sound"), '', FALSE );
32 echo "<body bgcolor=\"$color[4]\" topmargin=0 leftmargin=0 rightmargin=0 marginwidth=0 marginheight=0>\n".
36 "<embed src=\"$sound\" hidden=true autostart=true>".
38 '<b>' . _("Loading the sound...") . '</b><br><br>'.
40 '<input type="button" name="close" value=" ' .
42 ' " onClick="window.close()">'.