2
0
forked from Wavyzz/dolibarr

Qual: Removed ob* functions

This commit is contained in:
eldy
2011-10-05 22:54:39 +02:00
parent b6f27d9ec6
commit bddf4c6626
2 changed files with 4 additions and 12 deletions

View File

@@ -1560,11 +1560,9 @@ class Adherent extends CommonObject
//curl_setopt($ch, CURLOPT_POST, 0);
//curl_setopt($ch, CURLOPT_POSTFIELDS, "a=3&b=5");
//--- Start buffering
//ob_start();
$result=curl_exec($ch);
dol_syslog($result);
//--- End buffering and clean output
//ob_end_clean();
if (curl_error($ch) > 0)
{
// error
@@ -1632,11 +1630,9 @@ class Adherent extends CommonObject
//curl_setopt($ch, CURLOPT_POST, 0);
//curl_setopt($ch, CURLOPT_POSTFIELDS, "a=3&b=5");
//--- Start buffering
//ob_start();
$result=curl_exec($ch);
dol_syslog($result);
//--- End buffering and clean output
//ob_end_clean();
$rescode=curl_error($ch);
if ($rescode > 0)
{

View File

@@ -981,19 +981,15 @@ function dol_print_reduction($reduction=0,$langs)
/**
* Return OS version
* Return OS version.
* Note that PHP_OS returns only OS (not version) and OS PHP was built on, not
* necessarly OS PHP runs on.
*
* @return string OS version
*/
function version_os()
{
// Get version of OS
ob_start();
phpinfo();
$chaine = ob_get_contents();
ob_end_clean();
preg_match('/System <\/td><td class="v">([^<]*)<\/td>/i',$chaine,$reg);
$osversion=$reg[1];
$osversion=php_uname();
return $osversion;
}