start to implement database part
This commit is contained in:
@@ -1,8 +1,31 @@
|
||||
<?php
|
||||
|
||||
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Thelia\Core\Thelia;
|
||||
|
||||
$env = 'debug';
|
||||
require __DIR__ . '/core/bootstrap.php';
|
||||
|
||||
$trustIp = array(
|
||||
'::1',
|
||||
'127.0.0.1'
|
||||
);
|
||||
|
||||
$request = Request::createFromGlobals();
|
||||
|
||||
if( false === in_array($request->getClientIp(), $trustIp)){
|
||||
//change request to send to a 404 error page
|
||||
}
|
||||
|
||||
|
||||
//$thelia = new Thelia('dev');
|
||||
////
|
||||
//$response = $thelia->handle($request)->prepare($request)->send();
|
||||
////
|
||||
//$thelia->terminate($request, $reponse);
|
||||
|
||||
Thelia::run()->send();
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user