removing functions from setup.php
[squirrelmail.git] / plugins / newmail / testsound.php
CommitLineData
4508b1b6 1<?php
2d4c15d6 2
15e6162e 3/**
4 * testsound.php
5 *
6c84ba1e 6 * Copyright (c) 1999-2005 The SquirrelMail Project Team
91e0dccc 7 * Licensed under the GNU GPL. For full terms see the file COPYING.
15e6162e 8 *
4f51df66 9 * @version $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');
d0dbdb14 19
692ca6b7 20displayHtmlHeader( _("Test Sound"), '', FALSE );
04f6008a 21
6fd95361 22echo '<body bgcolor="'.$color[4].'" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">'."\n";
a9aa7ab7 23
692ca6b7 24if ( ! sqgetGlobalVar('sound', $sound, SQ_GET) ) {
25 $sound = 'Click.wav';
26} elseif ( $sound == '(none)' ) {
27 echo '<center><form><br /><br />'.
28 '<b>' . _("No sound specified") . '</b><br /><br />'.
c435f076 29 '<input type="button" name="close" value="' . _("Close") . '" onclick="window.close()" />'.
692ca6b7 30 '</form></center>'.
31 '</body></html>';
32 return;
33}
a9aa7ab7 34
692ca6b7 35echo html_tag( 'table',
36 html_tag( 'tr',
37 html_tag( 'td',
dbc7cd0a 38 newmail_create_media_tags($sound)."\n".
6fd95361 39 '<br />'.
40 '<b>' . _("Loading the sound...") . '</b><br />'.
4cf43843 41 '<form>'.
42 '<input type="button" name="close" value=" ' .
43 _("Close") .
c435f076 44 ' " onclick="window.close()" />'.
4cf43843 45 '</form>' ,
46 'center' )
47 ) ,
48 'center' ) .
49 '</body></html>';
91e0dccc 50?>