<?php
$ipherve = gethostbyname('save.herve-mirguet.fr');
$ipicom = gethostbyname('185.24.152.133');
$ipmh = gethostbyname('185.97.207.234');
$ippubligo = gethostbyname('nas.publigo.fr');
// if($_SERVER['REQUEST_URI'] == "/" && $_SERVER['REMOTE_ADDR'] != $ippubligo && $_SERVER['REMOTE_ADDR'] != $ipherve) {
if($_SERVER['REQUEST_URI'] == "/" && $_SERVER['REMOTE_ADDR'] != $ippubligo && $_SERVER['REMOTE_ADDR'] != $ipherve && $_SERVER['REMOTE_ADDR'] != $ipicom && $_SERVER['REMOTE_ADDR'] != $ipmh) {
// if($_SERVER['REQUEST_URI'] == "/" && $_SERVER['REMOTE_ADDR'] == $ippubligo || $_SERVER['REMOTE_ADDR'] == $ipherve) {
// include 'maintenance.php';
die("Vous n'avez pas l'autorisation d'accès !");
}
// $output=null;
// $retval=null;
// exec('ls ../../../', $output, $retval);
// foreach ($output as $key => $value) {
// if(strpos($value, '.') !== false) {
// $test = explode('.',$value);
// if(count($test) > 2) {
// echo $value.'<br>';
// } else {
// if($test[1] != 'txt' && $test[1] != "sh" && $test[1] != "php") echo $value.'<br>';
// }
// }
// }
// die();
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']);
};