| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * testsound.php |
| 5 | * |
| 6 | * Copyright (c) 1999-2005 The SquirrelMail Project Team |
| 7 | * Licensed under the GNU GPL. For full terms see the file COPYING. |
| 8 | * |
| 9 | * $Id$ |
| 10 | * @package plugins |
| 11 | * @subpackage newmail |
| 12 | */ |
| 13 | |
| 14 | /** @ignore */ |
| 15 | define('SM_PATH','../../'); |
| 16 | |
| 17 | /* SquirrelMail required files. */ |
| 18 | require_once(SM_PATH . 'include/validate.php'); |
| 19 | |
| 20 | displayHtmlHeader( _("Test Sound"), '', FALSE ); |
| 21 | |
| 22 | echo '<body bgcolor="'.$color[4].'" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">'."\n"; |
| 23 | |
| 24 | if ( ! 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 />'. |
| 29 | '<input type="button" name="close" value="' . _("Close") . '" onclick="window.close()" />'. |
| 30 | '</form></center>'. |
| 31 | '</body></html>'; |
| 32 | return; |
| 33 | } |
| 34 | |
| 35 | echo html_tag( 'table', |
| 36 | html_tag( 'tr', |
| 37 | html_tag( 'td', |
| 38 | newmail_create_media_tags($sound)."\n". |
| 39 | '<br />'. |
| 40 | '<b>' . _("Loading the sound...") . '</b><br />'. |
| 41 | '<form>'. |
| 42 | '<input type="button" name="close" value=" ' . |
| 43 | _("Close") . |
| 44 | ' " onclick="window.close()" />'. |
| 45 | '</form>' , |
| 46 | 'center' ) |
| 47 | ) , |
| 48 | 'center' ) . |
| 49 | '</body></html>'; |
| 50 | ?> |