Fix: bug #26695 : </body> error in eclipse

This commit is contained in:
Laurent Destailleur 2009-07-15 23:19:57 +00:00
parent 3a3384da0d
commit 049a5cf76a

View File

@ -18,10 +18,10 @@
/** /**
* \file htdocs/asterisk/wrapper.php * \file htdocs/asterisk/wrapper.php
* \brief File that is entry point to call Dolibarr WebServices * \brief File that is entry point to call an Asterisk server
* \version $Id$ * \version $Id$
* \remarks To be used, an Asterisk user must be created by adding this * \remarks To be used, an Asterisk user must be created by adding this
* in /etc/asterisk/manager.conf * in /etc/asterisk/manager.conf
* [dolibarr] * [dolibarr]
* secret = dolibarr * secret = dolibarr
* deny=0.0.0.0/0.0.0.0 * deny=0.0.0.0/0.0.0.0
@ -79,12 +79,12 @@ $prefix = $conf->global->ASTERISK_INDICATIF;
#Port #Port
$port = $conf->global->ASTERISK_PORT; $port = $conf->global->ASTERISK_PORT;
?>
<html> print '<html>'."\n";
<head> print '<head>'."\n";
<title>Asterisk redirection ...</title> print '<title>Asterisk redirection ...</title>'."\n";
</head> print '</head>'."\n";
<?php
$number=strtolower($called) ; $number=strtolower($called) ;
$pos=strpos ($number,"local"); $pos=strpos ($number,"local");
@ -104,7 +104,7 @@ if (! empty($number))
$txt=$errstr." (".$errno.")<br>\n"; $txt=$errstr." (".$errno.")<br>\n";
echo $txt; echo $txt;
dol_syslog($txt,LOG_ERR); dol_syslog($txt,LOG_ERR);
} }
else else
{ {
echo '<body onload="javascript:history.go(-1);">'."\n"; echo '<body onload="javascript:history.go(-1);">'."\n";
@ -125,6 +125,6 @@ if (! empty($number))
} }
endif ; endif ;
} }
?>
</body> print '</body>'."\n";
</html> print '</html>'."\n";