From c302d98abfcb921666f9d95fd473294d8f01b35e Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 19 Dec 2010 20:28:32 +0000 Subject: [PATCH] another test --- htdocs/lib/functions.lib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php index ee32b897c19..874af35b049 100644 --- a/htdocs/lib/functions.lib.php +++ b/htdocs/lib/functions.lib.php @@ -121,7 +121,9 @@ function dol_buildpath($path,$mode=0) preg_match('/^([^.]+\.php)/i',$path,$regs); if (! empty($regs[1])) $path = $regs[1]; // An alternative for proxy but extremely slow - //if (! @file_get_contents('http://'.$_SERVER["SERVER_NAME"].DOL_URL_ROOT.$path)) $res = DOL_URL_ROOT_ALT.$path; + //$url = 'http://'.$_SERVER["SERVER_NAME"].DOL_URL_ROOT.$path; + //if (! @file_get_contents($url)) $res = DOL_URL_ROOT_ALT.$path; + //if (! @fopen($url, 'r')) $res = DOL_URL_ROOT_ALT.$path; if (! file_exists(DOL_DOCUMENT_ROOT.$path)) $res = DOL_URL_ROOT_ALT.$path; } }