testsound.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * testsound.php
  4. *
  5. * @copyright &copy; 1999-2007 The SquirrelMail Project Team
  6. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  7. * @version $Id$
  8. * @package plugins
  9. * @subpackage newmail
  10. */
  11. /**
  12. * Path for SquirrelMail required files.
  13. * @ignore
  14. */
  15. require('../../include/init.php');
  16. displayHtmlHeader( _("Test Sound"), '', FALSE );
  17. echo '<body bgcolor="'.$color[4].'" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">'."\n";
  18. if ( ! sqgetGlobalVar('sound', $sound, SQ_GET) ) {
  19. $sound = 'Click.wav';
  20. } elseif ( $sound == '(none)' ) {
  21. echo '<div style="text-align: center;"><form><br /><br />'.
  22. '<b>' . _("No sound specified") . '</b><br /><br />'.
  23. '<input type="button" name="close" value="' . _("Close") . '" onclick="window.close()" />'.
  24. '</form></div>'.
  25. '</body></html>';
  26. return;
  27. }
  28. echo html_tag( 'table',
  29. html_tag( 'tr',
  30. html_tag( 'td',
  31. newmail_create_media_tags($sound)."\n".
  32. '<br />'.
  33. '<b>' . _("Loading the sound...") . '</b><br />'.
  34. '<form>'.
  35. '<input type="button" name="close" value=" ' .
  36. _("Close") .
  37. ' " onclick="window.close()" />'.
  38. '</form>' ,
  39. 'center' )
  40. ) ,
  41. 'center' ) .
  42. '</body></html>';
  43. ?>