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