X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fnewmail%2Ftestsound.php;h=d8d5ac7ef0c49cf43984e4813e757dfea7e79bc6;hp=1ae75739c6dfbbd8ab5aa97d2d0dd6901b0b48f8;hb=5d55011bdf7fe06a1f88c5502f44a4f5a245b4cb;hpb=a9aa7ab752b604cd0682b5eb45bc7bad9cb2919f diff --git a/plugins/newmail/testsound.php b/plugins/newmail/testsound.php index 1ae75739..d8d5ac7e 100644 --- a/plugins/newmail/testsound.php +++ b/plugins/newmail/testsound.php @@ -1,39 +1,49 @@ \n". - '
'. - "". - '
'. - '' . _("Loading the sound...") . '

'. - '
'. - ''. - '
'. - '
'. - ''; +echo ''."\n"; +if ( ! sqgetGlobalVar('sound', $sound, SQ_GET) ) { + $sound = 'Click.wav'; +} 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