<?php
//=====================================================================================================
//=================== Mode Maintenance ==================================================================================
// $ipmathilde = "5.10.133.125";
// $ipherve = gethostbyname('save.herve-mirguet.fr');
// $ippubligo = gethostbyname('nas.publigo.fr');
// $bouygues = "176.164.88.48";
// if($_SERVER['REQUEST_URI'] == "/"
// && $_SERVER['REMOTE_ADDR'] != $ippubligo
// && $_SERVER['REMOTE_ADDR'] != $ipherve
// && $_SERVER['REMOTE_ADDR'] != $ipmathilde
// && $_SERVER['REMOTE_ADDR'] != $bouygues)
// {
// include 'maintenance.php';
// die();
// }
//=====================================================================================================
//=====================================================================================================
if($_SERVER['REQUEST_SCHEME'] == "http") {
header("Status: 301 Moved Permanently", false, 301);
header('Location: https://'.$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]);
}
use App\Kernel;
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
date_default_timezone_set( 'Europe/Paris' );
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};