commit
2282cec3f5
|
|
@ -1,14 +1,4 @@
|
||||||
<?php require "../includes/bootstrap.php"; ?>
|
<?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>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue