mirror of
https://gitlab.com/JKANetwork/CheckServer.git
synced 2026-02-22 04:54:06 +01:00
Fixes
This commit is contained in:
@@ -65,7 +65,7 @@ function ping($host,$port = '80') {
|
||||
|
||||
/** Returns web root (ie. http://jkanetwork.com) */
|
||||
function webRoot(){
|
||||
$root = $_SERVER['HTTPS'] ? "https://" : "http://"; //Variable = condicion ? Verdadero : Falso
|
||||
$root = isset($_SERVER['HTTPS']) ? "https://" : "http://"; //Variable = condicion ? Verdadero : Falso
|
||||
return $root . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user