X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fnewmail%2Ftestsound.php;h=f8ddde9d432fe4ef40a9d08b00e93601992a3197;hp=e8d1dcb4d479929a886bdcfe89765e20f0e75fc8;hb=d0dbdb1441f83386e2284e99ab0f4e14db8d218f;hpb=15e6162eacc97158393bc75aed3afeb7b19c24a6 diff --git a/plugins/newmail/testsound.php b/plugins/newmail/testsound.php index e8d1dcb4..f8ddde9d 100644 --- a/plugins/newmail/testsound.php +++ b/plugins/newmail/testsound.php @@ -12,8 +12,14 @@ */ chdir ("../"); - require_once('../src/validate.php'); - require_once("../src/load_prefs.php"); + chdir('..'); + define('SM_PATH','../'); + + /* SquirrelMail required files. */ + require_once(SM_PATH . 'include/validate.php'); + require_once(SM_PATH . 'functions/html.php'); + require_once(SM_PATH . 'src/load_prefs.php'); + if (!isset($sound)) { $sound = "Click.wav"; } @@ -23,17 +29,21 @@ displayHtmlHeader( _("Test Sound"), '', FALSE ); - echo "\n". - '
'. - "". - '
'. - '' . _("Loading the sound...") . '

'. - '
'. - ''. - '
'. - '
'. - ''; + echo "\n". + html_tag( 'table', + html_tag( 'tr', + html_tag( 'td', + "". + '
'. + '' . _("Loading the sound...") . '

'. + '
'. + ''. + '
' , + 'center' ) + ) , + 'center' ) . + ''; ?>