forked from Wavyzz/dolibarr
Qual: Removed ob* functions
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user