X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fnewmail%2Ftestsound.php;h=0640407e12586e5f6b9892aaa928eac2ec087ce4;hp=97b52db154df3b8b187d6a72f4dcf774b60f6fae;hb=aa1340ebb1e775a36b74dbfc22391ee095d45394;hpb=4508b1b66315ee51effe1b62ca44152319c555d2 diff --git a/plugins/newmail/testsound.php b/plugins/newmail/testsound.php index 97b52db1..0640407e 100644 --- a/plugins/newmail/testsound.php +++ b/plugins/newmail/testsound.php @@ -1,25 +1,49 @@ '."\n"; + +if ( ! sqgetGlobalVar('sound', $sound, SQ_GET) ) { $sound = 'Click.wav'; - } - $sound = str_replace("../plugins/newmail/", "", $sound); - $sound = str_replace("../", "", $sound); - $sound = str_replace("..\\", "", $sound); -?> - -Test Sound - topmargin=0 leftmargin=0 -rightmargin=0 marginwidth=0 marginheight=0> -
- -
- -Loading the sound...

-
- -
-
- +} elseif ( $sound == '(none)' ) { + echo '


'. + '' . _("No sound specified") . '

'. + ''. + '
'. + ''; + return; +} + +echo html_tag( 'table', + html_tag( 'tr', + html_tag( 'td', + newmail_create_media_tags($sound)."\n". + '
'. + '' . _("Loading the sound...") . '
'. + '
'. + ''. + '
' , + 'center' ) + ) , + 'center' ) . + ''; +?> \ No newline at end of file