Project

General

Profile

Actions

Evolution #640

closed

enhance https support for installation

Added by Simon over 7 years ago. Updated over 7 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 #1

Updated by Simon over 7 years ago

  • Status changed from Nouveau to Fermé
  • % Done changed from 0 to 100

Applied in changeset linea21|r3040.

Actions

Also available in: Atom PDF