X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fnewmail%2Ftestsound.php;h=020ee9a701eef0bad74bd0e47b36e8f31641194a;hp=7fd03c7b4a236f9e8a794c06cc4a3e349d0a4997;hb=353d074afac6827c90f4bb03e846c5e453d3b5b1;hpb=82d304a0501324b276cabab1870755d5352bd21c diff --git a/plugins/newmail/testsound.php b/plugins/newmail/testsound.php index 7fd03c7b..020ee9a7 100644 --- a/plugins/newmail/testsound.php +++ b/plugins/newmail/testsound.php @@ -3,33 +3,30 @@ /** * testsound.php * - * Copyright (c) 1999-2004 The SquirrelMail Project Team - * Licensed under the GNU GPL. For full terms see the file COPYING. - * - * $Id$ + * @copyright 1999-2018 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