X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fnewmail%2Ftestsound.php;h=a1af230032117d662b94dffba520865270fe77b1;hb=66783e5581450bcbd507d8b0d169ea0140f1b220;hp=07f8a09799cdb410f5d7637480b92c84bb887d83;hpb=ea5f4b8eaf805c4cc4e9533e87d057300a7fe666;p=squirrelmail.git diff --git a/plugins/newmail/testsound.php b/plugins/newmail/testsound.php index 07f8a097..a1af2300 100644 --- a/plugins/newmail/testsound.php +++ b/plugins/newmail/testsound.php @@ -3,33 +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 */ -/** @ignore */ -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; } @@ -37,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