6 * Copyright (c) 1999-2004 The SquirrelMail Project Team
7 * Licensed under the GNU GPL. For full terms see the file COPYING.
15 define('SM_PATH','../../');
17 /* SquirrelMail required files. */
18 require_once(SM_PATH
. 'include/validate.php');
19 require_once(SM_PATH
. 'functions/global.php');
20 require_once(SM_PATH
. 'functions/html.php');
22 displayHtmlHeader( _("Test Sound"), '', FALSE );
24 echo '<body bgcolor="'.$color[4].'" topmargin=0 leftmargin=0 rightmargin=0 marginwidth=0 marginheight=0>'."\n";
26 if ( ! sqgetGlobalVar('sound', $sound, SQ_GET
) ) {
28 } elseif ( $sound == '(none)' ) {
29 echo '<center><form><br /><br />'.
30 '<b>' . _("No sound specified") . '</b><br /><br />'.
31 '<input type="button" name="close" value="' . _("Close") . '" onClick="window.close()">'.
37 echo html_tag( 'table',
40 '<embed src="'.htmlspecialchars($sound)."\" hidden=\"true\" autostart=\"true\">\n".
42 '<b>' . _("Loading the sound...") . '</b><br>'.
44 '<input type="button" name="close" value=" ' .
46 ' " onClick="window.close()">'.