phpdoc updates
[squirrelmail.git] / plugins / newmail / testsound.php
CommitLineData
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 15define('SM_PATH','../../');
d0dbdb14 16
8d6a115b 17/* SquirrelMail required files. */
18require_once(SM_PATH . 'include/validate.php');
692ca6b7 19require_once(SM_PATH . 'functions/global.php');
8d6a115b 20require_once(SM_PATH . 'functions/html.php');
d0dbdb14 21
692ca6b7 22displayHtmlHeader( _("Test Sound"), '', FALSE );
04f6008a 23
692ca6b7 24echo '<body bgcolor="'.$color[4].'" topmargin=0 leftmargin=0 rightmargin=0 marginwidth=0 marginheight=0>'."\n";
a9aa7ab7 25
692ca6b7 26if ( ! 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}
a9aa7ab7 36
692ca6b7 37echo html_tag( 'table',
38 html_tag( 'tr',
39 html_tag( 'td',
4cf43843 40 "<embed src=\"$sound\" hidden=true autostart=true>".
41 '<br>'.
692ca6b7 42 '<b>' . _("Loading the sound...") . '</b><br>'.
4cf43843 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>';
15e6162e 52?>