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