ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
HeaderSettingsLegacyProxy.php
Go to the documentation of this file.
1<?php
2
19namespace ILIAS\HTTP\Request;
20
25{
26 public function isHTTPSDetectionEnabled(): bool
27 {
28 global $DIC;
29 if (!$DIC?->isDependencyAvailable('iliasIni')) {
30 return false; // TODO check FileDelivery
31 }
32 return (bool) $DIC->iliasIni()->readVariable('https', 'auto_https_detect_enabled');
33 }
34
35 public function getHTTPDetectionHeaderName(): ?string
36 {
37 global $DIC;
38 if (!$DIC?->isDependencyAvailable('iliasIni')) {
39 return null;
40 }
41 return $DIC->iliasIni()->readVariable('https', 'auto_https_detect_header_name') ?: null;
42 }
43
44 public function getHTTPDetectionHeaderValue(): ?string
45 {
46 global $DIC;
47 if (!$DIC?->isDependencyAvailable('iliasIni')) {
48 return null;
49 }
50 return $DIC->iliasIni()->readVariable('https', 'auto_https_detect_header_value') ?: null;
51 }
52}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: shib_login.php:26