Project

General

Profile

Actions

Evolution #640

closed

enhance https support for installation

Added by Simon almost 8 years ago. Updated almost 8 years ago.

Status:
Fermé
Priority:
Normal
Assignee:
Category:
admin
Target version:
Start date:
11/30/2016
Due date:
% Done:

100%

Estimated time:
0.50 h
Resolution:

Description

http://phpsnips.com/571/Check-if-we-are-using-HTTPS-or-not#.WD8GQWcdN5E

http://stackoverflow.com/questions/5100189/use-php-to-check-if-page-was-accessed-with-ssl

function is_https(){
    if ( (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443)
        return true;
    else
        return false;
}

Actions

Also available in: Atom PDF