Ejemplo n.º 1
0
 /**
  * Returns the system scheme, http or https
  * 
  * @return string
  */
 public static function getSystemScheme()
 {
     $scheme = 'http' . (!PMF_Link::isIISServer() && isset($_SERVER['HTTPS']) || PMF_Link::isIISServer() && 'on' == strtolower($_SERVER['HTTPS']) ? 's' : '') . '://';
     return $scheme;
 }
Ejemplo n.º 2
0
 /**
  * Returns the system scheme, http or https
  *
  * @return string
  */
 public function getSystemScheme()
 {
     if ($this->_config->get('security.useSslOnly')) {
         return 'https://';
     }
     $scheme = 'http' . (!PMF_Link::isIISServer() && isset($_SERVER['HTTPS']) || PMF_Link::isIISServer() && 'on' == strtolower($_SERVER['HTTPS']) ? 's' : '') . '://';
     return $scheme;
 }
 /**
  * Returns the system scheme, http or https
  *
  * @return string
  */
 public function getSystemScheme()
 {
     if ($this->_config->get('security.useSslOnly')) {
         return 'https://';
     }
     if (!PMF_Link::isIISServer()) {
         // Apache, nginx, lighttpd
         if (isset($_SERVER['HTTPS']) && 'on' === strtolower($_SERVER['HTTPS'])) {
             return 'https://';
         } else {
             return 'http://';
         }
     } else {
         // IIS Server
         if ('on' === strtolower($_SERVER['HTTPS'])) {
             return 'https://';
         } else {
             return 'http://';
         }
     }
 }