1
0
mirror of https://gitlab.com/JKANetwork/CheckServer.git synced 2026-02-22 04:54:06 +01:00
This commit is contained in:
2018-01-15 12:47:23 +01:00
parent 97ac06b224
commit a478f8a587
9 changed files with 16 additions and 9 deletions

View File

@@ -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']);
}