Beispiel #1
0
 /**
  * Get URI Scheme
  *
  * @return string "https" or "http"
  */
 public static function getScheme($reload = false)
 {
     if ($reload || is_null(self::$scheme)) {
         self::$scheme = empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] === 'off' ? 'http' : 'https';
     }
     return self::$scheme;
 }