Getting ready for 1.4.0 RC1
[squirrelmail.git] / plugins / newmail / testsound.php
CommitLineData
4508b1b6 1<?php
2d4c15d6 2
15e6162e 3/**
4 * testsound.php
5 *
76911253 6 * Copyright (c) 1999-2003 The SquirrelMail Project Team
15e6162e 7 * Licensed under the GNU GPL. For full terms see the file COPYING.
8 *
15e6162e 9 * $Id$
10 */
2d4c15d6 11
8d6a115b 12define('SM_PATH','../../');
d0dbdb14 13
8d6a115b 14/* SquirrelMail required files. */
15require_once(SM_PATH . 'include/validate.php');
16require_once(SM_PATH . 'functions/html.php');
d0dbdb14 17
04f6008a 18if (!isset($_GET['sound'])) {
19 $sound = 'Click.wav';
20} else {
21 $sound = $_GET['sound'];
22}
23
8d6a115b 24$sound = str_replace('../plugins/newmail/', '', $sound);
25$sound = str_replace('../', '', $sound);
26$sound = str_replace("..\\", '', $sound);
a9aa7ab7 27
28 displayHtmlHeader( _("Test Sound"), '', FALSE );
29
4cf43843 30 echo "<body bgcolor=\"$color[4]\" topmargin=0 leftmargin=0 rightmargin=0 marginwidth=0 marginheight=0>\n".
31 html_tag( 'table',
32 html_tag( 'tr',
33 html_tag( 'td',
34 "<embed src=\"$sound\" hidden=true autostart=true>".
35 '<br>'.
36 '<b>' . _("Loading the sound...") . '</b><br><br>'.
37 '<form>'.
38 '<input type="button" name="close" value=" ' .
39 _("Close") .
40 ' " onClick="window.close()">'.
41 '</form>' ,
42 'center' )
43 ) ,
44 'center' ) .
45 '</body></html>';
a9aa7ab7 46
15e6162e 47?>