Source for file testsound.php

Documentation is available at testsound.php

  1. <?php
  2. /**
  3. * testsound.php
  4. *
  5. * Copyright (c) 1999-2020 The SquirrelMail Project Team
  6. * Licensed under the GNU GPL. For full terms see the file COPYING.
  7. *
  8. * $Id: testsound.php 14840 2020年01月07日 07:42:38Z pdontthink $
  9. */
  10. define ('SM_PATH','../../');
  11. /* SquirrelMail required files. */
  12. require_once(SM_PATH . 'include/validate.php');
  13. require_once(SM_PATH . 'functions/global.php');
  14. require_once(SM_PATH . 'functions/html.php');
  15. displayHtmlHeader ( _ ("Test Sound"), '', FALSE );
  16. echo '<body bgcolor="'.$color[4].'" topmargin=0 leftmargin=0 rightmargin=0 marginwidth=0 marginheight=0>'."\n";
  17. if ( ! sqgetGlobalVar ('sound', $sound, SQ_GET ) ) {
  18. $sound = 'Click.wav';
  19. } elseif ( $sound == '(none)' ) {
  20. echo '<center><form><br /><br />'.
  21. '<b>' . _ ("No sound specified") . '</b><br /><br />'.
  22. '<input type="button" name="close" value="' . _ ("Close") . '" onClick="window.close()">'.
  23. '</form></center>'.
  24. '</body></html>';
  25. return;
  26. }
  27. echo html_tag ( 'table',
  28. html_tag ( 'tr',
  29. html_tag ( 'td',
  30. '<embed src="'.sm_encode_html_special_chars ($sound).'" hidden="true" autostart="true" width="2" height="2">'.
  31. '<br>'.
  32. '<b>' . _ ("Loading the sound...") . '</b><br>'.
  33. '<form>'.
  34. '<input type="button" name="close" value=" ' .
  35. _ ("Close") .
  36. ' " onClick="window.close()">'.
  37. '</form>' ,
  38. 'center' )
  39. ) ,
  40. 'center' ) .
  41. '</body></html>';
  42. ?>

Documentation generated on 2020年1月13日 04:25:23 +0100 by phpDocumentor 1.4.3

AltStyle によって変換されたページ (->オリジナル) /