Example #1
0
 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;
 }