1) Corrected errors with relative paths that prevented sounds from
[squirrelmail.git] / plugins / newmail / testsound.php
CommitLineData
4508b1b6 1<?php
2d4c15d6 2
15e6162e 3/**
4 * testsound.php
5 *
76911253 6 * Copyright (c) 1999-2003 The SquirrelMail Project Team
15e6162e 7 * Licensed under the GNU GPL. For full terms see the file COPYING.
8 *
15e6162e 9 * $Id$
10 */
2d4c15d6 11
8d6a115b 12define('SM_PATH','../../');
d0dbdb14 13
8d6a115b 14/* SquirrelMail required files. */
15require_once(SM_PATH . 'include/validate.php');
692ca6b7 16require_once(SM_PATH . 'functions/global.php');
8d6a115b 17require_once(SM_PATH . 'functions/html.php');
d0dbdb14 18
692ca6b7 19displayHtmlHeader( _("Test Sound"), '', FALSE );
04f6008a 20
692ca6b7 21echo '<body bgcolor="'.$color[4].'" topmargin=0 leftmargin=0 rightmargin=0 marginwidth=0 marginheight=0>'."\n";
a9aa7ab7 22
692ca6b7 23if ( ! sqgetGlobalVar('sound', $sound, SQ_GET) ) {
24 $sound = 'Click.wav';
25} elseif ( $sound == '(none)' ) {
26 echo '<center><form><br /><br />'.
27 '<b>' . _("No sound specified") . '</b><br /><br />'.
28 '<input type="button" name="close" value="' . _("Close") . '" onClick="window.close()">'.
29 '</form></center>'.
30 '</body></html>';
31 return;
32}
a9aa7ab7 33
692ca6b7 34echo html_tag( 'table',
35 html_tag( 'tr',
36 html_tag( 'td',
4cf43843 37 "<embed src=\"$sound\" hidden=true autostart=true>".
38 '<br>'.
692ca6b7 39 '<b>' . _("Loading the sound...") . '</b><br>'.
4cf43843 40 '<form>'.
41 '<input type="button" name="close" value=" ' .
42 _("Close") .
43 ' " onClick="window.close()">'.
44 '</form>' ,
45 'center' )
46 ) ,
47 'center' ) .
48 '</body></html>';
15e6162e 49?>