Files
sterivein/web/index_dev.php
Manuel Raynaud 630ac72aaa reindente some code
verify if config database file exists beforeinitializing Propel
2013-01-24 20:45:16 +01:00

27 lines
528 B
PHP

<?php
use Symfony\Component\HttpFoundation\Request;
use Thelia\Core\Thelia;
//use Symfony\Component\DependencyInjection;
$env = 'dev';
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", true);
$response = $thelia->handle($request)->prepare($request)->send();
$thelia->terminate($request, $response);