Fixing "broken" strings
[squirrelmail.git] / plugins / newmail / testsound.php
1 <?php
2
3 /**
4 * testsound.php
5 *
6 * Copyright (c) 1999-2004 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 */
15 define('SM_PATH','../../');
16
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');
21
22 displayHtmlHeader( _("Test Sound"), '', FALSE );
23
24 echo '<body bgcolor="'.$color[4].'" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">'."\n";
25
26 if ( ! sqgetGlobalVar('sound', $sound, SQ_GET) ) {
27 $sound = 'Click.wav';
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()" />'.
32 '</form></center>'.
33 '</body></html>';
34 return;
35 }
36
37 echo html_tag( 'table',
38 html_tag( 'tr',
39 html_tag( 'td',
40 '<embed src="'.htmlspecialchars($sound).'" hidden="true" autostart="true">'."\n".
41 '<br />'.
42 '<b>' . _("Loading the sound...") . '</b><br />'.
43 '<form>'.
44 '<input type="button" name="close" value=" ' .
45 _("Close") .
46 ' " onClick="window.close()" />'.
47 '</form>' ,
48 'center' )
49 ) ,
50 'center' ) .
51 '</body></html>';
52 ?>