X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fnewmail%2Ftestsound.php;h=a1af230032117d662b94dffba520865270fe77b1;hb=de3178dc1a5117827e254544c6f164dba653ad83;hp=d52b5ba5bbb0c2b6b012554f788d3e0d7c4dbe46;hpb=692ca6b773e1ec2de37435671b0da106327a7ff1;p=squirrelmail.git diff --git a/plugins/newmail/testsound.php b/plugins/newmail/testsound.php index d52b5ba5..a1af2300 100644 --- a/plugins/newmail/testsound.php +++ b/plugins/newmail/testsound.php @@ -3,30 +3,30 @@ /** * testsound.php * - * Copyright (c) 1999-2003 The SquirrelMail Project Team - * Licensed under the GNU GPL. For full terms see the file COPYING. - * - * $Id$ + * @copyright © 1999-2009 The SquirrelMail Project Team + * @license http://opensource.org/licenses/gpl-license.php GNU Public License + * @version $Id$ + * @package plugins + * @subpackage newmail */ -define('SM_PATH','../../'); - -/* SquirrelMail required files. */ -require_once(SM_PATH . 'include/validate.php'); -require_once(SM_PATH . 'functions/global.php'); -require_once(SM_PATH . 'functions/html.php'); +/** + * Path for SquirrelMail required files. + * @ignore + */ +require('../../include/init.php'); displayHtmlHeader( _("Test Sound"), '', FALSE ); -echo ''."\n"; +echo ''."\n"; if ( ! sqgetGlobalVar('sound', $sound, SQ_GET) ) { $sound = 'Click.wav'; } elseif ( $sound == '(none)' ) { - echo '


'. + echo '


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

'. - ''. - '
'. + ''. + ''. ''; return; } @@ -34,16 +34,16 @@ if ( ! sqgetGlobalVar('sound', $sound, SQ_GET) ) { echo html_tag( 'table', html_tag( 'tr', html_tag( 'td', - "". - '
'. - '' . _("Loading the sound...") . '
'. + newmail_create_media_tags($sound)."\n". + '
'. + '' . _("Loading the sound...") . '
'. '
'. ''. + ' " onclick="window.close()" />'. '
' , 'center' ) ) , 'center' ) . ''; -?> +?> \ No newline at end of file