Source for file testsound.php

Documentation is available at testsound.php

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

Documentation generated on Thu, 17 Apr 2014 04:21:51 +0200 by phpDocumentor 1.4.3