6 * Copyright (c) 1999-2002 The SquirrelMail Project Team
7 * Licensed under the GNU GPL. For full terms see the file COPYING.
12 define('SM_PATH','../../');
14 /* SquirrelMail required files. */
15 require_once(SM_PATH
. 'include/validate.php');
16 require_once(SM_PATH
. 'functions/html.php');
18 if (!isset($_GET['sound'])) {
21 $sound = $_GET['sound'];
24 $sound = str_replace('../plugins/newmail/', '', $sound);
25 $sound = str_replace('../', '', $sound);
26 $sound = str_replace("..\\", '', $sound);
28 displayHtmlHeader( _("Test Sound"), '', FALSE );
30 echo "<body bgcolor=\"$color[4]\" topmargin=0 leftmargin=0 rightmargin=0 marginwidth=0 marginheight=0>\n".
34 "<embed src=\"$sound\" hidden=true autostart=true>".
36 '<b>' . _("Loading the sound...") . '</b><br><br>'.
38 '<input type="button" name="close" value=" ' .
40 ' " onClick="window.close()">'.