Fixed typo.
[squirrelmail.git] / plugins / newmail / testsound.php
... / ...
CommitLineData
1<?php
2
3/**
4 * testsound.php
5 *
6 * Copyright (c) 1999-2005 The SquirrelMail Project Team
7 * Licensed under the GNU GPL. For full terms see the file COPYING.
8 *
9 * $Id$
10 * @package plugins
11 * @subpackage newmail
12 */
13
14/** @ignore */
15define('SM_PATH','../../');
16
17/* SquirrelMail required files. */
18require_once(SM_PATH . 'include/validate.php');
19
20displayHtmlHeader( _("Test Sound"), '', FALSE );
21
22echo '<body bgcolor="'.$color[4].'" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">'."\n";
23
24if ( ! 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 />'.
29 '<input type="button" name="close" value="' . _("Close") . '" onclick="window.close()" />'.
30 '</form></center>'.
31 '</body></html>';
32 return;
33}
34
35echo html_tag( 'table',
36 html_tag( 'tr',
37 html_tag( 'td',
38 '<embed src="'.htmlspecialchars($sound).'" hidden="true" autostart="true" width="2" height="2">'."\n".
39 '<br />'.
40 '<b>' . _("Loading the sound...") . '</b><br />'.
41 '<form>'.
42 '<input type="button" name="close" value=" ' .
43 _("Close") .
44 ' " onclick="window.close()" />'.
45 '</form>' ,
46 'center' )
47 ) ,
48 'center' ) .
49 '</body></html>';
50?>