squirrelmail-webmail  1.4.22
About: SquirrelMail is a standards-based webmail package with strong MIME support, address books, and folder manipulation (written in PHP4).
  Fossies Dox: squirrelmail-webmail-1.4.22.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

testsound.php
Go to the documentation of this file.
1 <?php
2 
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', $sound, SQ_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="'.htmlspecialchars($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 ?>
elseif
if(! sqgetGlobalVar('sound', $sound, SQ_GET)) elseif($sound=='(none)')
Definition: testsound.php:25
sqgetGlobalVar
sqgetGlobalVar($name, &$value, $search=SQ_INORDER)
Definition: global.php:344
html_tag
html_tag( $tag, $val='', $align='', $bgcolor='', $xtra='')
Definition: html.php:27
SM_PATH
const SM_PATH
Definition: testsound.php:12
SQ_GET
const SQ_GET
Definition: global.php:16
displayHtmlHeader
displayHtmlHeader( $title='SquirrelMail', $xtra='', $do_hook=TRUE)
Definition: page_header.php:21
_
_($str)
Definition: gettext.php:160