Merge pull request #16 from peterus/cleanup

cleanup not needed code
This commit is contained in:
Per Qvarforth 2022-02-28 21:44:47 +01:00 committed by GitHub
commit 2282cec3f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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">