Fix : not reliable

This commit is contained in:
Dany De Bontridder 2018-03-12 23:18:29 +01:00
parent db94488ecd
commit e9a89cf078

View file

@ -317,7 +317,11 @@ define ("PINDG","");
// Url of NOALYSS (http://...)
//
if ( ! defined ("NOALYSS_URL")) {
$base=$_SERVER['REQUEST_SCHEME'].'://'.
$protocol="http";
if ( isset ($_SERVER['REQUEST_SCHEME'] )) {
$protocol=$_SERVER['REQUEST_SCHEME'];
}
$base=$protocol.'://'.
$_SERVER['HTTP_HOST'].
":".$_SERVER['SERVER_PORT'].
dirname($_SERVER['PHP_SELF']);