Example #1
0
 /**
  * Sets whether the connection is happening over SSL
  */
 private static function setIsSSL()
 {
     if (isset($_SERVER)) {
         // Check if SSL is enabled
         if (isset($_SERVER['HTTPS']) && $_SERVER["HTTPS"] == "on") {
             self::$isSSL = true;
         }
     }
 }