cleanup not needed code

This commit is contained in:
Peter Buchegger 2022-02-28 19:14:29 +01:00
parent 944ec28bfc
commit 892493b184
1 changed files with 0 additions and 10 deletions

View File

@ -1,14 +1,4 @@
<?php require "../includes/bootstrap.php"; ?>
<?php
$isSecure = false;
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {
$isSecure = true;
}
elseif (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https' || !empty($_SERVER['HTTP_X_FORWARDED_SSL']) && $_SERVER['HTTP_X_FORWARDED_SSL'] == 'on') {
$isSecure = true;
}
$REQUEST_PROTOCOL = $isSecure ? 'https' : 'http';
?>
<!DOCTYPE html>
<html lang="en">