Add ability to control the display of the "Check Spelling" button. Allows administrat...
[squirrelmail.git] / plugins / newmail / testsound.php
CommitLineData
4508b1b6 1<?php
2d4c15d6 2
15e6162e 3/**
4 * testsound.php
5 *
22387c8d 6 * @copyright 1999-2017 The SquirrelMail Project Team
4b4abf93 7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
4f51df66 8 * @version $Id$
ea5f4b8e 9 * @package plugins
10 * @subpackage newmail
15e6162e 11 */
2d4c15d6 12
202bcbcc 13/**
14 * Path for SquirrelMail required files.
15 * @ignore
16 */
17require('../../include/init.php');
d0dbdb14 18
692ca6b7 19displayHtmlHeader( _("Test Sound"), '', FALSE );
04f6008a 20
6fd95361 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)' ) {
f265009a 26 echo '<div style="text-align: center;"><form><br /><br />'.
692ca6b7 27 '<b>' . _("No sound specified") . '</b><br /><br />'.
c435f076 28 '<input type="button" name="close" value="' . _("Close") . '" onclick="window.close()" />'.
f265009a 29 '</form></div>'.
692ca6b7 30 '</body></html>';
31 return;
32}
a9aa7ab7 33
692ca6b7 34echo html_tag( 'table',
35 html_tag( 'tr',
36 html_tag( 'td',
dbc7cd0a 37 newmail_create_media_tags($sound)."\n".
6fd95361 38 '<br />'.
39 '<b>' . _("Loading the sound...") . '</b><br />'.
4cf43843 40 '<form>'.
41 '<input type="button" name="close" value=" ' .
42 _("Close") .
c435f076 43 ' " onclick="window.close()" />'.
4cf43843 44 '</form>' ,
45 'center' )
46 ) ,
47 'center' ) .
48 '</body></html>';
91e0dccc 49?>