LinkStack/resources/views/layouts/lang.blade.php

14 lines
502 B
PHP
Raw Normal View History

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
2023-06-11 21:25:19 +02:00
<html lang="{{ config('app.locale') }}">
2022-06-27 16:29:50 +02:00
{{-- Redirects to https if enabled in the advanced-config --}}
@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