2023-01-20 13:25:18 +01:00
|
|
|
@if(env('FORCE_HTTPS') == 'true')<?php URL::forceScheme('https'); header("Content-Security-Policy: upgrade-insecure-requests"); ?>@endif
|
2022-06-09 22:26:35 +02:00
|
|
|
@if(env('CUSTOM_META_TAGS') == 'true' and config('advanced-config.lang') != '')
|
|
|
|
<html lang="{{ config('advanced-config.lang') }}">
|
2022-06-08 15:43:51 +02:00
|
|
|
@else
|
2022-06-08 15:55:55 +02:00
|
|
|
<html lang="en">
|
2022-06-27 16:29:50 +02:00
|
|
|
@endif
|
|
|
|
|
|
|
|
{{-- Redirects to https if enabled in the advanced-config --}}
|
2022-11-20 14:10:49 +01:00
|
|
|
@if(env('FORCE_ROUTE_HTTPS') == 'true')
|
2022-06-27 16:29:50 +02:00
|
|
|
@php
|
|
|
|
if (! isset($_SERVER['HTTPS']) or $_SERVER['HTTPS'] == 'off' ) {
|
|
|
|
$redirect_url = "https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
|
|
|
|
header("Location: $redirect_url");
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
@endphp
|
|
|
|
@endif
|