update mailbox cache if new folders are created (first time login when
[squirrelmail.git] / plugins / newmail / testsound.php
CommitLineData
4508b1b6 1<?php
2d4c15d6 2
15e6162e 3/**
4 * testsound.php
5 *
47ccfad4 6 * @copyright &copy; 1999-2006 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
ea5f4b8e 13/** @ignore */
8d6a115b 14define('SM_PATH','../../');
d0dbdb14 15
8d6a115b 16/* SquirrelMail required files. */
17require_once(SM_PATH . 'include/validate.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)' ) {
26 echo '<center><form><br /><br />'.
27 '<b>' . _("No sound specified") . '</b><br /><br />'.
c435f076 28 '<input type="button" name="close" value="' . _("Close") . '" onclick="window.close()" />'.
692ca6b7 29 '</form></center>'.
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?>