Fixed typo.
[squirrelmail.git] / plugins / newmail / testsound.php
index 16d53892f4df7cf5480be05de14abc5e8046d53c..9a78ce71caef032b81bde51aebb369a45f322191 100644 (file)
@@ -3,8 +3,8 @@
 /**
  * testsound.php
  *
- * Copyright (c) 1999-2004 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.        
+ * Copyright (c) 1999-2005 The SquirrelMail Project Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
  *
  * $Id$
  * @package plugins
@@ -16,19 +16,17 @@ 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');
 
 displayHtmlHeader( _("Test Sound"), '', FALSE );
 
-echo '<body bgcolor="'.$color[4].'" topmargin=0 leftmargin=0 rightmargin=0 marginwidth=0 marginheight=0>'."\n";
+echo '<body bgcolor="'.$color[4].'" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">'."\n";
 
 if ( ! sqgetGlobalVar('sound', $sound, SQ_GET) ) {
     $sound = 'Click.wav';
 } elseif ( $sound == '(none)' ) {
     echo '<center><form><br /><br />'.
          '<b>' . _("No sound specified") . '</b><br /><br />'.
-         '<input type="button" name="close" value="' . _("Close") . '" onClick="window.close()">'.
+         '<input type="button" name="close" value="' . _("Close") . '" onclick="window.close()" />'.
          '</form></center>'.
          '</body></html>';
     return;
@@ -37,16 +35,16 @@ if ( ! sqgetGlobalVar('sound', $sound, SQ_GET) ) {
 echo html_tag( 'table',
          html_tag( 'tr',
              html_tag( 'td',
-                    '<embed src="'.htmlspecialchars($sound)."\" hidden=\"true\" autostart=\"true\">\n".
-                    '<br>'.
-                    '<b>' . _("Loading the sound...") . '</b><br>'.
+                    '<embed src="'.htmlspecialchars($sound).'" hidden="true" autostart="true" width="2" height="2">'."\n".
+                    '<br />'.
+                    '<b>' . _("Loading the sound...") . '</b><br />'.
                     '<form>'.
                     '<input type="button" name="close" value="  ' .
                     _("Close") .
-                    '  " onClick="window.close()">'.
+                    '  " onclick="window.close()" />'.
                     '</form>' ,
                 'center' )
             ) ,
         'center' ) .
         '</body></html>';
-?>
+?>
\ No newline at end of file