Fix : not reliable
This commit is contained in:
parent
db94488ecd
commit
e9a89cf078
1 changed files with 5 additions and 1 deletions
|
|
@ -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']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue