fsf changes, meant to be rebased on upstream
[squirrelmail.git] / plugins / newmail / testsound.php
1 <?php
2
3 /**
4 * testsound.php
5 *
6 * @copyright 1999-2021 The SquirrelMail Project Team
7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
8 * @version $Id$
9 * @package plugins
10 * @subpackage newmail
11 */
12
13 /**
14 * Path for SquirrelMail required files.
15 * @ignore
16 */
17 require('../../include/init.php');
18
19 displayHtmlHeader( _("Test Sound"), '', FALSE );
20
21 echo '<body bgcolor="'.$color[4].'" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">'."\n";
22
23 if ( ! sqgetGlobalVar('sound', $sound, SQ_GET) ) {
24 $sound = 'Click.wav';
25 } elseif ( $sound == '(none)' ) {
26 echo '<div style="text-align: 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></div>'.
30 '</body></html>';
31 return;
32 }
33
34 echo html_tag( 'table',
35 html_tag( 'tr',
36 html_tag( 'td',
37 newmail_create_media_tags($sound)."\n".
38 '<br />'.
39 '<b>' . _("Loading the sound...") . '</b><br />'.
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>';
49 ?>